GithubHelp home page GithubHelp logo

tritondatacenter / pkgsrc-legacy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jsonn/pkgsrc

127.0 61.0 64.0 1.35 GB

Automatically updated conversion of the "pkgsrc" module from anoncvs.netbsd.org

Home Page: http://www.pkgsrc.org

Makefile 42.04% C 40.02% Shell 5.10% C++ 7.86% CMake 0.42% HTML 0.91% Awk 0.48% Ruby 0.26% Python 0.67% Scheme 0.01% Objective-C 0.22% QMake 0.12% Assembly 0.34% Perl 0.92% Protocol Buffer 0.01% Prolog 0.41% Emacs Lisp 0.13% Clojure 0.01% Tcl 0.02% XS 0.08%

pkgsrc-legacy's Introduction

$NetBSD: README,v 1.19 2017/03/02 09:51:35 maya Exp $

pkgsrc is a framework for building software on UNIX-like systems.

To use, bootstrap using:
% cd pkgsrc/bootstrap/
% ./bootstrap

build packages, use:
% cd pkgsrc/category/package-name
% $PREFIX/bin/bmake install

Where $PREFIX is where you've chosen to install packages (typically /usr/pkg)

Bugs and patches can be filed in the follow link (use category 'pkg'):
https://www.netbsd.org/cgi-bin/sendpr.cgi?gndb=netbsd

To fetch the main CVS repository:
% cvs -d [email protected]:/cvsroot checkout -P pkgsrc

It's also possible to contribute through pkgsrc wip (work in progress), for
more information, see http://pkgsrc.org/wip/users/

Please see doc/pkgsrc.txt for information.

pkgsrc-legacy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pkgsrc-legacy's Issues

Xvfb fails on multiarch-2012Q4

Xvfb fails to start on multiarch-2012Q4:

% Xvfb :7 -screen 0 1280x1024x24
Fatal server error:
Couldn't add screen 0
%

After tracing the problem to the same place as the following message archive points to:

http://www.openwall.com/lists/musl/2012/10/26/10

and transplanting

int XaceHook(int hook, ...) {

from https://raw.github.com/robclark/xserver/master/Xext/xace.c (totally random url, I took the first google hit with the fixed function) Xvfb starts.

The Xvfb crashed after using it so I'm assuming other places in the code do not handle gcc 4.7.2 too well either. Proper fix is apparently upgrading the xserver to a newer version.

fix for ghostscript 9.05 (trunk)

In order to get ghostscript to compile (9.05 in cvs) I needed to patch as follows:

diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
index 51dbdbc..b997512 100644
--- a/print/ghostscript/Makefile
+++ b/print/ghostscript/Makefile
@@ -28,7 +28,8 @@ UNLIMIT_RESOURCES+=   datasize        # gsromfs1.c

 BUILD_TARGET=          so
 INSTALL_TARGET=                soinstall
-CONFIGURE_ARGS+=       -with-omni=no   # otherwise pulls in libstdc++
+CONFIGURE_ARGS+=       --with-omni=no  # otherwise pulls in libstdc++
+CONFIGURE_ARGS+=       --with-libiconv=gnu

 REPLACE_PERL+=         toolbin/localcluster/clusterpush.pl
 REPLACE_PERL+=         toolbin/checkdeps.pl
@@ -100,6 +101,7 @@ post-extract:
 post-install:
        ${LN} -sf gsc ${DESTDIR}${PREFIX}/bin/gs

+.include "../../converters/libiconv/buildlink3.mk"
 .include "../../print/libpaper/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"

security/nettle has problems with Solaris Link Editors: 5.11-1.1739 (illumos) and gcc 4.7(.2)

I put this here since given it's illumos/smartos bleeding edge nature...
for reference, the problem report in illumos is here :
https://www.illumos.org/issues/3616

for the pkgsrc side, I find it unnecessary to force full debug symbols with -ggdb3 in a standard image, so I'm building with the following for now
(BTW -ggdb2, -ggdb and -g all build fine as well):

$ git diff --staged
diff --git a/security/nettle/Makefile b/security/nettle/Makefile
index c7986cc..f7a4a18 100644
--- a/security/nettle/Makefile
+++ b/security/nettle/Makefile
@@ -10,7 +10,7 @@ HOMEPAGE= http://www.lysator.liu.se/~nisse/nettle/
 COMMENT=   Cryptographic library
 LICENSE=   gnu-lgpl-v2.1

-USE_LANGUAGES=     c
+USE_LANGUAGES=     c c++
 USE_LIBTOOL=       yes
 USE_TOOLS+=        gm4 gmake
 GNU_CONFIGURE=     yes
diff --git a/security/nettle/distinfo b/security/nettle/distinfo
index 6fb3dd3..e75aff1 100644
--- a/security/nettle/distinfo
+++ b/security/nettle/distinfo
@@ -5,6 +5,8 @@ RMD160 (nettle-2.4.tar.gz) = 8480e10ce718db1a280d57a808a78a4cfa940d1c
 Size (nettle-2.4.tar.gz) = 1075789 bytes
 SHA1 (patch-Makefile.in) = cf1f0fb4e23657f493f381c80b31e7c6294b67e7
 SHA1 (patch-config.make.in) = 0bf3d2729b97883b41374a1ea3d5286fd2554e98
+SHA1 (patch-configure) = 4d9f2b0c10269395faa06b8cdf3689bb388211de
+SHA1 (patch-configure.ac) = 9d7987b7f15bd530fbdf7a4e381cac3ca935be4d
 SHA1 (patch-testsuite_Makefile.in) = f73c6af3fc2ae63174406df4ff89892f7b5634d7
 SHA1 (patch-tools_Makefile.in) = 5eca9e6d806cea894493122f7e1c79d6a26f2c88
 SHA1 (patch-x86_camellia-crypt-internal.asm) = 0dd04f76ccca63f0c3e7260269fa8f74d01ddda3
diff --git a/security/nettle/patches/patch-configure b/security/nettle/patches/patch-configure
new file mode 100644
index 0000000..602fb7b
--- /dev/null
+++ b/security/nettle/patches/patch-configure
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- configure.orig 2011-09-03 12:51:07.000000000 +0000
++++ configure
+@@ -6742,8 +6742,6 @@ if test x$GCC = xyes ; then
+   # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
+   if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
+     true
+-  else
+-    CFLAGS="$CFLAGS -ggdb3"
+   fi
+   # FIXME: It would be better to actually test if this option works and/or is needed.
+   # Or perhaps use -funsigned-char.
diff --git a/security/nettle/patches/patch-configure.ac b/security/nettle/patches/patch-configure.ac
new file mode 100644
index 0000000..351c273
--- /dev/null
+++ b/security/nettle/patches/patch-configure.ac
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- configure.ac.orig  2011-09-03 12:51:07.000000000 +0000
++++ configure.ac
+@@ -586,8 +586,6 @@ if test x$GCC = xyes ; then
+   # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
+   if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
+     true
+-  else
+-    CFLAGS="$CFLAGS -ggdb3"
+   fi
+   # FIXME: It would be better to actually test if this option works and/or is needed.
+   # Or perhaps use -funsigned-char.

what is Joyent's experience with the latest illumos /usr/bin/ld?
is it preferred to add a hack for the problematic combo, or is there virtue in this patch as I see it?

SU_CMD= ${LOCALBASE}/bin/sudo doesn't seem to work

If I understand chapter 9.12 (http://www.netbsd-france.org/docs/pkgsrc/faq.html#using-sudo-with-pkgsrc) correctly:

When installing packages as non-root user and using the just-in-time su(1) feature of pkgsrc, it can become annoying to type in the root password for each required package installed. To avoid this, the sudo package can be used, which does password caching over a limited time. To use it, install sudo (either as binary package or from security/sudo) and then put the following into your mk.conf, somewhere after the definition of the LOCALBASE variable:

.if exists(${LOCALBASE}/bin/sudo)
SU_CMD=        ${LOCALBASE}/bin/sudo /bin/sh -c
.endif

I tried this, and tried substitutin /usr/bin/bash for /bin/sh and finally chopped everything off after the sudo,
but I still need (e.g. in pkgsrc/doc/guide when doing a simple $bmake as a non-root user) to break out in each dependency package and do a sudo bmake install... simple bmake install gives the following type of error:

richard@devzone:~/src/pkgsrc/fonts/tex-amsfonts$ bmake install
=> Bootstrap dependency digest>=20010302: found digest-20111104
WARNING: [license.mk] Every package should define a LICENSE.
===> Building binary package for tex-amsfonts-3.0nb2
=> Creating binary package /home/richard/src/pkgsrc/packages/All/tex-amsfonts-3.0nb2.tgz
pkg_create: cannot create archive: Failed to open '/home/richard/src/pkgsrc/packages/All/tex-amsfonts-3.0nb2.tmp.tgz'
*** Error code 2

Stop.
bmake: stopped in /home/richard/src/pkgsrc/fonts/tex-amsfonts
*** Error code 1

Stop.
bmake: stopped in /home/richard/src/pkgsrc/fonts/tex-amsfonts

I checked the following:

richard@devzone:~/src/pkgsrc/fonts/tex-amsfonts$ bmake show-var VARNAME=LOCALBASE
/opt/pkg
richard@devzone:~/src/pkgsrc/fonts/tex-amsfonts$ bmake show-var VARNAME=SU_CMD
/opt/pkg/bin/sudo
richard@devzone:~/src/pkgsrc/fonts/tex-amsfonts$ bmake show-var VARNAME=SH
/usr/bin/bash

here is the shell level debug output

set -e;/usr/bin/env AWK=/opt/pkg/bin/nawk PKG_ADMIN=/opt/pkg/sbin/pkg_admin\ -K\ /var/opt/pkg/db/pkg  PKGSRCDIR=/home/richard/src/pkgsrc PWD_CMD=/bin/pwd SED=/opt/pkg/bin/nbsed  /usr/bin/bash /home/richard/src/pkgsrc/mk/pkgformat/pkg/list-dependencies  " "\ \ digest\>=20010302:../../pkgtools/digest " " " " |                while read type pattern dir; do                     test "$type" = "bootstrap" || continue;         pkg=`/opt/pkg/sbin/pkg_info -K /var/opt/pkg/db/pkg -E "$pattern" || true`;      case $type in bootstrap) Type=Bootstrap;; build) Type=Build;; full) Type=Full;; esac;  case "$pkg" in                           "")                                 echo "=>" "$Type dependency $pattern: NOT found";   target=package-install;                 echo "=>" "Verifying $target for $dir";         [ -d "$dir" ] || /usr/bin/bash /home/richard/src/pkgsrc/mk/scripts/fail echo 1>&2 "ERROR:" "[depends.mk] The directory \`\`$dir'' does not exist.";  cd $dir;                       /usr/bin/env  PATH=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.wrapper/bin:/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.buildlink/bin:/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.tools/bin:/opt/pkg/bin:/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin USE_DESTDIR=yes _PKGSRC_DEPS=" tex-amsfonts-3.0nb2" PKGNAME_REQD="$pattern" /opt/pkg/bin/bmake _MAKE=/opt/pkg/bin/bmake OPSYS=SunOS OS_VERSION=5.11 LOWER_OPSYS=solaris _PKGSRCDIR=/home/richard/src/pkgsrc _HOSTNAME=devzone OBJHOSTNAME= PKGTOOLS_VERSION=20120221 _CC=/opt/pkg/gcc47/bin/gcc _PATH_ORIG=/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin _AUTOMATIC=yes $target;  pkg=`/opt/pkg/sbin/pkg_info -K /var/opt/pkg/db/pkg -E "$pattern" || true`;  case "$pkg" in                      "")    echo 1>&2 "ERROR:" "[depends.mk] A package matching \`\`$pattern'' should";  echo 1>&2 "ERROR:" "    be installed, but one cannot be found.  Perhaps there is a";  echo 1>&2 "ERROR:" "    stale work directory for $dir?";  exit 1;                         esac;                           echo "=>" "Returning to build of tex-amsfonts-3.0nb2";      ;;                          *)                              objfmt=`/opt/pkg/sbin/pkg_info -K /var/opt/pkg/db/pkg -Q OBJECT_FMT "$pkg"`;        case "$objfmt" in                   "")    echo 1>&2 "WARNING:" "[depends.mk] Unknown object format for installed package $pkg" ;;  ELF)   ;;                   *) echo 1>&2 "ERROR:" "[depends.mk] Installed package $pkg has an";  echo 1>&2 "ERROR:" "    object format \`\`$objfmt'' which differs from \`\`ELF''.  Please";  echo 1>&2 "ERROR:" "    update the $pkg package to ELF.";  exit 1;                        ;;                      esac;                           silent=;            if test -z "${silent}"; then            echo "=>" "$Type dependency $pattern: found $pkg";  fi;                             ;;                          esac;               done
=> Bootstrap dependency digest>=20010302: found digest-20111104
set -e; for w in "[license.mk] Every package should define a LICENSE." ; do echo "WARNING: $w"; done
WARNING: [license.mk] Every package should define a LICENSE.
set -e; set -e;                          case checksum-phase in                      *-phase)   test ! -f /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.extract_done || exit 0 ;;    esac;                               if cd /home/richard/src/pkgsrc/distfiles && /usr/bin/env DIGEST=/opt/pkg/bin/digest CAT=/usr/bin/cat    ECHO=echo SED=/opt/pkg/bin/nbsed            TEST=test                   /usr/bin/bash /home/richard/src/pkgsrc/mk/checksum/checksum /home/richard/src/pkgsrc/fonts/tex-amsfonts/distinfo tex-amsfonts-15878/amsfonts.tar.xz; then  true;                        else                                echo 1>&2 "ERROR:" "Make sure the Makefile and checksum file (/home/richard/src/pkgsrc/fonts/tex-amsfonts/distinfo)";  echo 1>&2 "ERROR:" "are up to date.  If you want to override this check, type";  echo 1>&2 "ERROR:" "\"/opt/pkg/bin/bmake NO_CHECKSUM=yes [other args]\".";  exit 1;                             fi
set -e;                  if test -n "" &&  /opt/pkg/sbin/pkg_info -K /var/opt/pkg/db/pkg -qe tex-amsfonts-3.0nb2; then  echo ===\> "Skipping installation of already handled package";  else  cd /home/richard/src/pkgsrc/fonts/tex-amsfonts                             && /usr/bin/env  PATH=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.wrapper/bin:/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.buildlink/bin:/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.tools/bin:/opt/pkg/bin:/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin USE_DESTDIR=yes /opt/pkg/bin/bmake _MAKE=/opt/pkg/bin/bmake OPSYS=SunOS OS_VERSION=5.11 LOWER_OPSYS=solaris _PKGSRCDIR=/home/richard/src/pkgsrc _HOSTNAME=devzone OBJHOSTNAME= PKGTOOLS_VERSION=20120221 _CC=/opt/pkg/gcc47/bin/gcc _PATH_ORIG=/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin _PKGSRC_BARRIER=yes ALLOW_VULNERABLE_PACKAGES= install  || {                              exitcode="$?";                      /usr/bin/env  PATH=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.wrapper/bin:/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.buildlink/bin:/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.tools/bin:/opt/pkg/bin:/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin USE_DESTDIR=yes /opt/pkg/bin/bmake _MAKE=/opt/pkg/bin/bmake OPSYS=SunOS OS_VERSION=5.11 LOWER_OPSYS=solaris _PKGSRCDIR=/home/richard/src/pkgsrc _HOSTNAME=devzone OBJHOSTNAME= PKGTOOLS_VERSION=20120221 _CC=/opt/pkg/gcc47/bin/gcc _PATH_ORIG=/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin _PKGSRC_BARRIER=yes barrier-error-check;  exit "$exitcode";                  };  fi
===> Building binary package for tex-amsfonts-3.0nb2
set -e; /usr/bin/rm -f /home/richard/src/pkgsrc/packages/All/tex-amsfonts-3.0nb2.tgz
set -e;/usr/bin/mkdir -p /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb
set -e;/usr/bin/rm -f /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp
set -e; (echo LOCALBASE=/opt/pkg ; echo PKGINFODIR=info ; echo PKGMANDIR=man ; echo _USE_DESTDIR=user-destdir ; echo PKG_SYSCONFBASEDIR=/etc/opt/pkg ; echo PKG_SYSCONFDIR=/etc/opt/pkg ; echo PKGPATH=fonts/tex-amsfonts ; echo OPSYS=SunOS ; echo OS_VERSION=5.11 ; echo MACHINE_ARCH=x86_64 ; echo MACHINE_GNU_ARCH=x86_64 ; echo ABI=64 ; echo CPPFLAGS=\ \  ; echo CFLAGS=-O ; echo FFLAGS=-O ; echo LDFLAGS=\ \ \ -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0\ -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0\ -L/opt/pkg/gcc47/lib\ -Wl,-R/opt/pkg/gcc47/lib\ -Wl,-R/opt/pkg/lib ; echo OBJECT_FMT=ELF ; echo LICENSE= ; echo RESTRICTED= ; echo NO_SRC_ON_FTP= ; echo NO_SRC_ON_CDROM= ; echo NO_BIN_ON_FTP= ; echo NO_BIN_ON_CDROM= ; echo CONFIGURE_ENV=INSTALL_INFO=\ MAKEINFO=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.tools/bin/makeinfo\ FLEX=\ BISON=\ PKG_CONFIG=\ PKG_CONFIG_LIBDIR=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.buildlink/lib/pkgconfig:/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.buildlink/share/pkgconfig\ PKG_CONFIG_LOG=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkg-config.log\ PKG_CONFIG_PATH=\ MAKE=make\ WRAPPER_DEBUG=no\ WRAPPER_UPDATE_CACHE=yes\ CC=gcc\ CFLAGS=-O\ CPPFLAGS=\ CXX=g++\ CXXFLAGS=-O\ COMPILER_RPATH_FLAG=-Wl,-R\ F77=f77\ FC=f77\ FFLAGS=-O\ LANG=C\ LC_COLLATE=C\ LC_CTYPE=C\ LC_MESSAGES=C\ LC_MONETARY=C\ LC_NUMERIC=C\ LC_TIME=C\ LDFLAGS=-L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0\\\ -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0\\\ -L/opt/pkg/gcc47/lib\\\ -Wl,-R/opt/pkg/gcc47/lib\\\ -Wl,-R/opt/pkg/lib\ LINKER_RPATH_FLAG=-R\ PATH=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.wrapper/bin:/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.buildlink/bin:/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.tools/bin:/opt/pkg/bin:/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin:/opt/pkg/bin:/opt/pkg/bin\ PREFIX=/opt/pkg\ PKG_SYSCONFDIR=/etc/opt/pkg\ CPP=cpp\ CXXCPP=cpp\ HOME=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.home ; echo CONFIGURE_ARGS= ; echo CMAKE_ARGS= ; echo _PLIST_IGNORE_FILES= ;)   > /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp
set -e;echo "PKGTOOLS_VERSION=20091115" >> /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp
set -e;echo "HOMEPAGE=http://www.tug.org/texlive/" >> /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp
set -e;echo "CATEGORIES=print" >> /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp
set -e;echo "[email protected]" >> /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp
set -e;echo "BUILD_DATE=2012-10-25 19:02:38 +0200" >> /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp
set -e;echo "BUILD_HOST=SunOS devzone 5.11 oi_151a7 i86pc i386 i86pc" >> /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp
set -e;                              case "" in                      "")    ldd=`/usr/bin/type ldd 2>/dev/null | /opt/pkg/bin/nawk '{ print $NF }'` ;;  *)  ldd= ;;                      esac;                               bins=`/opt/pkg/bin/nawk '/(^|\/)(bin|sbin|libexec)\// { print "/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.destdir/opt/pkg/" $0 } END { exit 0 }' /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.PLIST_nokeywords`;  case ELF"" in                     ELF)                                libs=`/opt/pkg/bin/nawk '/\/lib.*\.so(\.[0-9]+)*$/ { print "/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.destdir/opt/pkg/" $0 } END { exit 0 }' /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.PLIST_nokeywords`;  if test -n "$bins" -o -n "$libs"; then       requires=`(/usr/bin/env  LD_LIBRARY_PATH=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.destdir/opt/pkg/lib $ldd $bins $libs 2>/dev/null || true) | /opt/pkg/bin/nawk '$2 == "=>" && $3 ~ "/" { print $3 }' | /opt/pkg/bin/nbsed -e 's,/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.destdir,,' | /usr/bin/sort -u`;  fi;                            linklibs=`/opt/pkg/bin/nawk '/.*\.so(\.[0-9]+)*$/ { print "/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.destdir/opt/pkg/" $0 }' /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.PLIST_nokeywords`;  for i in $linklibs; do                   if test -r $i -a ! -x $i -a ! -h $i; then   test yes"" = "no" ||  echo "$i: installed without execute permission; fixing (should use [BSD_]INSTALL_LIB)";  /usr/bin/chmod +x $i;            fi;                         done;                           ;;                          Mach-O)                                 libs=`/opt/pkg/bin/nawk '/\/lib.*\.dylib/ { print "/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.destdir/opt/pkg/" $0 } END { exit 0 }' /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.PLIST_nokeywords`;  if test "$bins" != "" -o "$libs" != ""; then  requires=`($ldd $bins $libs 2>/dev/null || true) | /opt/pkg/bin/nawk '/compatibility version/ { print $1 }' | /usr/bin/sort -u`;  fi;                           ;;                          esac;                               requires=`{ for i in $requires $requires; do echo $i; done;  /opt/pkg/bin/nawk '{ print "/opt/pkg/" $0 }' /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.PLIST_nokeywords; } |  /usr/bin/sort | uniq -c | awk '$1 == 2 {print $2}'`;  for i in "" $libs; do                      test "$i" != "" || continue;            echo "PROVIDES=${i}";               done | /opt/pkg/bin/nbsed -e 's,^PROVIDES=/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.destdir,PROVIDES=,'         >> /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp;                     for req in "" $requires; do                     test "$req" != "" || continue;          echo "REQUIRES=$req" >> /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp;        done
set -e;                              rm -f /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO;                      sort /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp > /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO;                 rm -f /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO.tmp
set -e;/usr/bin/mkdir -p /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb
set -e;  /usr/bin/cat /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.PLIST |                      /opt/pkg/bin/nawk 'BEGIN { base = "/opt/pkg/" }                 /^@cwd/ { base = $2 "/" }               /^@/ { next }                       { print base $0 }' |                    /usr/bin/sort -u |                          /opt/pkg/bin/nbsed -e "s,^/,/home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.destdir/," -e "s/'/'\\\\''/g" -e "s/.*/'&'/" |  /usr/bin/xargs -n 256 /usr/bin/ls -ld 2>/dev/null |               /opt/pkg/bin/nawk 'BEGIN { s = 0 } { s += $5 } END { print s }'         > /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+SIZE_PKG
set -e;/usr/bin/mkdir -p /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb
set -e;                              {                               /usr/bin/cat /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+SIZE_PKG &&               /opt/pkg/bin/nawk '$1 == "full" { print $3; }' < /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.rdepends | /usr/bin/sort -u |            /usr/bin/xargs -n 256 /opt/pkg/sbin/pkg_info -K /var/opt/pkg/db/pkg -qs;            } |                                 /opt/pkg/bin/nawk 'BEGIN { s = 0 } /^[0-9]+$/ { s += $1 } END { print s }'  > /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+SIZE_ALL
set -e; /usr/bin/mkdir -p /home/richard/src/pkgsrc/packages/All
=> Creating binary package /home/richard/src/pkgsrc/packages/All/tex-amsfonts-3.0nb2.tgz
set -e; tmpname=/home/richard/src/pkgsrc/packages/All/tex-amsfonts-3.0nb2.tmp.tgz;   if /opt/pkg/sbin/pkg_create -K /var/opt/pkg/db/pkg -l -U -B /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_INFO -b /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+BUILD_VERSION -c /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+COMMENT  -d /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+DESC -f /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.PLIST_deps  -S /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+SIZE_ALL -s /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+SIZE_PKG         -C teTeX-texmf\<=3.0nb13\ tex-cm\<2009\ tex-latex-fonts\<2009\ tex-misc\<2009   -i /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+INSTALL     -k /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.pkgdb/+DEINSTALL -F gzip -I /opt/pkg -p /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.destdir/opt/pkg -u root -g root "$tmpname"; then      /usr/bin/mv -f "$tmpname" /home/richard/src/pkgsrc/packages/All/tex-amsfonts-3.0nb2.tgz;            else                                exitcode=$?; /usr/bin/rm -f "$tmpname"; exit $exitcode;     fi
pkg_create: cannot create archive: Failed to open '/home/richard/src/pkgsrc/packages/All/tex-amsfonts-3.0nb2.tmp.tgz'
*** Error code 2

