Subject: pkg/32724: pkgsrc-current.tar.gz fails on OpenSolaris build 28
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <bkyoung@users.sourceforge.net>
List: pkgsrc-bugs
Date: 02/04/2006 01:35:01
>Number:         32724
>Category:       pkg
>Synopsis:       pkgsrc-current.tar.gz fails on OpenSolaris build 28
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 04 01:35:00 +0000 2006
>Originator:     Byron Young
>Release:        OpenSolaris build 28
>Organization:
Byron_Young
>Environment:
SunOS flood 5.11 snv_28 i86pc i386 i86pc

>Description:
The AC_PROG_LIBTOOL macro insists on using
AR=/opt/SUNWspro/bin/cc -xar
AR_FLAGS=-o

The /opt/SUNWspro/bin/cc --help shows now -xar option.

>How-To-Repeat:
After install of pkgsrc-current.tar.gz and completing bootstrap, attempt to build converters/libiconv.

>Fix:
Assuming using Solaris 11:


BEGIN bootstrap.patch
*** /usr/pkgsrc/bootstrap/bootstrap.orig	Sat Dec 17 09:51:40 2005
--- /usr/pkgsrc/bootstrap/bootstrap	Fri Feb  3 16:23:25 2006
***************
*** 733,739 ****
  if [ "$prefix" = "/usr" ]; then
  	pkg_install_mandir="$prefix/share/man"
  fi
! run_cmd "(cd $wrkdir/pkg_install; env $BSTRAP_ENV CPPFLAGS='$CPPFLAGS -I../libnbcompat -I../../libnbcompat' LDFLAGS='$LDFLAGS -L../libnbcompat -L../../libnbcompat' LIBS='-lnbcompat' $shprog ./configure -C --prefix=$prefix --sysconfdir=$sysconfdir --with-pkgdbdir=$pkgdbdir --mandir=$pkg_install_mandir $pkg_install_args && $prefix/bin/bmake && $prefix/bin/bmake install)"
  
  # all's ready, install the man page
  echo_msg "Installing packages(7) man page"
--- 733,739 ----
  if [ "$prefix" = "/usr" ]; then
  	pkg_install_mandir="$prefix/share/man"
  fi
! run_cmd "(cd $wrkdir/pkg_install; env $BSTRAP_ENV CPPFLAGS='$CPPFLAGS -I../libnbcompat -I../../libnbcompat' LDFLAGS='$LDFLAGS -R/opt/sfw/lib -L../libnbcompat -L../../libnbcompat' LIBS='-lnbcompat' $shprog ./configure -C --prefix=$prefix --sysconfdir=$sysconfdir --with-pkgdbdir=$pkgdbdir --mandir=$pkg_install_mandir $pkg_install_args && $prefix/bin/bmake && $prefix/bin/bmake install)"
  
  # all's ready, install the man page
  echo_msg "Installing packages(7) man page"
END bootstrap.patch

BEGIN bsd.pkg.mk.patch
*** /usr/pkgsrc/mk/bsd.pkg.mk.orig	Sat Jan 21 23:08:34 2006
--- /usr/pkgsrc/mk/bsd.pkg.mk	Fri Feb  3 20:08:42 2006
***************
*** 267,272 ****
--- 267,274 ----
  ALL_ENV+=	LINKER_RPATH_FLAG=${LINKER_RPATH_FLAG:Q}
  ALL_ENV+=	PATH=${PATH:Q}:${LOCALBASE}/bin:${X11BASE}/bin
  ALL_ENV+=	PREFIX=${PREFIX}
+ ALL_ENV+=	AR=gar
+ ALL_ENV+=	AR_FLAGS=
  
  MAKE_ENV+=	${ALL_ENV}
  MAKE_ENV+=	${NO_EXPORT_CPP:D:UCPP=${CPP:Q}}
***************
*** 577,582 ****
--- 579,585 ----
  
  GNU_CONFIGURE_PREFIX?=	${PREFIX}
  CONFIGURE_ARGS+=	--prefix=${GNU_CONFIGURE_PREFIX:Q}
+ CONFIGURE_ARGS+=	--disable-static
  
  USE_GNU_CONFIGURE_HOST?=	yes
  .  if !empty(USE_GNU_CONFIGURE_HOST:M[yY][eE][sS])
END bsd.pkg.mk.patch