Hi,
I installed pbulk simply by running "make install" in /usr/pkgsrc/pkgtools/pbulk. Then I ran "mksandbox --without-x /usr/sandbox" and finnaly " chroot $SANDBOX_ROOT_PATH/$SANDBOX_NAME /bin/sh -c "sh /usr/pkgsrc/mk/pbulk/pbulk.sh -n -c /root/mk.conf.frag" "
mk.conf.frag containing :
PKG_COMPILER=distcc ccache gcc
ALLOW_VULNERABLE_PACKAGES=YES
KRB5_ACCEPTED=heimdal mit-krb5
PKG_OPTIONS.irssi+= ssl perl inet6
PKGCHK_CONF?= /etc/pkgchk.conf
DEPENDS_TARGET= bulk-install
BULK_PREREQ+= pkgtools/lintpkgsrc
BULK_PREREQ+= pkgtools/pkg_install
BULK_PREREQ+= devel/ccache
BULK_PREREQ+= devel/distcc
.for DISTCCDEPS in devel/ccache sysutils/checkperms pkgtools/digest devel/distcc devel/popt devel/libtool-base lang/f2c devel/gmake
. if "${PKGPATH}" == "${DISTCCDEPS}"
Running
"make install" in any package in /usr/pkgsrc from the sandbox will not work after running
pbulk.sh :
=> Bootstrap dependency digest>=20010302: NOT found
=> Verifying bulk-install for ../../pkgtools/digest
make[1]: don't know how to make bulk-install. Stop
make[1]: stopped in /usr/pkgsrc/pkgtools/digest
However creating a pacakge from the host and installing it inside the sandbox works :
$SANDBOX_ROOT_PATH/$SANDBOX_NAME/sandbox /chroot
cd /usr/pkgsrc/packages/All/
# this directory contiant the package compiled from the host bind monted inside the sandbox ( default behavior of mksandbox)
sparc1# pkg_add ccache-3.3.4.tgz
sparc1# pkg_add popt-1.16nb1.tgz
sparc1# pkg_add distcc-3.2.tgz
After adding the host in /root/.distcc/hosts I have working setup :
printf("Hello distcc!\n");
sparc1# distcc -c main.c -o main.o
#... Skipped some lines
distcc[1718] compile from main.c to main.o
distcc[1718] (dcc_parse_hosts_file) load hosts from /root/.distcc/hosts
#... Skipped some lines
#... Skipped some lines
distcc[1718] elapsed compilation time 0.000001s
sparc1# gcc main.o -o hello-distcc
sparc1# ./hello-distcc
Hello distcc!
This will install all I need in /usr/pkg/ inside the sandbox. However it will be deleted as soon as I run "/usr/pbulk/bin/bulkbuild" ( pbulk.conf:prefix=/usr/pkg --> "rm -fr $prefix" on each bulkbuild ???).
Installing distcc inside the sandbox in another directory then the default directory or prefix if you prefer ( /usr/pbulk/ instead of/usr/pkg) seemed logical to me and this is what I though you told me to do. Guess I misunderstood...
So the question remain : How do you make pbulk use distcc ?