Stop.
bmake: stopped in /home/richard/src/pkgsrc/fonts/tex-amsfonts
set -e;                  /usr/bin/rm -f /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.warning/*.tmp;                     test -d /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.warning || exit 0;                cd /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.warning;                       for file in ./*; do                         test "$file" != "./*" || exit 0;            break;                          done;                               /usr/bin/cat ./* | /opt/pkg/bin/nbsed -e "s|^|WARNING: |" 1>&2;                     /usr/bin/mv -f ./* /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.warning-done
set -e;                  /usr/bin/rm -f /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.error/*.tmp;                   test -d /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.error || exit 0;              cd /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.error;                         for file in ./*; do                         test "$file" != "./*" || exit 0;            break;                          done;                               /usr/bin/cat * | /opt/pkg/bin/nbsed -e "s|^|ERROR: |" 1>&2;                     if /opt/pkg/bin/nawk 'END { exit (NR > 0) ? 0 : 1; }' ./*; then                 /usr/bin/mv -f ./* /home/richard/src/pkgsrc/fonts/tex-amsfonts/work.devzone/.error-done;            exit 1;                             fi
*** Error code 1

Stop.
bmake: stopped in /home/richard/src/pkgsrc/fonts/tex-amsfonts

Is there something else that needs to be set for a non root user?

CUPS: PKG_FAIL_REASON libusb1-1.0.9 is not available but is not asked for

As can be seen from below, I explicitly took libusb out of PKG_OPTIONS.cups but I still can't build because for some reason is stays in the currently selected list!

options.mk contains this:

.if !empty(PKG_OPTIONS:Mlibusb)
.include "../../devel/libusb1/buildlink3.mk"
CONFIGURE_ARGS+=        --enable-libusb
MESSAGE_SRC+=           ${PKGDIR}/MESSAGE.libusb
USE_TOOLS+=             pkg-config
.else
CONFIGURE_ARGS+=        --disable-libusb
.endif

Is there a workaround for this?

richard@devzone:~/src/pkgsrc/print/cups$ bmake show-var VARNAME=PKG_OPTIONS.cups
dbus dnssd kerberos pam slp tcpwrappers
richard@devzone:~/src/pkgsrc/print/cups$ bmake show-var VARNAME=PKG_OPTIONS_DEFAULT

richard@devzone:~/src/pkgsrc/print/cups$ bmake 
=> Bootstrap dependency digest>=20010302: found digest-20111104
=> Fetching cups-1.5.4-source.tar.bz2
=> Checksum SHA1 OK for cups-1.5.4-source.tar.bz2
=> Checksum RMD160 OK for cups-1.5.4-source.tar.bz2
===> Installing dependencies for cups-1.5.4nb1
==========================================================================
The supported build options for cups are:

        acl dbus dnssd ghostscript kerberos libusb
        pam poppler slp tcpwrappers

The currently selected options are:

        dbus dnssd kerberos libusb pam poppler slp
        tcpwrappers

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

        PKG_OPTIONS.cups = dbus dnssd kerberos pam slp tcpwrappers

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
cups-1.5.4nb1.  Their current value is shown below:

        * BDB185_DEFAULT = db4
        * BDB_DEFAULT = db4
        * CUPS_GROUP = lp
        * CUPS_SYSTEM_GROUPS = root
        * CUPS_USER = lp
        * JPEG_DEFAULT = jpeg
        * KRB5_DEFAULT = heimdal
        * PAM_DEFAULT = solaris-pam
        * SSLBASE (defined)
        * SSLCERTS = /etc/opt/pkg/openssl/certs
        * SSLDIR = /etc/opt/pkg/openssl
        * SSLKEYS = /etc/opt/pkg/openssl/private
        * VARBASE = /var/opt/pkg

Based on these variables, the following variables have been set:

        * BDBBASE (defined, but empty)
        * BDB_LIBS = -ldb4
        * BDB_TYPE = db4
        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg
        * KRB5BASE (defined, but empty)
        * KRB5_TYPE = heimdal
        * PAMBASE (defined, but empty)
        * PAM_TYPE = solaris-pam

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/opt/pkg/bin/bmake clean' after
the changes.
==========================================================================
=> Build dependency libtool-base>=2.2.6bnb3: found libtool-base-2.2.6bnb8
=> Build dependency automake>=1.9: found automake-1.12.4nb1
=> Build dependency autoconf>=2.60: found autoconf-2.69nb1
=> Build dependency gmake>=3.81: found gmake-3.82nb5
=> Build dependency nbpatch-[0-9]*: found nbpatch-20100124
=> Build dependency pkg-config>=0.25: found pkg-config-0.27.1
=> Build dependency pax>=20040802: found pax-20080110nb2
=> Build dependency gcc47>=4.7.0: found gcc47-4.7.0nb4
=> Full dependency poppler-utils-[0-9]*: found poppler-utils-0.20.4
=> Full dependency {gcc47,gcc47-libs}>=4.7.0: found gcc47-libs-4.7.0nb5
=> Full dependency {gcc47,gcc47-libs}>=4.7.0: found gcc47-libs-4.7.0nb5
=> Full dependency dbus>=0.91: found dbus-1.6.4nb1
=> Full dependency mDNSResponder>=214.3.2: found mDNSResponder-258.14
=> Full dependency heimdal>=1.5.2nb2: found heimdal-1.5.2nb3
=> Full dependency openssl>=0.9.8knb1: found openssl-0.9.8x
=> Full dependency libusb1>=1.0.9: NOT found
=> Verifying package-install for ../../devel/libusb1
ERROR: This package is not available for these platforms: DragonFly-*-* SunOS-*-*.
ERROR: This package has set PKG_FAIL_REASON:
ERROR: libusb1-1.0.9 is not available for SunOS-5.11-x86_64
*** Error code 255

Stop.
bmake: stopped in /home/richard/src/pkgsrc/devel/libusb1
*** Error code 1

Stop.
bmake: stopped in /home/richard/src/pkgsrc/print/cups
richard@devzone:~/src/pkgsrc/print/cups$ 

/usr/bin/ld warnings but also fatal : relocations remain against allocatable but non-writable sections

In the last moments of completing the build of gnucash, I received the following:

/usr/bin/bash ../../../libtool --tag=CC   --mode=link gcc  -Wdeclaration-after-statement -O -I/opt/pkg/include -I/opt/pkg/include/gettext -I/opt/pkg/include/freetype2 -I/opt/pkg/include/libofx -I/opt/pkg/include/ncurses -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused  -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o libgnc-business-ledger.la -rpath /opt/pkg/lib gncEntryLedger.lo gncEntryLedgerControl.lo gncEntryLedgerDisplay.lo gncEntryLedgerLayout.lo gncEntryLedgerLoad.lo gncEntryLedgerModel.lo ../../../src/business/business-core/libgncmod-business-core.la ../../../src/business/business-utils/libgncmod-business-utils.la ../../../src/business/dialog-tax-table/libgncmod-dialog-tax-table.la ../../../src/register/register-core/libgncmod-register-core.la ../../../src/register/register-gnome/libgncmod-register-gnome.la ../../../src/gnome-utils/libgncmod-gnome-utils.la ../../../src/app-utils/libgncmod-app-utils.la ../../../src/engine/libgncmod-engine.la ../../../src/core-utils/libgnc-core-utils.la ../../../src/libqof/qof/libgnc-qof.la -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lintl   -I/opt/pkg/include -I/usr/include -I/opt/pkg/include/ncurses -D_REENTRANT -D_REENTRANT  -D_REENTRANT -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lguile -lltdl -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib -Wl,-R/usr/lib -lpthread -lrt -lgmp -lsocket -lnsl -lm -lltdl -lpthread -lrt -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -lgthread-2.0 -lgobject-2.0 -lgmodule-2.0 -lpthread -lthread -lglib-2.0 -lintl   -lm  -lm
libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,libgnc-business-ledger.so.0 -o .libs/libgnc-business-ledger.so.0.0.0  .libs/gncEntryLedger.o .libs/gncEntryLedgerControl.o .libs/gncEntryLedgerDisplay.o .libs/gncEntryLedgerLayout.o .libs/gncEntryLedgerLoad.o .libs/gncEntryLedgerModel.o   -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/business/business-core/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/business/business-utils/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/business/dialog-tax-table/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/register/register-core/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/register/register-gnome/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/gnome-utils/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/backend/xml/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/app-utils/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/engine/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/calculation/.libs -R/opt/pkg/gcc47/lib -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/gnc-module/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/core-utils/.libs -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/libqof/qof/.libs -R/opt/pkg/lib/gnucash -R/opt/pkg/lib -R/home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib -R/opt/pkg/gcc47/lib -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/business/business-core/.libs -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/register/register-core/.libs -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/gnome-utils/.libs -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/backend/xml/.libs -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/app-utils/.libs -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/engine/.libs -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/calculation/.libs -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/gnc-module/.libs -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/core-utils/.libs -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/libqof/qof/.libs -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -L/opt/pkg/gcc47/lib -L/home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib ../../../src/business/business-core/.libs/libgncmod-business-core.so ../../../src/business/business-utils/.libs/libgncmod-business-utils.so ../../../src/business/dialog-tax-table/.libs/libgncmod-dialog-tax-table.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/business/business-core/.libs/libgncmod-business-core.so ../../../src/register/register-core/.libs/libgncmod-register-core.so ../../../src/register/register-gnome/.libs/libgncmod-register-gnome.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/register/register-core/.libs/libgncmod-register-core.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/gnome-utils/.libs/libgncmod-gnome-utils.so ../../../src/gnome-utils/.libs/libgncmod-gnome-utils.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/backend/xml/.libs/libgnc-backend-xml-utils.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/app-utils/.libs/libgncmod-app-utils.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgnomeui-2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libbonoboui-2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libSM.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libICE.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgnomecanvas-2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgailutil.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXinerama.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXi.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXrandr.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXcursor.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXcomposite.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgnome-2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgnomevfs-2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libdbus-glib-1.so -lssl -lcrypto /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libcanberra.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libvorbisfile.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libvorbis.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libogg.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libpopt.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libbonobo-2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libbonobo-activation.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libORBitCosNaming-2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libart_lgpl_2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgnome-keyring.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libdbus-1.so -lbsm /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgcrypt.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgpg-error.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libglade-2.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libxml2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/liblzma.so ../../../src/app-utils/.libs/libgncmod-app-utils.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/engine/.libs/libgncmod-engine.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/calculation/.libs/libgncmod-calculation.so ../../../src/engine/.libs/libgncmod-engine.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/gnc-module/.libs/libgnc-module.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/core-utils/.libs/libgnc-core-utils.so ../../../src/core-utils/.libs/libgnc-core-utils.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgconf-2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libORBit-2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/libqof/qof/.libs/libgnc-qof.so ../../../src/libqof/qof/.libs/libgnc-qof.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgtk-x11-2.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgdk-x11-2.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libatk-1.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libpangocairo-1.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libpangoft2-1.0.so /opt/pkg/gcc47/lib/libstdc++.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgdk_pixbuf-2.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgio-2.0.so -lresolv /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libcairo.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libpixman-1.so -ldl /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libpng15.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libxcb-shm.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libxcb-render.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXrender.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libGL.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXxf86vm.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXext.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXdamage.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXfixes.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libX11.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libxcb.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXau.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libXdmcp.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libdrm.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libpango-1.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libfontconfig.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libfreetype.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libz.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libbz2.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libexpat.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libguile.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgmp.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libltdl.so -lrt /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgobject-2.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgthread-2.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libffi.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libgmodule-2.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libglib-2.0.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libpcre.so -lpthread -lthread -lnsl -lsocket /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libintl.so /home/richard/src/pkgsrc/finance/gnucash/work.devzone/.buildlink/lib/libiconv.so -lc -lm  -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -Wl,-R/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/lib  
ld: warning: file /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/business/business-core/.libs/libgncmod-business-core.so: linked to ../../../src/business/business-core/.libs/libgncmod-business-core.so: attempted multiple inclusion of file
ld: warning: file /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/register/register-core/.libs/libgncmod-register-core.so: linked to ../../../src/register/register-core/.libs/libgncmod-register-core.so: attempted multiple inclusion of file
ld: warning: file /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/gnome-utils/.libs/libgncmod-gnome-utils.so: linked to ../../../src/gnome-utils/.libs/libgncmod-gnome-utils.so: attempted multiple inclusion of file
ld: warning: file /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/app-utils/.libs/libgncmod-app-utils.so: linked to ../../../src/app-utils/.libs/libgncmod-app-utils.so: attempted multiple inclusion of file
ld: warning: file /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/engine/.libs/libgncmod-engine.so: linked to ../../../src/engine/.libs/libgncmod-engine.so: attempted multiple inclusion of file
ld: warning: file /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/core-utils/.libs/libgnc-core-utils.so: linked to ../../../src/core-utils/.libs/libgnc-core-utils.so: attempted multiple inclusion of file
ld: warning: file /home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/libqof/qof/.libs/libgnc-qof.so: linked to ../../../src/libqof/qof/.libs/libgnc-qof.so: attempted multiple inclusion of file
Text relocation remains                         referenced
    against symbol                  offset      in file
.LC8                                0x1f        .libs/gncEntryLedgerLayout.o
.rodata.str1.1 (merged string section) 0x37             .libs/gncEntryLedgerLayout.o
.rodata.str1.1 (merged string section) 0x3f             .libs/gncEntryLedgerLayout.o
.LC24                               0x6c        .libs/gncEntryLedgerLayout.o
.rodata.str1.1 (merged string section) 0x84             .libs/gncEntryLedgerLayout.o
.rodata.str1.1 (merged string section) 0x8c             .libs/gncEntryLedgerLayout.o
.LC24                               0x94        .libs/gncEntryLedgerLayout.o
.rodata.str1.1 (merged string section) 0xac             .libs/gncEntryLedgerLayout.o
.rodata.str1.1 (merged string section) 0xb4             .libs/gncEntryLedgerLayout.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: error: ld returned 1 exit status
gmake[5]: *** [libgnc-business-ledger.la] Error 1
gmake[5]: Leaving directory `/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/business/business-ledger'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/business/business-ledger'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src/business'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/richard/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /home/richard/src/pkgsrc/finance/gnucash
*** Error code 1

Stop.
bmake: stopped in /home/richard/src/pkgsrc/finance/gnucash

actually two issues at hand:

  1. frequent ld warnings concerning attempted multiple inclusion of file (which I see quite frequently in these illumos pkgsrc builds); and
  2. ld: fatal: relocations remain against allocatable but non-writable sections
    apparently this has been seen over the years, and it appears that at the time the recommendation was to use gnu ld. As I doubt that is the wish of the illumos platform at the moment, is this something that should be looked at more closely?

sendmail 8.14.5nb2 2012Q4

=> Automatic manual page handling
pkg_create: can't stat /opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/bin/hoststat' pkg_create: can't stat/opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/bin/mailq'
pkg_create: can't stat /opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/bin/newaliases' pkg_create: can't stat/opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/bin/purgestat'
pkg_create: can't stat /opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/libexec/sendmail/sendmail' pkg_create: can't stat/opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/man/man1/mailq.1'
pkg_create: can't stat /opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/man/man1/newaliases.1' pkg_create: can't stat/opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/man/man5/aliases.5'
pkg_create: can't stat /opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/man/man8/sendmail.8' ===> Building binary package for sendmail-8.14.5nb2 => Creating binary package /opt/pkgsrc/packages/All/sendmail-8.14.5nb2.tgz pkg_create: can't stat/opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/bin/hoststat'
pkg_create: can't stat /opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/bin/mailq' pkg_create: can't stat/opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/bin/newaliases'
pkg_create: can't stat /opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/bin/purgestat' pkg_create: can't stat/opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/libexec/sendmail/sendmail'
pkg_create: can't stat /opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/man/man1/mailq.1' pkg_create: can't stat/opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/man/man1/newaliases.1'
pkg_create: can't stat /opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/man/man5/aliases.5' pkg_create: can't stat/opt/pkgsrc/mail/sendmail/work/.destdir/opt/local/man/man8/sendmail.8'
pkg_create: lstat failed for file bin/hoststat: No such file or directory
*** Error code 2

Stop.
bmake: stopped in /opt/pkgsrc/mail/sendmail
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/mail/sendmail

to grep or ggrep

the case of /usr/bin/grep not supporting -E is more and more frustrating, and seemingly the use of putting /opt/pkg/gnu/bin ahead of /opt/pkg/sbin:/opt/pkg/bin seems if not apalling but destined for failure.
here is another case:

richard@devzone:~/src/pkgsrc$ echo $PATH
/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin
richard@devzone:~/src/pkgsrc$ pkg_update_summary ~/src/pkgsrc/packages/All/pkg_summary.txt ~/src/pkgsrc/packages/All
awk: syntax error near line 1
awk: bailing out near line 1
grep: illegal option -- E
Usage: grep [-c|-l|-q] -hbnsviw pattern file . . .
/opt/pkg/bin/pipestatus: line 96: [: -eq: unary operator expected
richard@devzone:~/src/pkgsrc$ which grep
/usr/bin/grep
richard@devzone:~/src/pkgsrc$ /opt/pkg/gnu/bin/grep  -E
Usage: /opt/pkg/gnu/bin/grep [OPTION]... MOTIF [FICHIER]...
Try '/opt/pkg/gnu/bin/grep --help' for more information.
richard@devzone:~/src/pkgsrc$ grep -E
grep: illegal option -- E
Usage: grep [-c|-l|-q] -hbnsviw pattern file . . .
richard@devzone:~/src/pkgsrc$ export PATH=/opt/pkg/gnu/bin:$PATH
richard@devzone:~/src/pkgsrc$ pkg_update_summary ~/src/pkgsrc/packages/All/pkg_summary.txt ~/src/pkgsrc/packages/All
richard@devzone:~/src/pkgsrc$ pkg_update_summary ~/src/pkgsrc/packages/All/pkg_summary.gz ~/src/pkgsrc/packages/All 'gzip -dc' 'gzip -c'
richard@devzone:~/src/pkgsrc$ cd packages/All/
richard@devzone:~/src/pkgsrc/packages/All$ ls pkg_summary.
pkg_summary.gz   pkg_summary.txt  
richard@devzone:~/src/pkgsrc/packages/All$ ls pkg_summary.txt 
pkg_summary.txt

Shouldn't either illumos update /usr/bin/grep to accept the gnu grep equivalents or somehow we need to use /opt/pkg/bin/ggrep, else find out how to ease the pain of using /opt/pkg/gnu/bin by default at the head of the PATH.

I doubt that is it possible to get pkgsrc to use egrep (or rather gegrep) instead of grep -E given the following extract:

richard@devzone:~/src/pkgsrc$ gegrep --help
Usage: gegrep [OPTION]... MOTIF [FICHIER]...
Cherche MOTIF dans chaque FICHIER ou ร  partir de l'entrรฉe standard.
MOTIF est une expression rรฉguliรจre รฉtendue
Exemple: gegrep -i 'hello worldยป menu.h main.c
...
Invocation as 'egrep' is deprecated; use 'grep -E' instead.
When FILE is -, read standard input.  With no FILE, read . if a command-line
-r is given, - otherwise.  If fewer than two FILEs are given, assume -h.
Exit status is 0 if any line is selected, 1 otherwise;
if any error occurs and -q is not given, the exit status is 2.

Rapporter toutes les anomalies ร  : [email protected]
Page web GNU Grep : <http://www.gnu.org/software/grep/>
Aide gรฉnรฉrale des logiciels GNU : <http://www.gnu.org/gethelp/>

Perhaps ggrep -E is the best pkgsrc oriented solution... Is there a way to replace grep by /opt/pkg/bin/ggrep in mk.conf? I tried setting the following, to no avail:

TOOLS_PLATFORM.grep?=           /opt/pkg/bin/ggrep

Observations, please?

pkgin upgrade crashes with second repository

Hi I'm using a second repository in pkgin.
And it seems that with this repository pkgin crashes during the call of pkgin upgrade.

/opt/local/etc/pkgin/repositories.conf:

http://pkgsrc.joyent.com/sdc6/2012Q2/x86_64/All
http://release.project-fifo.net/pkg/dev/

I tested the following:

  1. Having the default repo twice doesn't causes a crash.
  2. The order of repos doesn't matter.
  3. This isn't triggered when no packages are installed.

It might be a fault in the package description I'll look into that detail a bit later (packages in the 2nd repo are mine). So they do install fine, and I guess even with a missing field they should not SegFault the program :)

The coredump is here is the following: https://www.dropbox.com/s/l34sh3agxf4r1n6/core

wx-config ... no config found on illumos/2012Q3

Hi, trying to build pgadmin 1.16 from git, but getting some problems with (to start with) wxWidgets.
Is there something missing from the installation, or with pkgsrc is there additional configation steps needed?

richard@devzone:~$ sudo pkgin update
database for http://pkgsrc.smartos.org/packages/illumos/2012Q3/All is up-to-date
richard@devzone:~$ pkgin ls | grep wx 
py27-wxWidgets-2.8.10.1nb13 Python bindings for wxWidgets
wxGTK28-2.8.10nb19   GTK-based implementation of the wxWidgets GUI library
wxGTK28-contrib-2.8.10nb15 GTK-based implementation of the wxWidgets GUI library (contrib libraries)
richard@devzone:~$ wx-config       

 wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full]
           [--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT]
           [--universal[=yes|no]] [--unicode[=yes|no]] [--debug[=yes|no]]
           [--static[=yes|no]] [--version[=VERSION]] [--basename] [--cc]
           [--cppflags] [--cflags] [--cxxflags] [--rescomp] [--libs] [--cxx]
           [--ld] [--linkdeps] [--utility=UTIL] [LIB ...] 

    wx-config returns information about the wxWidgets libraries available on
  your system.  It may be used to retrieve the information required to build
  applications using these libraries using --cppflags, --cflags,  --cxxflags
  and --libs options.

    If multiple builds of wxWidgets  are available,  you can use the options
  --prefix, --host, --toolkit, --unicode, --debug, --static, --universal and
  --version to select from them. The --selected-config option shows the name
  of the current configuration and --list shows available alternatives which
  match specified criteria. The --utility option returns the correct version
  of UTIL to use with the selected build. The --linkdeps option returns only
  static libraries for your makefile link rule dependencies.

    Optional LIB arguments (comma or space separated) may be used to specify
  the wxWidgets libraries that  you wish  to use.  The magic "std" label may
  be used to import all libraries that would be used by default if none were
  specified explicitly, e.g. wx-config --libs core,base.

richard@devzone:~$ wx-config --list

    Default config is gtk2-unicode-release-2.8

  No config found to match: /opt/pkg/bin/wx-config --list
  in /opt/pkg/lib/wx/config

  Please install the desired library build, or specify a different
  prefix where it may be found.  If the library is not installed
  you may call its wx-config directly by specifying its full path.


  Also available in /opt/pkg:
    gtk2-ansi-release-2.8
    gtk2-unicode-release-2.8

richard@devzone:~$ /opt/pkg/lib/wx/config/gtk2-unicode-release-2.8 --libs

  Warning: No config found to match: /opt/pkg/lib/wx/config/gtk2-unicode-release-2.8 --libs
           in /opt/pkg/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

richard@devzone:~$ 

pkgin needs to return nonzero exit status on search failure

Currently, pkgin se behaves as follows:

root at 6c4c79d6-ac48-11e2-a228-bb5fd3fe0c7b in ~

pkgin se no-such-pkg

No results found for no-such-pkg
root at 6c4c79d6-ac48-11e2-a228-bb5fd3fe0c7b in ~

echo $?

0

The same zero exit status is provided when the search succeeds. This makes it difficult to detect whether the package exists in the repo, and impossible to do so in a Stable fashion since the human-readable output format may change. The correct behaviour is to exit with some (any, really) non-zero exit status when a matching package is not found in the repository.

webkit-gtk: error: 'yield' was not declared in this scope

I came across this anomaly in the beast webkit-gtk.

Seems to be a namespace problem as very well explained by the compiler message below:

  CXX    Source/WebCore/platform/sql/libWebCore_la-SQLiteDatabase.lo
Source/WebCore/platform/sql/SQLiteDatabase.cpp: In member function 'void WebCore::SQLiteDatabase::interrupt()':
Source/WebCore/platform/sql/SQLiteDatabase.cpp:128:15: error: 'yield' was not declared in this scope
Source/WebCore/platform/sql/SQLiteDatabase.cpp:128:15: note: suggested alternative:
In file included from ./Source/JavaScriptCore/wtf/ThreadRestrictionVerifier.h:35:0,
                 from ./Source/JavaScriptCore/wtf/RefCounted.h:26,
                 from ./Source/JavaScriptCore/wtf/text/CString.h:30,
                 from Source/WebCore/platform/sql/SQLiteDatabase.h:31,
                 from Source/WebCore/platform/sql/SQLiteDatabase.cpp:28:
./Source/JavaScriptCore/wtf/Threading.h:103:25: note:   'WTF::yield'
gmake[1]: *** [Source/WebCore/platform/sql/libWebCore_la-SQLiteDatabase.lo] Error 1
gmake[1]: Leaving directory `/home/richard/src/pkgsrc/www/webkit-gtk/work.devzone/webkit-1.8.3'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /home/richard/src/pkgsrc/www/webkit-gtk
*** Error code 1

Stop.

Tried patching as follows:

--- SQLiteDatabase.cpp.orig     dim. oct. 28 06:53:34 2012
+++ SQLiteDatabase.cpp  dim. oct. 28 06:47:18 2012
@@ -125,7 +125,7 @@
         if (!m_db)
             return;
         sqlite3_interrupt(m_db);
-        yield();
+        WTF::yield();
     }

     m_lockingMutex.unlock();

and it compiles further now. (PS I haven't tried the webkit-gtk3 tree)

BTW, pkgvi, mkpatches and bmake mdi are great tools (discovered via this wiki: http://wiki.minix3.org/en/DevelopersGuide/TestingPkgsrc).
If it would be useful, I could try doing git diffs for joyent/pkgsrc ...

Now that I've tasted blood, will never suffer myself to go back to SFE!

cheers

getgrouplist undefined in cups-pdf

I get the following building cups-pdf:

===> Building for cups-pdf-2.6.1nb2
cd /home/richard/src/pkgsrc/print/cups-pdf/work.devzone/cups-pdf-2.6.1 &&  gcc -O -I/opt/pkg/include -I/usr/include -o src/cups-pdf src/cups-pdf.c
Undefined                       first referenced
 symbol                             in file
getgrouplist                        /var/tmp//ccjdaWAi.o
ld: fatal: symbol referencing errors. No output written to src/cups-pdf
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /home/richard/src/pkgsrc/print/cups-pdf
*** Error code 1

Stop.

After a bit of research, it appears there are a number of consumers looking for this function, even in illumos itself (http://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/ssh/libopenbsd-compat/common/getgrouplist.c) .

Again, is it best to put in a workaround, or perhaps add the function where it it habitually found?

sun-jre7/sun-jdk7CHECK_SHLIBS_SUPPORTED=

Jonathan, I'm not sure what happens on your side, but I have (and always have) .tar.gz files from the oracle download site. tried again today fresh since this didn't work... needed to change to .tar.gz for both.

diff --git a/lang/sun-jdk7/Makefile b/lang/sun-jdk7/Makefile
index 6c70633..021dd1d 100644
--- a/lang/sun-jdk7/Makefile
+++ b/lang/sun-jdk7/Makefile
@@ -29,7 +29,7 @@ CHECK_SHLIBS_SUPPORTED=       no
 # XXX: The download page says .tar.gz but sends the file as .gz
 .if ${OPSYS} == "SunOS"
 EXTRACT_OPTS=  -f tar
-EXTRACT_SUFX=  .gz
+EXTRACT_SUFX=  .tar.gz
 .endif

 # The 64-bit Solaris downloads for some inexplicable reason only contain
diff --git a/lang/sun-jdk7/distinfo b/lang/sun-jdk7/distinfo
index d909026..7cd5f22 100644
--- a/lang/sun-jdk7/distinfo
+++ b/lang/sun-jdk7/distinfo
@@ -1,14 +1,8 @@
 $NetBSD: distinfo,v 1.6 2013/03/06 16:58:57 jperkin Exp $

-SHA1 (jdk-7u15-linux-i586.tar.gz) = bf42fd0fd45d6bc3b644f2035410df0eaee32900
-RMD160 (jdk-7u15-linux-i586.tar.gz) = 94342179c7cc88e264743a803399da166637ebd9
-Size (jdk-7u15-linux-i586.tar.gz) = 97486991 bytes
-SHA1 (jdk-7u15-linux-x64.tar.gz) = 1dfa71bc04d3c1ef02aba4a21d6d3031d39c8346
-RMD160 (jdk-7u15-linux-x64.tar.gz) = 5c7532c6b3423f0659fcaae619b47cee9e20ae43
-Size (jdk-7u15-linux-x64.tar.gz) = 96131837 bytes
-SHA1 (jdk-7u15-solaris-i586.gz) = 11788476781accd918c9343344de12e774517bfe
-RMD160 (jdk-7u15-solaris-i586.gz) = 326e56f7067a451c0260f57619e8fdfd9a133c34
-Size (jdk-7u15-solaris-i586.gz) = 96403012 bytes
-SHA1 (jdk-7u15-solaris-x64.gz) = ba2b71f00ab4021213b171994f19f71f92eee7a9
-RMD160 (jdk-7u15-solaris-x64.gz) = a3db29cdd486d3add24f5eff9b1c53ce66a5dec3
-Size (jdk-7u15-solaris-x64.gz) = 15688278 bytes
+SHA1 (jdk-7u15-solaris-i586.tar.gz) = 11788476781accd918c9343344de12e774517bfe
+RMD160 (jdk-7u15-solaris-i586.tar.gz) = 326e56f7067a451c0260f57619e8fdfd9a133c3
+Size (jdk-7u15-solaris-i586.tar.gz) = 96403012 bytes
+SHA1 (jdk-7u15-solaris-x64.tar.gz) = ba2b71f00ab4021213b171994f19f71f92eee7a9
+RMD160 (jdk-7u15-solaris-x64.tar.gz) = a3db29cdd486d3add24f5eff9b1c53ce66a5dec3
+Size (jdk-7u15-solaris-x64.tar.gz) = 15688278 bytes
diff --git a/lang/sun-jre7/Makefile b/lang/sun-jre7/Makefile
index 6e377a2..9b6f4ee 100644
--- a/lang/sun-jre7/Makefile
+++ b/lang/sun-jre7/Makefile
@@ -8,7 +8,7 @@
 DISTNAME=      jre-7u15-${DIST_OS}-${DIST_ARCH}
 PKGNAME=       sun-jre7-7.0.15
 EXTRACT_OPTS=-f tar
-EXTRACT_SUFX=.gz
+EXTRACT_SUFX=.tar.gz
 MASTER_SITES=  # empty

 LICENSE=       oracle-binary-code-license
diff --git a/lang/sun-jre7/distinfo b/lang/sun-jre7/distinfo
index 17d3701..a4975e9 100644
--- a/lang/sun-jre7/distinfo
+++ b/lang/sun-jre7/distinfo
@@ -1,17 +1,8 @@
 $NetBSD: distinfo,v 1.8 2013/03/06 16:21:13 jperkin Exp $

-SHA1 (UnlimitedJCEPolicyJDK7.zip) = 7d3c9ee89536b82cd21c680088b1bced16017253
-RMD160 (UnlimitedJCEPolicyJDK7.zip) = a4a6a284579f43d2df3532d279e143d2f03c2c3f
-Size (UnlimitedJCEPolicyJDK7.zip) = 7426 bytes
-SHA1 (jre-7u15-linux-i586.tar.gz) = 9d2680eb7cb07524f1ac43d517d221caa5aa08da
-RMD160 (jre-7u15-linux-i586.tar.gz) = 0f588dc329d70bb1e5b9c95e208df8d85bf01569
-Size (jre-7u15-linux-i586.tar.gz) = 48129053 bytes
-SHA1 (jre-7u15-linux-x64.tar.gz) = cfd274e6a18c135f3f16955388127fb48ebecb37
-RMD160 (jre-7u15-linux-x64.tar.gz) = b453d346173c7583d948856e54c61a02fa6893fe
-Size (jre-7u15-linux-x64.tar.gz) = 46794487 bytes
-SHA1 (jre-7u15-solaris-i586.gz) = a99e1cd8c704961447aa99ef5f35323437aa1363
-RMD160 (jre-7u15-solaris-i586.gz) = b65b2e2898dd27707496ac4ad71c9efd6abd6909
-Size (jre-7u15-solaris-i586.gz) = 47614844 bytes
-SHA1 (jre-7u15-solaris-x64.gz) = c364fdfa72ad6433db9b551c54c1914afb47545d
-RMD160 (jre-7u15-solaris-x64.gz) = 83218ba2f4494e1b2522dccb9459833e62aa7e5b

dtrace: failed to compile script ../dix/Xserver.d: Preprocessor not found

I'd like to keep dtrace, but since gcc is now in /opt/pkg/gcc* and not in the standard solaris place the following happens by default during compile:

/usr/sbin/dtrace -G -C -o dtrace-dix.o -s ../dix/Xserver.d .libs/*.o
dtrace: failed to compile script ../dix/Xserver.d: Preprocessor not found
gmake[2]: *** [dtrace-dix.o] Error 1
gmake[2]: Leaving directory `/tmp/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.6.5/dix'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/tmp/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.6.5/dix'
gmake: *** [all-recursive] Error 1

manually, this can work with the xcpppath indicated as follows:

richard@devzone:/tmp/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.6.5/dix$ /usr/sbin/dtrace -G -C -xcpppath=/opt/pkg/gcc47/bin/cpp   -o dtrace-dix.o -s ../dix/Xserver.d .libs/*.o                                                               
<command-line>:0:0: warning: "__STDC__" redefined [-Wbuiltin-macro-redefined]

is there a way to globally fix dtrace to find the correct 'cpppath', perhaps in mk.conf?
A patch to the makefile to hardcode -xcpppath= seems doomed to failure, but perhaps a combination using CPPPATH?

here is the makefile bits:

richard@devzone:/tmp/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.6.5/dix$ grep -i dtrace Makefile*
Makefile:DTRACE = /usr/sbin/dtrace
Makefile:EXTRA_DIST = buildatoms BuiltInAtoms Xserver.d Xserver-dtrace.h.in
Makefile:# Generate dtrace header file for C sources to include
Makefile:BUILT_SOURCES = Xserver-dtrace.h
Makefile:Xserver-dtrace.h: $(srcdir)/Xserver.d
Makefile:       $(DTRACE) -C -h -o $@ -s $(srcdir)/Xserver.d \
Makefile:               || cp Xserver-dtrace.h.in $@
Makefile:# Generate dtrace object code for probes in libdix
Makefile:dtrace-dix.o: $(top_srcdir)/dix/Xserver.d $(am_libdix_la_OBJECTS)
Makefile:       $(DTRACE) -G -C -o $@ -s $(top_srcdir)/dix/Xserver.d .libs/*.o
Makefile:dix.O: dtrace-dix.o $(am_libdix_la_OBJECTS)
Makefile.am:EXTRA_DIST = buildatoms BuiltInAtoms Xserver.d Xserver-dtrace.h.in
Makefile.am:if XSERVER_DTRACE
Makefile.am:# Generate dtrace header file for C sources to include
Makefile.am:BUILT_SOURCES = Xserver-dtrace.h
Makefile.am:Xserver-dtrace.h: $(srcdir)/Xserver.d
Makefile.am:    $(DTRACE) -C -h -o $@ -s $(srcdir)/Xserver.d \
Makefile.am:            || cp Xserver-dtrace.h.in $@
Makefile.am:# Generate dtrace object code for probes in libdix
Makefile.am:dtrace-dix.o: $(top_srcdir)/dix/Xserver.d $(am_libdix_la_OBJECTS)
Makefile.am:    $(DTRACE) -G -C -o $@ -s $(top_srcdir)/dix/Xserver.d .libs/*.o
Makefile.am:dix.O: dtrace-dix.o $(am_libdix_la_OBJECTS)
Makefile.in:@XSERVER_DTRACE_TRUE@noinst_PROGRAMS = dix.O$(EXEEXT)
Makefile.in:DTRACE = @DTRACE@
Makefile.in:EXTRA_DIST = buildatoms BuiltInAtoms Xserver.d Xserver-dtrace.h.in
Makefile.in:# Generate dtrace header file for C sources to include
Makefile.in:@XSERVER_DTRACE_TRUE@BUILT_SOURCES = Xserver-dtrace.h
Makefile.in:@[email protected]$(EXEEXT): $(dix_O_OBJECTS) $(dix_O_DEPENDENCIES) 
Makefile.in:@XSERVER_DTRACE_FALSE@      @rm -f dix.O$(EXEEXT)
Makefile.in:@XSERVER_DTRACE_FALSE@      $(LINK) $(dix_O_OBJECTS) $(dix_O_LDADD) $(LIBS)
Makefile.in:@[email protected]: $(srcdir)/Xserver.d
Makefile.in:@XSERVER_DTRACE_TRUE@       $(DTRACE) -C -h -o $@ -s $(srcdir)/Xserver.d \
Makefile.in:@XSERVER_DTRACE_TRUE@               || cp Xserver-dtrace.h.in $@
Makefile.in:# Generate dtrace object code for probes in libdix
Makefile.in:@[email protected]: $(top_srcdir)/dix/Xserver.d $(am_libdix_la_OBJECTS)
Makefile.in:@XSERVER_DTRACE_TRUE@       $(DTRACE) -G -C -o $@ -s $(top_srcdir)/dix/Xserver.d .libs/*.o
Makefile.in:@[email protected]: dtrace-dix.o $(am_libdix_la_OBJECTS)
Makefile.in:@XSERVER_DTRACE_TRUE@       ld -r -o $@ .libs/*.o

sun-jre7/syujdk7CHECK_SHLIBS_SUPPORTED=

diff --git a/lang/sun-jdk7/Makefile b/lang/sun-jdk7/Makefile
index 6c70633..021dd1d 100644
--- a/lang/sun-jdk7/Makefile
+++ b/lang/sun-jdk7/Makefile
@@ -29,7 +29,7 @@ CHECK_SHLIBS_SUPPORTED=       no
 # XXX: The download page says .tar.gz but sends the file as .gz
 .if ${OPSYS} == "SunOS"
 EXTRACT_OPTS=  -f tar
-EXTRACT_SUFX=  .gz
+EXTRACT_SUFX=  .tar.gz
 .endif

 # The 64-bit Solaris downloads for some inexplicable reason only contain
diff --git a/lang/sun-jdk7/distinfo b/lang/sun-jdk7/distinfo
index d909026..7cd5f22 100644
--- a/lang/sun-jdk7/distinfo
+++ b/lang/sun-jdk7/distinfo
@@ -1,14 +1,8 @@
 $NetBSD: distinfo,v 1.6 2013/03/06 16:58:57 jperkin Exp $

-SHA1 (jdk-7u15-linux-i586.tar.gz) = bf42fd0fd45d6bc3b644f2035410df0eaee32900
-RMD160 (jdk-7u15-linux-i586.tar.gz) = 94342179c7cc88e264743a803399da166637ebd9
-Size (jdk-7u15-linux-i586.tar.gz) = 97486991 bytes
-SHA1 (jdk-7u15-linux-x64.tar.gz) = 1dfa71bc04d3c1ef02aba4a21d6d3031d39c8346
-RMD160 (jdk-7u15-linux-x64.tar.gz) = 5c7532c6b3423f0659fcaae619b47cee9e20ae43
-Size (jdk-7u15-linux-x64.tar.gz) = 96131837 bytes
-SHA1 (jdk-7u15-solaris-i586.gz) = 11788476781accd918c9343344de12e774517bfe
-RMD160 (jdk-7u15-solaris-i586.gz) = 326e56f7067a451c0260f57619e8fdfd9a133c34
-Size (jdk-7u15-solaris-i586.gz) = 96403012 bytes
-SHA1 (jdk-7u15-solaris-x64.gz) = ba2b71f00ab4021213b171994f19f71f92eee7a9
-RMD160 (jdk-7u15-solaris-x64.gz) = a3db29cdd486d3add24f5eff9b1c53ce66a5dec3
-Size (jdk-7u15-solaris-x64.gz) = 15688278 bytes
+SHA1 (jdk-7u15-solaris-i586.tar.gz) = 11788476781accd918c9343344de12e774517bfe
+RMD160 (jdk-7u15-solaris-i586.tar.gz) = 326e56f7067a451c0260f57619e8fdfd9a133c3
+Size (jdk-7u15-solaris-i586.tar.gz) = 96403012 bytes
+SHA1 (jdk-7u15-solaris-x64.tar.gz) = ba2b71f00ab4021213b171994f19f71f92eee7a9
+RMD160 (jdk-7u15-solaris-x64.tar.gz) = a3db29cdd486d3add24f5eff9b1c53ce66a5dec3
+Size (jdk-7u15-solaris-x64.tar.gz) = 15688278 bytes
diff --git a/lang/sun-jre7/Makefile b/lang/sun-jre7/Makefile
index 6e377a2..9b6f4ee 100644
--- a/lang/sun-jre7/Makefile
+++ b/lang/sun-jre7/Makefile
@@ -8,7 +8,7 @@
 DISTNAME=      jre-7u15-${DIST_OS}-${DIST_ARCH}
 PKGNAME=       sun-jre7-7.0.15
 EXTRACT_OPTS=-f tar
-EXTRACT_SUFX=.gz
+EXTRACT_SUFX=.tar.gz
 MASTER_SITES=  # empty

 LICENSE=       oracle-binary-code-license
diff --git a/lang/sun-jre7/distinfo b/lang/sun-jre7/distinfo
index 17d3701..a4975e9 100644
--- a/lang/sun-jre7/distinfo
+++ b/lang/sun-jre7/distinfo
@@ -1,17 +1,8 @@
 $NetBSD: distinfo,v 1.8 2013/03/06 16:21:13 jperkin Exp $

-SHA1 (UnlimitedJCEPolicyJDK7.zip) = 7d3c9ee89536b82cd21c680088b1bced16017253
-RMD160 (UnlimitedJCEPolicyJDK7.zip) = a4a6a284579f43d2df3532d279e143d2f03c2c3f
-Size (UnlimitedJCEPolicyJDK7.zip) = 7426 bytes
-SHA1 (jre-7u15-linux-i586.tar.gz) = 9d2680eb7cb07524f1ac43d517d221caa5aa08da
-RMD160 (jre-7u15-linux-i586.tar.gz) = 0f588dc329d70bb1e5b9c95e208df8d85bf01569
-Size (jre-7u15-linux-i586.tar.gz) = 48129053 bytes
-SHA1 (jre-7u15-linux-x64.tar.gz) = cfd274e6a18c135f3f16955388127fb48ebecb37
-RMD160 (jre-7u15-linux-x64.tar.gz) = b453d346173c7583d948856e54c61a02fa6893fe
-Size (jre-7u15-linux-x64.tar.gz) = 46794487 bytes
-SHA1 (jre-7u15-solaris-i586.gz) = a99e1cd8c704961447aa99ef5f35323437aa1363
-RMD160 (jre-7u15-solaris-i586.gz) = b65b2e2898dd27707496ac4ad71c9efd6abd6909
-Size (jre-7u15-solaris-i586.gz) = 47614844 bytes
-SHA1 (jre-7u15-solaris-x64.gz) = c364fdfa72ad6433db9b551c54c1914afb47545d
-RMD160 (jre-7u15-solaris-x64.gz) = 83218ba2f4494e1b2522dccb9459833e62aa7e5b

lighttpd fails to start

  1. create a base64 smartmachine
  2. pkgin in lighttpd
  3. edit /opt/local/etc/lighttpd/* trivially (e.g., set the server root to something that exists
  4. svcadm enable lighttpd

the lighttpd service goes into maintenance mode. Checking the svc log:

2013-04-14 20:03:28: (plugin.c.209) ld.so.1: lighttpd: fatal: libmapmalloc.so.1: No such file or directory

LD_PRELOADing libmtalloc.so lets lighttpd start.

sngl can't install ruby193-base package

[root@2adfc7b0-1eb0-4d8d-aeeb-5a2fc034f1c1 ~]# pkgin install ruby193-base
calculating dependencies... done.

nothing to upgrade.
2 packages to be installed: libyaml-0.1.4 ruby193-base-1.9.3p385 (6672K to download, 20M to install)

proceed ? [Y/n] Y
downloading packages...
ruby193-base-1.9.3p385 is not available on the repository
proceed ? [y/N]

pkgin happily exits with status 0 when asked to install nonexistent package

Similar to #50, pkgin also exits with 0 status when asked to install a nonexistent package.

pkgin in no-such-pkg

no-such-pkg is not available on the repository
calculating dependencies... done.
nothing to do.
root at ba48f39e in ~/git/smartos-live/projects/illumos-extra/perl/perl-5.12.3-32strap on master

echo $?

0

This needs to exist with nonzero status since it failed to do what was requested. Indeed, if any listed package fails to install for any reason, a nonzero exit status is warranted.

meta-pkgs/boost and devel/boost-libs

Initially in building boost I got the following install error for boost-libs that it couldn't find libboost-locale.a.

I noticed Jonathan's patch:

$ cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/boost-libs/PLIST
Index: pkgsrc/devel/boost-libs/PLIST
diff -u pkgsrc/devel/boost-libs/PLIST:1.15 pkgsrc/devel/boost-libs/PLIST:1.16
--- pkgsrc/devel/boost-libs/PLIST:1.15  Mon Aug 27 08:49:09 2012
+++ pkgsrc/devel/boost-libs/PLIST       Thu Sep 20 12:23:21 2012
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.15 2012/08/27 08:49:09 adam Exp $
+@comment $NetBSD: PLIST,v 1.16 2012/09/20 12:23:21 jperkin Exp $
 lib/libboost_chrono.a
 lib/libboost_chrono.so
 lib/libboost_chrono.so.${BOOST_VERSION}
@@ -18,9 +18,6 @@
 lib/libboost_iostreams.a
 lib/libboost_iostreams.so
 lib/libboost_iostreams.so.${BOOST_VERSION}
-lib/libboost_locale.a
-lib/libboost_locale.so
-lib/libboost_locale.so.${BOOST_VERSION}
 lib/libboost_math_c99.a
 lib/libboost_math_c99.so
 lib/libboost_math_c99.so.${BOOST_VERSION}

but I happened to notice earlier in my logs the following:

**************************************
Ignoring patch file /home/richard/src/pkgsrc/devel/boost-libs/../../meta-pkgs/boost/patches/patch-boost_functional_hash_hash.hpp: no checksum found
**************************************
===> Creating toolchain wrappers for boost-libs-1.52.0
===> Configuring for boost-libs-1.52.0
=> Fixing prefix.
=> Fixing install_name for Darwin.
cd /tmp/pkgsrc/devel/boost-libs/work/boost_1_52_0 && /usr/bin/find . -type f -print | /usr/bin/xargs /usr/bin/touch
/bin/cp -f  /opt/pkg/include/boost/config/user.hpp  /tmp/pkgsrc/devel/boost-libs/work/boost_1_52_0/boost/config/user.hpp
===> Building for boost-libs-1.52.0
ulimit -s `/usr/bin/env LC_MESSAGES=C ulimit -H -s`; ulimit -d `/usr/bin/env LC_MESSAGES=C ulimit -H -d`;                                                        cd /tmp/pkgsrc/devel/boost-libs/work/boost_1_52_0 && /usr/bin/env USETOOLS=no PTHREAD_CFLAGS=\ -D_REENTRANT PTHREAD_LDFLAGS= PTHREAD_LIBS=-lpthread\ -lrt PTHREADBASE=/usr DL_CFLAGS= DL_LDFLAGS= DL_LIBS= CC=gcc CFLAGS=-O\ -I/opt/pkg/include\ -I/usr/include CPPFLAGS=-I/opt/pkg/include\ -I/usr/include CXX=g++ CXXFLAGS=-O\ -I/opt/pkg/include\ -I/usr/include COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2\ -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2\ -L/opt/pkg/gcc47/lib\ -Wl,-R/opt/pkg/gcc47/lib\ -L/opt/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib\ -Wl,-R/opt/pkg/lib LINKER_RPATH_FLAG=-R PATH=/tmp/pkgsrc/devel/boost-libs/work/.wrapper/bin:/tmp/pkgsrc/devel/boost-libs/work/.buildlink/bin:/tmp/pkgsrc/devel/boost-libs/work/.tools/bin:/tmp/pkgsrc/devel/boost-libs/work/.gcc/bin:/opt/pkg/bin:/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gnu/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin:/opt/pkg/bin:/opt/pkg/bin PREFIX=/opt/pkg PKG_SYSCONFDIR=/etc/opt/pkg HOME=/tmp/pkgsrc/devel/boost-libs/work/.home CPP=cpp LINK_ALL_LIBGCC_HACK= LOCALBASE=/opt/pkg NO_WHOLE_ARCHIVE_FLAG=-z\ defaultextract WHOLE_ARCHIVE_FLAG=-z\ allextract X11BASE=/opt/pkg X11PREFIX=/opt/pkg PKGMANDIR=man PKGINFODIR=info MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/opt/pkg/bin/install-sh\ -c\ -s\ -o\ richard\ -g\ staff\ -m\ 755 BSD_INSTALL_SCRIPT=/opt/pkg/bin/install-sh\ -c\ -o\ richard\ -g\ staff\ -m\ 755 BSD_INSTALL_LIB=/opt/pkg/bin/install-sh\ -c\ -o\ richard\ -g\ staff\ -m\ 755 BSD_INSTALL_DATA=/opt/pkg/bin/install-sh\ -c\ -o\ richard\ -g\ staff\ -m\ 644 BSD_INSTALL_MAN=/opt/pkg/bin/install-sh\ -c\ -o\ richard\ -g\ staff\ -m\ 644 BSD_INSTALL=/opt/pkg/bin/install-sh BSD_INSTALL_PROGRAM_DIR=/opt/pkg/bin/install-sh\ -d\ -o\ richard\ -g\ staff\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/opt/pkg/bin/install-sh\ -d\ -o\ richard\ -g\ staff\ -m\ 755 BSD_INSTALL_LIB_DIR=/opt/pkg/bin/install-sh\ -d\ -o\ richard\ -g\ staff\ -m\ 755 BSD_INSTALL_DATA_DIR=/opt/pkg/bin/install-sh\ -d\ -o\ richard\ -g\ staff\ -m\ 755 BSD_INSTALL_MAN_DIR=/opt/pkg/bin/install-sh\ -d\ -o\ richard\ -g\ staff\ -m\ 755 BSD_INSTALL_GAME=/opt/pkg/bin/install-sh\ -c\ -s\ -o\ richard\ -g\ staff\ -m\ 2555 BSD_INSTALL_GAME_DATA=/opt/pkg/bin/install-sh\ -c\ -o\ richard\ -g\ staff\ -m\ 664 BSD_INSTALL_GAME_DIR=/opt/pkg/bin/install-sh\ -d\ -o\ richard\ -g\ staff\ -m\ 775 INSTALL_INFO= MAKEINFO=/tmp/pkgsrc/devel/boost-libs/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG= PKG_CONFIG_LIBDIR=/tmp/pkgsrc/devel/boost-libs/work/.buildlink/lib/pkgconfig:/tmp/pkgsrc/devel/boost-libs/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/tmp/pkgsrc/devel/boost-libs/work/.pkg-config.log PKG_CONFIG_PATH= WRAPPER_DEBUG=no WRAPPER_UPDATE_CACHE=yes VIEWBASE=/opt/pkg /opt/pkg/bin/bjam --without-python --builddir=/tmp/pkgsrc/devel/boost-libs/work/boost_1_52_0/build --layout=system --toolset=gcc --disable-long-double release threading=multi link=shared,static cxxflags=-std=c++0x --prefix=/opt/pkg stage
Performing configuration checks

    - 32-bit                   : no
    - 64-bit                   : yes
    - x86                      : yes
    - has_icu builds           : no
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
    - icu                      : no
    - icu (lib64)              : no
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
    - gcc visibility           : yes
    - long double support      : yes
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.

Component configuration:

    - chrono                   : building
    - context                  : building
    - date_time                : building
    - exception                : building
    - filesystem               : building
    - graph                    : building
    - graph_parallel           : building
    - iostreams                : building
    - locale                   : building
    - math                     : building
    - mpi                      : building
    - program_options          : building
    - python                   : not building
    - random                   : building
    - regex                    : building
    - serialization            : building
    - signals                  : building
    - system                   : building
    - test                     : building
    - thread                   : building
    - timer                    : building
    - wave                     : building

So I built and installed textproc/icu, and added icu (and expat) to PKG_DEFAULT_OPTIONS
which, indeed, allowed for a successful build and install of boost.

So I wonder if this patch is correct.

On the other hand, there is also a message (first part of log above) concerning patch-boost_functional_hash_hash.hpp...
Thought at first it was an oversight so I did a bmake mps before trying a clean build, but I got the following:

=> Applying pkgsrc patches for boost-build-1.52.0
Ignoring previously applied (or reversed) patch.
3 out of 3 hunks ignored--saving rejects to boost/functional/hash/hash.hpp.rej
Patch /home/richard/src/pkgsrc/devel/boost-build/../../meta-pkgs/boost/patches/patch-boost_functional_hash_hash.hpp failed
ERROR: Patching failed due to modified or broken patch file(s):
ERROR:  /home/richard/src/pkgsrc/devel/boost-build/../../meta-pkgs/boost/patches/patch-boost_functional_hash_hash.hpp
*** Error code 1

so I removed the file, restored distinfo and was able to build and install without incident.

It appears that this file was not deleted (yet).

pkgin fails when /var is >2TB

[root@e62cee83-cfcd-429c-9c56-4c33b367deb3 ~]# pkgin in scmgit
calculating dependencies... done.
pkgin: Can't statvfs() `/var/db/pkgin/cache': Value too large for defined data type

We're calling statvfs(), which is not the largefile interface. This works fine with a quota on the dataset.

This from base 1.8.4.

patch for libgcrypt fixing libgcrypt-config --libs and --cflags

The following patch fixes a particularly naughty bug in libgcrypto found when debugging libxslt build problems where the installed libgcrypto-config script gave blank --cflags and --libs due to double-quotes being used instead of single quotes for an fgrep command, as documented in the manpage.
Here is the diff and following is the correctly performing libgcrypto-config and an extract from the fgrep manpage.

diff --git a/security/libgcrypt/distinfo b/security/libgcrypt/distinfo
index 4662e5b..7727ad1 100644
--- a/security/libgcrypt/distinfo
+++ b/security/libgcrypt/distinfo
@@ -1,12 +1,9 @@
 $NetBSD: distinfo,v 1.35 2011/11/29 01:33:37 cheusov Exp $

-SHA1 (libgcrypt-1.5.0/gcrypt.tar.bz2) = 5d402e4e4e6831f74b738f1a022cf024bcb24ecd
-RMD160 (libgcrypt-1.5.0/gcrypt.tar.bz2) = d1032e66bd4b6f51e437993a7178d14b09a2955a
-Size (libgcrypt-1.5.0/gcrypt.tar.bz2) = 4231 bytes
 SHA1 (libgcrypt-1.5.0/libgcrypt-1.5.0.tar.bz2) = 3e776d44375dc1a710560b98ae8437d5da6e32cf
 RMD160 (libgcrypt-1.5.0/libgcrypt-1.5.0.tar.bz2) = f01e8198dcc379ff2fa5e8d3ac39e7b32fc41dad
 Size (libgcrypt-1.5.0/libgcrypt-1.5.0.tar.bz2) = 1433506 bytes
-SHA1 (patch-aa) = 7c46612f912d45dfd4ce4f4b510e72c00bd38585
+SHA1 (patch-aa) = d9ad869145ed754dae4856a1224b33556ac58c70
 SHA1 (patch-ab) = 6fac21daa26b7de3b13839d076f78a74400efce7
 SHA1 (patch-ac) = c59d7bb73fa0e79522b287054633e276ffbb069d
 SHA1 (patch-ad) = 19345b7d164521d526a44eb3f1a465ff09d8266c
diff --git a/security/libgcrypt/patches/patch-aa b/security/libgcrypt/patches/patch-aa
index fbcd89e..bbb92ad 100644
--- a/security/libgcrypt/patches/patch-aa
+++ b/security/libgcrypt/patches/patch-aa
@@ -1,7 +1,16 @@
 $NetBSD: patch-aa,v 1.7 2011/07/13 21:21:52 adam Exp $

---- src/libgcrypt-config.in.orig       2008-08-19 17:20:04.000000000 +0200
+--- src/libgcrypt-config.in.orig       2011-02-23 15:20:43.000000000 +0000
 +++ src/libgcrypt-config.in
+@@ -142,7 +142,7 @@ if test "$echo_cflags" = "yes"; then
+ 
+     tmp=""
+     for i in $includes $cflags_final; do
+-       if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then
++       if echo "$tmp" | fgrep -v -- '$i' >/dev/null; then
+            tmp="$tmp $i"
+        fi
+     done
 @@ -155,7 +155,7 @@ if test "$echo_libs" = "yes"; then

      # Set up `libdirs'.
@@ -11,3 +20,12 @@ $NetBSD: patch-aa,v 1.7 2011/07/13 21:21:52 adam Exp $
      fi

      # Set up `libs_final'.
+@@ -163,7 +163,7 @@ if test "$echo_libs" = "yes"; then
+ 
+     tmp=""
+     for i in $libdirs $libs_final; do
+-       if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then
++       if echo "$tmp" | fgrep -v -- '$i' >/dev/null; then
+            tmp="$tmp $i"
+        fi
+     done

here is the output:

richard@devzone:~/src/pkgsrc/security/libgcrypt$ libgcrypt-config --libs
-L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lgcrypt -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -lgpg-error
richard@devzone:~/src/pkgsrc/security/libgcrypt$ libgcrypt-config --cflags
-I/opt/pkg/include -I/opt/pkg/include

here is an extract from man fgrep

     The fgrep (fast grep) utility searches files for a character
     string  ...

     The characters $, *, [, ^, |, (, ), and  \  are  interpreted
     literally  by  fgrep, that is, fgrep does not recognize full
     regular expressions as does  egrep.  These  characters  have
     special meaning to the shell. Therefore, to be safe, enclose
     the entire string within single quotes (a').

ghostscript busted :ld.so.1: gsc: fatal: libexpat.so.1: open failed: No such file or directory

tried your bootstrap-2012Q4-illumos.tar.gz in a minimal NG zone.
after pkgin install gcc47, cups and ghostscript...

richard@devzoneX:~$ pkgin ls
binutils-2.22nb1     GNU binary utilities
bmake-20110606       Portable (autoconf) version of NetBSD 'make' utility
bootstrap-mk-files-20120415 *.mk files for the bootstrap bmake utility
bzip2-1.0.6          Block-sorting file compressor
cups-1.5.4nb1        Common UNIX Printing System
db4-4.8.30           Berkeley DB version 4 from Oracle
dbus-1.6.8           Message bus system
fontconfig-2.10.2    Library for configuring and customizing font access
freetype2-2.4.10     Font rendering engine and library API
gcc47-4.7.2          The GNU Compiler Collection (GCC) - 4.7 Release Series
gcc47-libs-4.7.2nb1  The GNU Compiler Collection (GCC) support shared libraries.
gettext-lib-0.18.1.1nb1 Internationalized Message Handling Library (libintl)
ghostscript-9.05     Postscript interpreter
ghostscript-fonts-8.11nb3 Postscript fonts for Aladdin Ghostscript
heimdal-1.5.2nb5     Kerberos 5 implementation
install-sh-20100824  install script compatible with the BSD install program
jpeg-8d              IJG's jpeg compression utilities
lcms2-2.4            Little Color Management System -- a color management library
libICE-1.0.8         Inter Client Exchange (ICE) library for X
libSM-1.2.1          X Session Management Library
libX11-1.5.0nb1      Base X libraries from modular Xorg X11
libXau-1.0.7         Authorization Protocol for X from X.org
libXdmcp-1.1.1       X Display Manager Control Protocol library from X.org
libXext-1.3.1        X Extension library
libXt-1.1.3          X Toolkit Intrinsics library
libarchive-2.8.4nb1  Library to read/create different archive formats
libgetopt-1.4.4      Library for handling --long options
libiconv-1.14nb2     Character set conversion library
libpaper-1.1.24      Paper size handling library
libxcb-1.9           X protocol C-language Binding
mDNSResponder-258.14 Apple's mDNS responder
nawk-20050424nb3     Brian Kernighan's pattern-directed scanning and processing language
nbsed-20120308       NetBSD-current's sed(1)
ncurses-5.9          CRT screen handling and optimization package
openssl-0.9.8xnb1    Secure Socket Layer and cryptographic library
perl-5.16.2nb1       Practical Extraction and Report Language
pkg_install-20120221 Package management and administration tools for pkgsrc
pkg_install-info-4.5nb3 Standalone GNU info file installation utility
pkgin-0.6.3.1        Apt / yum like tool for managing pkgsrc binary packages
png-1.5.13           Library for manipulating PNG images
poppler-0.20.5       PDF rendering library
poppler-utils-0.20.5 PDF utilities (from poppler)
readline-6.2         GNU library that can recall and edit previous input
sqlite3-3.7.15       SQL Database Engine in a C Library
tiff-4.0.3nb1        Library and tools for reading and writing TIFF data files
xz-5.0.4             XZ utilities
zlib-1.2.7           General purpose data compression library
richard@devzoneX:~$ pfexec pkg_admin check
...............................................
Checked 21267 files from 47 packages.
Done.
richard@devzoneX:~$ ldd /opt/pkg/bin/gs
    libgs.so.9 =>    /opt/pkg/lib/libgs.so.9
    libc.so.1 =>     /lib/64/libc.so.1
    libXt.so.6 =>    /opt/pkg/lib/libXt.so.6
    libSM.so.6 =>    /opt/pkg/lib/libSM.so.6
    libICE.so.6 =>   /opt/pkg/lib/libICE.so.6
    libXext.so.0 =>  /opt/pkg/lib/libXext.so.0
    libX11.so.6 =>   /opt/pkg/lib/libX11.so.6
    libsocket.so.1 =>    /lib/64/libsocket.so.1
    libnsl.so.1 =>   /lib/64/libnsl.so.1
    libpng15.so.15 =>    /opt/pkg/lib/libpng15.so.15
    libdl.so.1 =>    /lib/64/libdl.so.1
    libm.so.2 =>     /lib/64/libm.so.2
    libpaper.so.1 =>     /opt/pkg/lib/libpaper.so.1
    libfontconfig.so.1 =>    /opt/pkg/lib/libfontconfig.so.1
    libfreetype.so.6 =>  /opt/pkg/lib/libfreetype.so.6
    libpthread.so.1 =>   /lib/64/libpthread.so.1
    libgcc_s.so.1 =>     /opt/pkg/gcc47/lib/amd64/libgcc_s.so.1
    libxcb.so.1 =>   /opt/pkg/lib/libxcb.so.1
    libXau.so.6 =>   /opt/pkg/lib/libXau.so.6
    libXdmcp.so.6 =>     /opt/pkg/lib/libXdmcp.so.6
    libmp.so.2 =>    /lib/64/libmp.so.2
    libmd.so.1 =>    /lib/64/libmd.so.1
    libz.so.1 =>     /opt/pkg/lib/libz.so.1
    libbz2.so.0 =>   /opt/pkg/lib/libbz2.so.0
    libexpat.so.1 =>     (file not found)

It appears to expect a builtin libexpat.so.1, probably due to an overly generous build environment.

BTW, how did you get ghostscript to build, without cups? Cups trunk still has the libssp problem e.g.

richard@devzoneX:~$ ldd -d /opt/pkg/lib/libcupsimage.so
    libtiff.so.5 =>  /opt/pkg/lib/libtiff.so.5
    liblzma.so.5 =>  /opt/pkg/lib/liblzma.so.5
    librt.so.1 =>    /lib/64/librt.so.1
    libpng15.so.15 =>    /opt/pkg/lib/libpng15.so.15
    libjpeg.so.8 =>  /opt/pkg/lib/libjpeg.so.8
    libcups.so.2 =>  /opt/pkg/lib/libcups.so.2
    libpthread.so.1 =>   /lib/64/libpthread.so.1
    libm.so.2 =>     /lib/64/libm.so.2
    libiconv.so.2 =>     /opt/pkg/lib/libiconv.so.2
    libgssapi.so.3 =>    /opt/pkg/lib/libgssapi.so.3
    libheimntlm.so.0 =>  /opt/pkg/lib/libheimntlm.so.0
    libkrb5.so.26 =>     /opt/pkg/lib/libkrb5.so.26
    libsqlite3.so.0 =>   /opt/pkg/lib/libsqlite3.so.0
    libdl.so.1 =>    /lib/64/libdl.so.1
    libhx509.so.5 =>     /opt/pkg/lib/libhx509.so.5
    libasn1.so.8 =>  /opt/pkg/lib/libasn1.so.8
    libwind.so.0 =>  /opt/pkg/lib/libwind.so.0
    libcom_err.so.1 =>   /opt/pkg/lib/libcom_err.so.1
    libheimbase.so.1 =>  /opt/pkg/lib/libheimbase.so.1
    libroken.so.18 =>    /opt/pkg/lib/libroken.so.18
    libresolv.so.2 =>    /lib/64/libresolv.so.2
    libnsl.so.1 =>   /lib/64/libnsl.so.1
    libsocket.so.1 =>    /lib/64/libsocket.so.1
    libssl.so.0.9.8 =>   /opt/pkg/lib/libssl.so.0.9.8
    libcrypto.so.0.9.8 =>    /opt/pkg/lib/libcrypto.so.0.9.8
    libdns_sd.so =>  /opt/pkg/lib/libdns_sd.so
    libz.so.1 =>     /opt/pkg/lib/libz.so.1
    libgcc_s.so.1 =>     /opt/pkg/gcc47/lib/amd64/libgcc_s.so.1
    libc.so.1 =>     /lib/64/libc.so.1
    libmd.so.1 =>    /lib/64/libmd.so.1
    libmp.so.2 =>    /lib/64/libmp.so.2
    libgcc_s.so.1 =>     /opt/pbulk/gcc47/lib/amd64/libgcc_s.so.1
    symbol not found: __stack_chk_guard     (/opt/pkg/lib/libcupsimage.so)
    symbol not found: __stack_chk_guard     (/opt/pkg/lib/libcups.so.2)

TOOLS_PLATFORM.sh = /usr/bin/bash is not ksh93, so problems with '/usr/bin/head'

came across a problem that is exacerbated with the shell being now by default /usr/bin/bash.
Namely, 'head' is a ksh93 builtin that accepts '-c chars' whereas bash doesn't have this builtin and uses /usr/bin/head which doesn't. gnu-coreutils in illumos and coreutils in pkgsrc provide 'head' :-=) accepting the '-c char' syntax.

richard@devzone:~$ ksh 'head -c'
head: -c: numeric chars argument expected
Usage: head [-qv] [-n lines] [-c chars] [-s skip] [ file ... ]
richard@devzone:~$ /usr/bin/head -c
/usr/bin/head: illegal option -- c
usage: head [-n #] [-#] [filename...]
richard@devzone:~$ /opt/pkg/gnu/bin/head -c
/opt/pkg/gnu/bin/headย : l'option requiert un argument -- ยซย cย ยป
Saisissez ยซย /opt/pkg/gnu/bin/head --helpย ยป pour plus d'informations.

in the following example from x11/gnome-themes, the single existing patch does the following:

$NetBSD: patch-aa,v 1.5 2009/05/19 23:54:49 wiz Exp $

http://bugzilla.gnome.org/show_bug.cgi?id=583283

--- common/mkiconlinks.sh.orig  2008-09-22 15:09:10.000000000 +0000
+++ common/mkiconlinks.sh
@@ -16,7 +16,7 @@ read NEXTLINE 
 while [ ! -z "$NEXTLINE" ] ; do

    # Skip lines beginning with '#'
-   if [ ! "${NEXTLINE:0:1}" == '#' ]; then
+   if [ ! X"`echo ${NEXTLINE} | head -c 1`" = X'#' ]; then
        #Extract first field, minus its trailing colon
        ORIG_FILE=`echo $NEXTLINE | awk '/:/{print $1}' | sed -e 's/://'`

oddly enough, the reference to the bugzilla report is named:
Bug 583283 - Shell portability in common/mkiconlinks.sh
and this patch is, unfortunately, not portable to solaris with /usr/bin/bash shell.

To be ultimately portable, perhaps this patch should be
if [ ! X"echo ${NEXTLINE} | cut -c 1" = X'#' ]; then

but perhaps this is overkill. Is there an appropriate way to substitute head via PKG_TOOLS.head=/opt/pkg/gnu/bin/head ?

Thanks in advance for advice.

[updated to presume there is only one line of text in NEXTLINE, therefore only changing head to cut should be necessary]

sysutils/monit: illegal pax option

In Makefile of sysutils/monit there is a command pax with illegal option -z.

 post-extract:
-       cd ${WRKSRC}/contrib && pax -zrf monit-OSX-startup.tar.gz
+       cd ${WRKSRC}/contrib && tar -zxf monit-OSX-startup.tar.gz

gcc47 and gcc-go: #error "large files are not supported by libelf"

after posting my proposed set of patches for upgrading gcc47 to 4.7.2, I realised that I hadn't tested the non-default gcc-go (I did test gcc-java which failed with the link editor problem and reported in a previous issue).

on ABI=64 at least, the build fails with :

/bin/bash ./libtool  --tag=CC   --mode=compile /tmp/pkgsrc/lang/gcc47/work/build/./gcc/xgcc -B/tmp/pkgsrc/lang/gcc47/work/build/./gcc/ -B/opt/pkg/gcc47/x86_64-sun-solaris2.11/bin/ -B/opt/pkg/gcc47/x86_64-sun-solaris2.11/lib/ -isystem /opt/pkg/gcc47/x86_64-sun-solaris2.11/include -isystem /opt/pkg/gcc47/x86_64-sun-solaris2.11/sys-include  -m32 -DHAVE_CONFIG_H -I. -I../../../../gcc-4.7.2/libgo  -fno-inline-functions -I ../../../../gcc-4.7.2/libgo/runtime -I../../../../gcc-4.7.2/libgo/../libffi/include -I../libffi/include -pthread  -fexceptions -fplan9-extensions  -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -minline-all-stringops -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ -I ../../../../gcc-4.7.2/libgo/../libgcc -I ../../../gcc/include -g -O -I/opt/pkg/include -I/opt/pkg/include/gettext -I/usr/include  -m32 -MT proc.lo -MD -MP -MF .deps/proc.Tpo -c -o proc.lo `test -f 'runtime/proc.c' || echo '../../../../gcc-4.7.2/libgo/'`runtime/proc.c
libtool: compile:  /tmp/pkgsrc/lang/gcc47/work/build/./gcc/xgcc -B/tmp/pkgsrc/lang/gcc47/work/build/./gcc/ -B/opt/pkg/gcc47/x86_64-sun-solaris2.11/bin/ -B/opt/pkg/gcc47/x86_64-sun-solaris2.11/lib/ -isystem /opt/pkg/gcc47/x86_64-sun-solaris2.11/include -isystem /opt/pkg/gcc47/x86_64-sun-solaris2.11/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.7.2/libgfortran -iquote../../../gcc-4.7.2/libgfortran/io -I../../../gcc-4.7.2/libgfortran/../gcc -I../../../gcc-4.7.2/libgfortran/../gcc/config -I../../../gcc-4.7.2/libgfortran/../libquadmath -I../.././gcc -I../../../gcc-4.7.2/libgfortran/../libgcc -I../libgcc -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -g -O -I/opt/pkg/include -I/opt/pkg/include/gettext -I/usr/include -MT maxloc0_4_r16.lo -MD -MP -MF .deps/maxloc0_4_r16.Tpo -c ../../../gcc-4.7.2/libgfortran/generated/maxloc0_4_r16.c  -fPIC -DPIC -o .libs/maxloc0_4_r16.o
libtool: compile:  /tmp/pkgsrc/lang/gcc47/work/build/./gcc/xgcc -B/tmp/pkgsrc/lang/gcc47/work/build/./gcc/ -B/opt/pkg/gcc47/x86_64-sun-solaris2.11/bin/ -B/opt/pkg/gcc47/x86_64-sun-solaris2.11/lib/ -isystem /opt/pkg/gcc47/x86_64-sun-solaris2.11/include -isystem /opt/pkg/gcc47/x86_64-sun-solaris2.11/sys-include -m32 -DHAVE_CONFIG_H -I. -I../../../../gcc-4.7.2/libgo -fno-inline-functions -I ../../../../gcc-4.7.2/libgo/runtime -I../../../../gcc-4.7.2/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -minline-all-stringops -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ -I ../../../../gcc-4.7.2/libgo/../libgcc -I ../../../gcc/include -g -O -I/opt/pkg/include -I/opt/pkg/include/gettext -I/usr/include -m32 -MT proc.lo -MD -MP -MF .deps/proc.Tpo -c ../../../../gcc-4.7.2/libgo/runtime/proc.c  -fPIC -DPIC -o .libs/proc.o
In file included from /usr/include/link.h:31:0,
                 from ../../../../gcc-4.7.2/libgo/runtime/proc.c:13:
/usr/include/libelf.h:42:2: error: #error "large files are not supported by libelf"

notice the -m32 which I believe indicates that this is due to --enable-multilib=yes by default.

Sort of stunned, I came across a number of similar reports, namely already in gcc, but also with RUBY and some illumos problem reports, including the illumos fix
https://www.illumos.org/issues/3263

In the meanwhile, I created a hacks.mk containing:

.if !defined(GCC47_HACKS_MK)
GCC47_HACKS_MK= defined

.include "../../mk/bsd.prefs.mk"

###
### workaround until https://www.illumos.org/issues/3263
###
.if ${OPSYS} == "SunOS"
MAKE_ENV+=              ac_cv_func_dl_iterate_phdr=no
.endif

.endif  # GCC47_HACKS_MK

this workaround seems to build and install ok.
I have not tested on ABI=32 (no bootstrap yet)...

how to instrument this in waiting for, and taking into consideration Rich Lowe's work?

perhaps --disable-multilib would be a bit less hacky, at least until Joyent's multiarch?

PKG_FAIL_REASON: requires a working dlopen()

Quite happy with the progress using pkgsrc illumos in zones... single X apps seem ok with ssh -X and even
tried some window managers like evilwm in conjonction with a Xephyr display... quite cool actually.
But now I"d like to try working on building some packages from joyent/pkgsrc...

While I can seem to build ok in the global zone, in the local zone, with my home directory lofs in, can't seem to advance at all. To pick an example, archivers/star, in which a simple bmake and consequently sudo bmake install, all is well.

In my zone I get the following:

richard@devzone:~/src/pkgsrc$ cd archivers/star/
richard@devzone:~/src/pkgsrc/archivers/star$ ls
DESCR     distinfo  Makefile  patches   PLIST
richard@devzone:~/src/pkgsrc/archivers/star$ bmake
WARNING: [license.mk] Every package should define a LICENSE.
ERROR: This package has set PKG_FAIL_REASON:
ERROR: star-1.4.3nb4 requires a working dlopen().
*** Error code 255

Stop.
bmake: stopped in /home/richard/src/pkgsrc/archivers/star

Before going into more detail, is there any hints as to whether there is a minimal set of illumos packages that need to be installed, I've compared the pkgsrc packages with pkgin ls output and there isn't any substantial difference..

Thanks in advance

expat missing /lib/64 libs

running in an oi_151a7 minimal zone, certain packages reclaim libexpat.so, but it seems to be missing some pieces parts...

root@devzone:~# pkgin in expat
calculating dependencies... done.
/usr/lib/64/libexpat.so.1, needed by expat-2.1.0 is not present in this system.

nothing to upgrade.
nothing to install.
root@devzone:~# pkgin pc expat
Information for http://pkgsrc.smartos.org/packages/illumos/2012Q3/All/expat-2.1.0.tgz:
Files:
/opt/pkg/bin/xmlwf
/opt/pkg/include/expat.h
/opt/pkg/include/expat_external.h
/opt/pkg/lib/libexpat.la
/opt/pkg/lib/libexpat.a
/opt/pkg/lib/libexpat.so
/opt/pkg/lib/libexpat.so.1
/opt/pkg/lib/libexpat.so.1.6.0
/opt/pkg/lib/pkgconfig/expat.pc
/opt/pkg/man/man1/xmlwf.1
/opt/pkg/share/doc/html/expat/reference.html
/opt/pkg/share/doc/html/expat/style.css
root@devzone:~# pkgin update
database for http://pkgsrc.smartos.org/packages/illumos/2012Q3/All is up-to-date

libtool should probably be built special to avoid path problems

with respect to some observation made in issue 9 and, well, after trying to bring things up from scratch with only bootstrap-illumos +gcc47, I believe that for a number of cases, this is rather a problem related to the way libtool is built.
First, gcc47 has binutils as a dependency, and as part of binutils comes, among others, ar, ranlib and strip, which all get put in /opt/pkg/gnu/bin and then put in /opt/pkg/bin as gar, granlib and gstrip.

I recommend building libtool first either with /opt/pkg/gnu/bin in the path or as follows:
richard@devzone:~/src/pkgsrc/devel/libtool$ bmake RANLIB=granlib AR=gar STRIP=gstrip

in the latter case:

richard@devzone:~/src/pkgsrc/devel/libtool$ grep -E 'AR=|RANLIB=|STRIP=' /opt/pkg/bin/libtool
AR="gar"
STRIP="gstrip"
RANLIB="granlib"
...

as to the other utilities in /opt/pkg/gnu/bin, I understand that /usr/bin/ld is to be used for solaris targets,
but for eventual cross targets it should probably be gnu ld. What about as, nm, and the others?

richard@devzone:~/src/pkgsrc/devel/libtool$ libtool --features
host: x86_64-sun-solaris2.11
enable shared libraries
enable static libraries
...
richard@devzone:~/src/pkgsrc/devel/libtool$ ls ../gnu/bin
addr2line  c++filt    ld         make       objdump    size
ar         elfedit    ld.bfd     nm         ranlib     strings
as         gprof      m4         objcopy    readelf    strip

what about automake/autoconf?

ACCESSPERMS et co missing in sys/stat.h

Came across a small anomaly in building gedit, namely a missing definition of ACCESSPERMS which is referenced in test/document-saver.c

Search the web I noticed (here https://mail.gnome.org/archives/commits-list/2010-June/msg09709.html) the following patch workaround that has not been ( and probably will never be) integrated upstream in Gnome:

diff --git a/tests/document-saver.c b/tests/document-saver.c
index e5da2b6..ef97fe6 100644
--- a/tests/document-saver.c
+++ b/tests/document-saver.c
@@ -27,6 +27,11 @@
 #include <string.h>
 #include <sys/stat.h>

+/* linux/bsd has it. others such as Solaris, do not */
+#ifndef ACCESSPERMS
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) 
+#endif
+
 #define DEFAULT_LOCAL_URI "/tmp/gedit-document-saver-test.txt"
 #define DEFAULT_REMOTE_URI "sftp://localhost/tmp/gedit-document-saver-test.txt";
 #define DEFAULT_CONTENT "hello world!"

indeed, illumos falls into this category, and I'm able to complete the build with this workaround.

The thing is, seems worthwhile to propose the patch to the illumos tree as opposed to dirty workarounds.

What is Joyent's feeling about an adaptation of the following found in netbsd sys/stat.h

    168 #if defined(_NETBSD_SOURCE)
    169 #define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)   /* 0777 */
    170                             /* 7777 */
    171 #define ALLPERMS    (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
    172                             /* 0666 */
    173 #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
    174 
    175 #define S_BLKSIZE   512     /* block size used in the stat struct */
    176 
    177 /*
    178  * Definitions of flags stored in file flags word.
    179  *
    180  * Super-user and owner changeable flags.
    181  */
    182 #define UF_SETTABLE 0x0000ffff  /* mask of owner changeable flags */
    183 #define UF_NODUMP   0x00000001  /* do not dump file */
    184 #define UF_IMMUTABLE    0x00000002  /* file may not be changed */
    185 #define UF_APPEND   0x00000004  /* writes to file may only append */
    186 #define UF_OPAQUE   0x00000008  /* directory is opaque wrt. union */
    187 /*  UF_NOUNLINK 0x00000010     [NOT IMPLEMENTED] */
    188 /*
    189  * Super-user changeable flags.
    190  */
    191 #define SF_SETTABLE 0xffff0000  /* mask of superuser changeable flags */
    192 #define SF_ARCHIVED 0x00010000  /* file is archived */
    193 #define SF_IMMUTABLE    0x00020000  /* file may not be changed */
    194 #define SF_APPEND   0x00040000  /* writes to file may only append */
    195 /*  SF_NOUNLINK 0x00100000     [NOT IMPLEMENTED] */
    196 #define SF_SNAPSHOT 0x00200000  /* snapshot inode */
    197 #define SF_LOG      0x00400000  /* WAPBL log file inode */
    198 #define SF_SNAPINVAL    0x00800000  /* snapshot is invalid */
    199 
    200 #ifdef _KERNEL
    201 /*
    202  * Shorthand abbreviations of above.
    203  */
    204 #define OPAQUE      (UF_OPAQUE)
    205 #define APPEND      (UF_APPEND | SF_APPEND)
    206 #define IMMUTABLE   (UF_IMMUTABLE | SF_IMMUTABLE)
    207 #endif /* _KERNEL */
    208 #endif /* _NETBSD_SOURCE */

similar for freebsd found http://src.illumos.org/source/xref/freebsd-head/sys/sys/stat.h

zsh missing from trunk-0.99.0

[root@trunk-lab ~]# which zsh
no zsh in /opt/local/bin /opt/local/sbin /usr/bin /usr/sbin
[root@trunk-lab ~]# pkgin se zsh
No results found for zsh
[root@trunk-lab ~]#

My beloved login shell, faithful to me since many years, nowhere to be found. :(

libssp + using glibc stack protector in cups broke

although cups would build and install, any dependent programs seemed to fail like gutenprint-libs with a linker error symbol __stack_chk_guard not found:

richard@devzone:~/src/pkgsrc/print/gutenprint-lib/work.devzone/gutenprint-5.2.9$ ldd  -d /opt/pkg/lib/libcupsimage.so
        libtiff.so.5 =>  /opt/pkg/lib/libtiff.so.5
        liblzma.so.5 =>  /opt/pkg/lib/liblzma.so.5
        librt.so.1 =>    /lib/64/librt.so.1
        libpng15.so.15 =>        /opt/pkg/lib/libpng15.so.15
        libjpeg.so.8 =>  /opt/pkg/lib/libjpeg.so.8
        libcups.so.2 =>  /opt/pkg/lib/libcups.so.2
        libpthread.so.1 =>       /lib/64/libpthread.so.1
        libm.so.2 =>     /lib/64/libm.so.2
        libiconv.so.2 =>         /opt/pkg/lib/libiconv.so.2
        libgssapi.so.3 =>        /opt/pkg/lib/libgssapi.so.3
        libheimntlm.so.0 =>      /opt/pkg/lib/libheimntlm.so.0
        libkrb5.so.26 =>         /opt/pkg/lib/libkrb5.so.26
        libsqlite3.so.0 =>       /opt/pkg/lib/libsqlite3.so.0
        libdl.so.1 =>    /lib/64/libdl.so.1
        libhx509.so.5 =>         /opt/pkg/lib/libhx509.so.5
        libasn1.so.8 =>  /opt/pkg/lib/libasn1.so.8
        libwind.so.0 =>  /opt/pkg/lib/libwind.so.0
        libcom_err.so.1 =>       /opt/pkg/lib/libcom_err.so.1
        libheimbase.so.1 =>      /opt/pkg/lib/libheimbase.so.1
        libroken.so.18 =>        /opt/pkg/lib/libroken.so.18
        libresolv.so.2 =>        /lib/64/libresolv.so.2
        libnsl.so.1 =>   /lib/64/libnsl.so.1
        libsocket.so.1 =>        /lib/64/libsocket.so.1
        libssl.so.0.9.8 =>       /opt/pkg/lib/libssl.so.0.9.8
        libcrypto.so.0.9.8 =>    /opt/pkg/lib/libcrypto.so.0.9.8
        libdns_sd.so =>  /opt/pkg/lib/libdns_sd.so
        libz.so.1 =>     /opt/pkg/lib/libz.so.1
        libgcc_s.so.1 =>         /opt/pkg/gcc47/lib/amd64/libgcc_s.so.1
        libc.so.1 =>     /lib/64/libc.so.1
        libmd.so.1 =>    /lib/64/libmd.so.1
        libmp.so.2 =>    /lib/64/libmp.so.2
        libgcc_s.so.1 =>         /opt/pbulk/gcc47/lib/amd64/libgcc_s.so.1
        symbol not found: __stack_chk_guard             (/opt/pkg/lib/libcupsimage.so)
        symbol not found: __stack_chk_guard             (/opt/pkg/lib/libcups.so.2)

From what I can gather, normally the gcc compiler should do 'the right thing' when -fstack-protect is passed, but thanks to a hint gleaned here (http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00066.html)
in addition to -lssp_nonshared, -lssp needs to be there as well.

Apparently a compiler problem, and a moving target, because I noticed that the pkgsrc Makefile for cups had this entry for SunOS: CONFIGURE_ENV+= LIBS_SSP=-lssp_nonshared

after applying the following, (and deinstalling fully cups), I was able to rebuild cups and get over this problem in gutenprint:

diff --git a/print/cups/Makefile b/print/cups/Makefile
index fec9a4f..26d4ee6 100644
--- a/print/cups/Makefile
+++ b/print/cups/Makefile
@@ -72,7 +72,7 @@ CONFIGURE_ENV+=               DSOFLAGS=${LDFLAGS:M*:Q}
 .include "options.mk"

 .if ${OPSYS} == "SunOS"
-CONFIGURE_ENV+=                LIBS_SSP=-lssp_nonshared
+CONFIGURE_ENV+=                LIBS_SSP="-lssp_nonshared -lssp"
 LIBS.SunOS+=           -liconv
 .endif

isc-dhcpd DLPI Open

The isc-dhcpd package get by pkgin in isc-dhcpd seem to not work in a zone.
On launch I get this error : Can't open DLPI device for net0: Is a directory.
I think it was trying to open /dev/net0 instead of /dev/net/net0.

I found a way to fix it quickly for my need:

In common/dlpi.c :
l.133 : #define DLPI_DEVDIR "/dev/"
need to be relplace by
l.133 : #define DLPI_DEVDIR "/dev/net/"

and in the dlpiopen function
l.804 : while (cp < ep)
need to be replaced by
l.804 : while (cp <= ep)

undefined symbols during ./bootstrap building pkg_create

Hi, hope this is not noise, but since a couple days trying to build with il-gcc44 on OIpre5 I'm suddenly getting the following: (extract)... BTW it worked last week as I'm working to get gcc47 built correctly.

gcc -lssl -lcrypto -L/home/richard/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/.libs -L/home/richard/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch -L/home/richard/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L../lib -o pkg_create main.o perform.o pl.o util.o build.o -linstall -lfetch -lsocket -lnsl -larchive -lbz2 -lz -lnbcompat -lcrypto -lnbcompat
Undefined first referenced
symbol in file
lzma_memusage /home/richard/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/.libs/libarchive.a(archive_write_set_compression_xz.o)
lzma_lzma_preset /home/richard/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/.libs/libarchive.a(archive_write_set_compression_xz.o)
lzma_end /home/richard/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/.libs/libarchive.a(archive_write_set_compression_xz.o)
lzma_code /home/richard/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/.libs/libarchive.a(archive_write_set_compression_xz.o)
lzma_stream_encoder /home/richard/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/.libs/libarchive.a(archive_write_set_compression_xz.o)
lzma_alone_encoder /home/richard/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/.libs/libarchive.a(archive_write_set_compression_xz.o)
ld: fatal: symbol referencing errors. No output written to pkg_create

package compress/xz is installed on the system, so it seems (on this system at least) that the build omits to include liblzma . Will try from scratch on smartos as soon as I can...
for what it's worth, I'm using (after . /opt/dtbld/bin/env.sh gcc4.4) the following command (with a /usr/pkg and /var/db/pkg clean):
pfexec env CC=/opt/gcc/4.4.4/bin/gcc GCCBASE=/opt/gcc/4.4.4 __GNUC="" __GNUC4="" ./bootstrap --abi=64

g++: error: /opt/pbulk/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/crtbegin.o: No such file or directory

Now actually pleased with progress and have been able to build a number of packages, I wanted to build pkgsrc/doc/guide wherein a depency on textutils/opensp croaks...
seems to be a libtool problem with gcc47, looking in the wrong place.... /opt/pbulk

libtool: link: g++ -shared -nostdlib -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib -Wl,-R/usr/lib /usr/lib/amd64/crti.o /usr/lib/amd64/values-Xa.o /opt/pbulk/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/crtbegin.o  .libs/Allocator.o .libs/ArcEngine.o .libs/Attribute.o .libs/Big5CodingSystem.o .libs/CharsetDecl.o .libs/CharsetInfo.o .libs/CharsetRegistry.o .libs/CmdLineApp.o .libs/CodingSystem.o .libs/CodingSystemKit.o .libs/ConsoleOutput.o .libs/ContentState.o .libs/ContentToken.o .libs/DescriptorManager.o .libs/Dtd.o .libs/DtdDeclEventHandler.o .libs/EUCJPCodingSystem.o .libs/ElementType.o .libs/Entity.o .libs/EntityApp.o .libs/EntityCatalog.o .libs/EntityDecl.o .libs/EntityManager.o .libs/ErrnoMessageArg.o .libs/ErrorCountEventHandler.o .libs/Event.o .libs/EventGenerator.o .libs/ExtendEntityManager.o .libs/ExternalId.o .libs/Fixed2CodingSystem.o .libs/GenericEventHandler.o .libs/Group.o .libs/Hash.o .libs/IListBase.o .libs/Id.o .libs/IdentityCodingSystem.o .libs/InputSource.o .libs/InternalInputSource.o .libs/Link.o .libs/LinkProcess.o .libs/LiteralStorage.o .libs/Location.o .libs/Lpd.o .libs/Markup.o .libs/Message.o .libs/MessageArg.o .libs/MessageEventHandler.o .libs/MessageFormatter.o .libs/MessageReporter.o .libs/MessageTable.o .libs/ModeInfo.o .libs/Notation.o .libs/NotationStorage.o .libs/NumericCharRefOrigin.o .libs/OffsetOrderedList.o .libs/OpenElement.o .libs/OutputByteStream.o .libs/OutputCharStream.o .libs/OutputState.o .libs/Param.o .libs/Parser.o .libs/ParserApp.o .libs/ParserEventGeneratorKit.o .libs/ParserMessages.o .libs/ParserOptions.o .libs/ParserState.o .libs/Partition.o .libs/PosixStorage.o .libs/Recognizer.o .libs/RewindStorageObject.o .libs/SGMLApplication.o .libs/SJISCodingSystem.o .libs/SOEntityCatalog.o .libs/Sd.o .libs/SdText.o .libs/SearchResultMessageArg.o .libs/SgmlParser.o .libs/ShortReferenceMap.o .libs/StdioStorage.o .libs/StorageManager.o .libs/Syntax.o .libs/Text.o .libs/TokenMessageArg.o .libs/TranslateCodingSystem.o .libs/TrieBuilder.o .libs/TypeId.o .libs/URLStorage.o .libs/UTF8CodingSystem.o .libs/Undo.o .libs/UnicodeCodingSystem.o .libs/UnivCharsetDesc.o .libs/XMLCodingSystem.o .libs/assert.o .libs/parseAttribute.o .libs/parseCommon.o .libs/parseDecl.o .libs/parseInstance.o .libs/parseMode.o .libs/parseParam.o .libs/parseSd.o .libs/splib.o .libs/app_inst.o .libs/arc_inst.o .libs/entmgr_inst.o .libs/parser_inst.o .libs/xentmgr_inst.o .libs/SubstTable.o .libs/UTF16CodingSystem.o .libs/Fixed4CodingSystem.o .libs/memcmp.o .libs/memmove.o .libs/strerror.o   -Wl,-R -Wl,/home/richard/src/pkgsrc/textproc/opensp/work.devzone/.buildlink/lib -Wl,-R -Wl,/opt/pkg/gcc47/lib -Wl,-R -Wl,/home/richard/src/pkgsrc/textproc/opensp/work.devzone/.buildlink/lib -Wl,-R -Wl,/opt/pkg/gcc47/lib -Wl,-R -Wl,/opt/pkg/lib -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -L/opt/pkg/gcc47/lib -L/home/richard/src/pkgsrc/textproc/opensp/work.devzone/.buildlink/lib /home/richard/src/pkgsrc/textproc/opensp/work.devzone/.buildlink/lib/libintl.so /home/richard/src/pkgsrc/textproc/opensp/work.devzone/.buildlink/lib/libiconv.so -lpthread -lnsl -lsocket -L/opt/pbulk/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -L/opt/pbulk/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/../../../amd64 -L/lib/amd64 -L/usr/lib/amd64 -L/opt/pbulk/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/../../.. /opt/pkg/gcc47/lib/libstdc++.so -lm -lc -lgcc_s /opt/pbulk/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/crtend.o /usr/lib/amd64/crtn.o  -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0 -Wl,-R/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/lib   -Wl,-h -Wl,libosp.so.5 -o .libs/libosp.so.5.0.0
g++: error: /opt/pbulk/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/crtbegin.o: No such file or directory
g++: error: /opt/pbulk/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/crtend.o: No such file or directory
make[3]: *** [libosp.la] Error 1
make[3]: Leaving directory `/home/richard/src/pkgsrc/textproc/opensp/work.devzone/OpenSP-1.5.2/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/richard/src/pkgsrc/textproc/opensp/work.devzone/OpenSP-1.5.2/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/richard/src/pkgsrc/textproc/opensp/work.devzone/OpenSP-1.5.2'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /home/richard/src/pkgsrc/textproc/opensp
*** Error code 1

Stop.
bmake: stopped in /home/richard/src/pkgsrc/textproc/opensp

the files sought after are here:

richard@devzone:~/src/pkgsrc/textproc/opensp$ find /opt -name crtend.o
/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/32/crtend.o
/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/crtend.o
richard@devzone:~/src/pkgsrc/textproc/opensp$ find /opt -name crtbegin.o
/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/32/crtbegin.o
/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.0/crtbegin.o

thoughts as to at least a temporary workaround?

trunk image does not honour resolvers = [ "1.2.3.4", "5.6.7.8" ]

creating a new zone with
vmadm create <<EOF
{
"alias": "test"
,"hostname": "test"
,"zfs_root_compression": "on"
,"autoboot": false
,"brand": "joyent"
,"dataset_uuid": "c91b3752-79c5-11e2-ad33-67667b9ee2c2"
,"max_physical_memory": 4096
,"max_swap": 65536
,"quota": 42
,"dns_domain": "company.com"
,"resolvers": [ "1.2.3.4", "8.8.8.8" ]
,"nics": [
{
"nic_tag": "nat0"
,"ip": "176.16.0.2"
,"netmask": "255.240.0.0"
,"gateway": "172.16.0.1"
,"primary": true
}
]
}
EOF

sets resolv.conf to
nameserver 8.8.8.8
nameserver 8.8.4.4

patch for net/libvncserver

This gets over the missing byteswap.h problem in libvncserver/websockets.c.
I believe it's cleaner than simply kludging a byteswap.h found around nexenta.
This finally building permits building and testing x11/x11vnc!

richard@devzone:~/src/pkgsrc/net/libvncserver$ git diff --staged .
diff --git a/net/libvncserver/distinfo b/net/libvncserver/distinfo
index b5ae8fa..a1bcaf7 100644
--- a/net/libvncserver/distinfo
+++ b/net/libvncserver/distinfo
@@ -3,4 +3,4 @@ $NetBSD: distinfo,v 1.8 2012/05/06 09:08:36 obache Exp $
 SHA1 (LibVNCServer-0.9.9.tar.gz) = 2004c6ae493baeff3da40b61e0a0f73c83182dad
 RMD160 (LibVNCServer-0.9.9.tar.gz) = e62e0903124abb85746bcac6498214fe09c3b4d7
 Size (LibVNCServer-0.9.9.tar.gz) = 1678609 bytes
-SHA1 (patch-libvncserver_websockets.c) = 059c8a3d0971caa3a43eb48a69b8ca81e6df0a78
+SHA1 (patch-libvncserver_websockets.c) = 173cfe07f283bac6838a2a0ee1857357e6b27d3b
diff --git a/net/libvncserver/patches/patch-libvncserver_websockets.c b/net/libvncserver/patches/patch-libvncserver_websockets.c
index a46c0c2..0769bdb 100644
--- a/net/libvncserver/patches/patch-libvncserver_websockets.c
+++ b/net/libvncserver/patches/patch-libvncserver_websockets.c
@@ -4,7 +4,7 @@ $NetBSD: patch-libvncserver_websockets.c,v 1.1 2012/05/06 09:08:36 obache Exp $

 --- libvncserver/websockets.c.orig     2012-05-04 14:19:00.000000000 +0000
 +++ libvncserver/websockets.c
-@@ -31,12 +31,34 @@
+@@ -31,12 +31,41 @@
  /* errno */
  #include <errno.h>

@@ -35,12 +35,19 @@ $NetBSD: patch-libvncserver_websockets.c,v 1.1 2012/05/06 09:08:36 obache Exp $
 +#define WS_NTOH16(n) OSSwapBigToHostInt16(n)
 +#define WS_HTON64(n) OSSwapHostToBigInt64(n)
 +#define WS_HTON16(n) OSSwapHostToBitInt16(n)
++#elif defined(__sun)
++#include <sys/byteorder.h>
++#define WS_NTOH64(n) ntohll(n)
++#define WS_NTOH32(n) ntohl(n)
++#define WS_NTOH16(n) ntohs(n)
++#define WS_HTON64(n) htonll(n)
++#define WS_HTON16(n) htons(n)       
 +#else
 +#include <byteswap.h>
  #if defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && __BYTE_ORDER == __BIG_ENDIAN
  #define WS_NTOH64(n) (n)
  #define WS_NTOH32(n) (n)
-@@ -50,6 +72,7 @@
+@@ -50,6 +79,7 @@
  #define WS_HTON64(n) bswap_64(n)
  #define WS_HTON16(n) bswap_16(n)
  #endif

Upgrade netatalk

Current netatalk version in 2013Q1 is netatalk-2.2.1nb11 which is a couple of years old now. Can we get an upgrade to version 3.0.3 please?

There is now more specific solaris functionality:

./configure --with-bdb=/opt/local --with-init-style=solaris --with-init-dir=/var/svc/manifest/network/ --prefix=/opt/local

Thanks!

`pkgin in lighttpd` does not create the www user

fresh base64 (1.9.1) smartmachine:

[root@00-30-48-fb-70-1e /vmdefs]# zlogin f0817afd-2a40-4e9e-978a-85663c557f87 
[Connected to zone 'f0817afd-2a40-4e9e-978a-85663c557f87' pts/4]
   __        .                   .
 _|  |_      | .-. .  . .-. :--. |-
|_    _|     ;|   ||  |(.-' |  | |
  |__|   `--'  `-' `;-| `-' '  ' `-'
                   /  ; SmartMachine (base64 1.9.1)
                   `-'  http://wiki.joyent.com/jpc2/SmartMachine+Base

[root@test ~]# ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
net0/?            dhcp     ok           10.66.7.235/22
lo0/v6            static   ok           ::1/128
[root@test ~]# ping google.com
google.com is alive
[root@test ~]# pkgin in lighttpd
calculating dependencies... done.

nothing to upgrade.
2 packages to be installed: lua-5.1.5 lighttpd-1.4.32nb1 (781K to download, 2257K to install)

proceed ? [Y/n] 
downloading packages...
lua-5.1.5.tgz                                                  100%  375KB 375.0KB/s 375.0KB/s   00:00    
lighttpd-1.4.32nb1.tgz                                         100%  406KB 406.1KB/s 406.1KB/s   00:00    
installing packages...
installing lua-5.1.5...
installing lighttpd-1.4.32nb1...
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/access_log.conf to /opt/local/etc/lighttpd/conf.d/access_log.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/auth.conf to /opt/local/etc/lighttpd/conf.d/auth.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/cgi.conf to /opt/local/etc/lighttpd/conf.d/cgi.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/cml.conf to /opt/local/etc/lighttpd/conf.d/cml.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/compress.conf to /opt/local/etc/lighttpd/conf.d/compress.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/debug.conf to /opt/local/etc/lighttpd/conf.d/debug.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/dirlisting.conf to /opt/local/etc/lighttpd/conf.d/dirlisting.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/evhost.conf to /opt/local/etc/lighttpd/conf.d/evhost.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/expire.conf to /opt/local/etc/lighttpd/conf.d/expire.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/fastcgi.conf to /opt/local/etc/lighttpd/conf.d/fastcgi.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/geoip.conf to /opt/local/etc/lighttpd/conf.d/geoip.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/magnet.conf to /opt/local/etc/lighttpd/conf.d/magnet.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/mime.conf to /opt/local/etc/lighttpd/conf.d/mime.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/mod.template to /opt/local/etc/lighttpd/conf.d/mod.template
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/mysql_vhost.conf to /opt/local/etc/lighttpd/conf.d/mysql_vhost.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/proxy.conf to /opt/local/etc/lighttpd/conf.d/proxy.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/rrdtool.conf to /opt/local/etc/lighttpd/conf.d/rrdtool.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/scgi.conf to /opt/local/etc/lighttpd/conf.d/scgi.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/secdownload.conf to /opt/local/etc/lighttpd/conf.d/secdownload.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/simple_vhost.conf to /opt/local/etc/lighttpd/conf.d/simple_vhost.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/ssi.conf to /opt/local/etc/lighttpd/conf.d/ssi.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/status.conf to /opt/local/etc/lighttpd/conf.d/status.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/trigger_b4_dl.conf to /opt/local/etc/lighttpd/conf.d/trigger_b4_dl.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/userdir.conf to /opt/local/etc/lighttpd/conf.d/userdir.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/conf.d/webdav.conf to /opt/local/etc/lighttpd/conf.d/webdav.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/lighttpd.conf to /opt/local/etc/lighttpd/lighttpd.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/modules.conf to /opt/local/etc/lighttpd/modules.conf
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/rrdtool-graph.sh to /opt/local/etc/lighttpd/rrdtool-graph.sh
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/spawn-php.sh to /opt/local/etc/lighttpd/spawn-php.sh
lighttpd-1.4.32nb1: copying /opt/local/share/examples/lighttpd/vhosts.d/vhosts.template to /opt/local/etc/lighttpd/vhosts.d/vhosts.template
===========================================================================
The following directories are used by lighttpd-1.4.32nb1 and
have the wrong ownership and/or permissions:

        /var/log/lighttpd (m=0755, o=www, g=www)

===========================================================================
===========================================================================
The following files should be created for lighttpd-1.4.32nb1:

        /etc/rc.d/lighttpd (m=0755)
            [/opt/local/share/examples/rc.d/lighttpd]

===========================================================================
//////////////////////////////////////////////////////////////////////////////

This package is SMF enabled, which means you can use SMF to 'enable',
'disable' or 'restart' the persistent daemon process, e.g.:

  svcadm enable lighttpd:default

The SMF manifest was automatically imported now.

See our wiki on what's SMF and how to use it to your advantage:

  http://wiki.joyent.com/display/smart/About+the+Service+Management+Facility

//////////////////////////////////////////////////////////////////////////////
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
updating database: 100%
marking lighttpd-1.4.32nb1 as non auto-removable
[root@test ~]# grep www /etc/passwd 
[root@test ~]# 

man pkg_* non formatted...

curious, trying to get more 'better" with the latest bootstrap-2012Q3-illumos.tar.gz
it seems that the man pages for the bootstrap files, pkg_*, pkgin, bmake, etc don' format well.
example(first page of 'man pkgin':

The command is aimed at being an apt / yum like tool for managing
pkgsrc  binary  packages.  It relies on for installation, removal
and upgrade of packages  and  associated  dependencies,  using  a
remote repository.  The following command line arguments are sup-
ported:  Download only.  Force database  update.   Force  package
reinstall.   Displays  help  for  the command.  Displays packages
versions instead of globs (sd, sfd, srd) Displays version Be ver-
bose  when (un)installing Assumes "yes" as default answer, except
for autoremove.  Assumes "no" as default  answer.   Only  include
the  packages  with the specified status flags.  Enable chrooting
pkgin in the given repository Logs package browsing (dependencies
and impact) to a given log file The utility provides several com-
mands:  Automatically removes  orphan  dependencies.   Lists  all
packages available in the repository.  Delete downloaded packages
from the cache directory.  Export the list  of  non-autoremovable
packages  to  stdout  (one  category/package by line) Upgrade all
packages to their  newer  versions  present  in  the  repository.
Import  a  list  of  packages  to  be  installed  from  file (one
category/package by line) Performs installation or upgrade of  If
more  than  one  packages  are specified on the command-line, all
will be installed (or upgraded).  Marks as "non  auto-removable".
This  means  that a package that has, for instance, been compiled
manually from pkgsrc, can't be removed through a  upgrade.   More

and so on

mpg321 dumps core due to uninitialised variable

This problem is properly a bug in the original mpg321 rather than pkgsrc, but there is no bug tracking system for mpg321 so I will file it here in addition to sending the author a note.

This is triggered by building with libumem. We reliably see:

Loading modules: [ libumem.so.1 libc.so.1 ld.so.1 ]

$C
08047128 libc.so.1_lwp_kill+0x15(1, 6, 8047158, feaf4349, feb11000, feafee13) 08047148 libc.so.1raise+0x2b(6, feafee13, 8047168, feaf4375)
08047168 libumem.so.1umem_do_abort+0x2b(feb11000, feffb0a4, 80471b8, feaf68ca, feafee13, feaff095) 08047178 libumem.so.1umem_err_recoverable+0x5a(feafee13, feaff095, feffb0a4,
feaff053, 0, 1)
080471b8 libumem.so.1process_free+0xc2(0, 0, 80742e0, 8047714) 080471d8 libumem.so.1free+0x1c(feffb0a4, 805f2e8, 8047284, 810cfd8, ffffffff, 0
)
08047b58 main+0x7c1(4, 8047b84, 8047b98, 8047b78, 80545f2, 805c1a0)
08047b78 _start+0x83(4, 8047c64, 8047c6b, 8047c6e, 8047c7a, 0)

When the process is cleaning up and about to exit. The problem is simple; it's checking pointers in an uninitialised structure against NULL and then freeing them (which is both redundant and broken). The fix is trivial:

--- mpg321-0.3.2-orig/mpg321.c 2012-03-25 12:27:49.000000000 +0000
+++ mpg321-0.3.2-fixed/mpg321.c 2012-12-11 00:35:49.800885209 +0000
@@ -522,6 +522,8 @@
int frames_id;
mad_decoder_position = 0;
output_buffer_position = 0;
+

  •   bzero(&playbuf, sizeof (playbuf));
    

    old_dir[0] = '\0';

pkgsrc bash has problems with locale

fighting the better part of the day trying to sort locale issues with ssh/sshd in a oi_151a7 local zone, and finally I believe the culprit is pkgsrc bash.
If I sudo pkgin install bash, then add /opt/pkg/bin/bash to /etc/shells and finally do a
usermod -s /opt/pkg/bin/bash , then when I log in (in this case via ssh) it ignores LANG and LC_ALL.
Is there something special to do here, or is this the reason /usr/bin/bash is forced in /etc/opt/pkg/mk.conf?

multiarch libxcb needs -D_REENTRANT

libxcb relies on recv() returning EAGAIN, and without -D_REENTRANT all X connections from multithreaded applications fail in the initial exchange.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.