# Skiped some lines...
PKGSRC_COMPILER=distcc ccache gccMAKE_JOBS=4DISTCC_HOSTS=nbqc1-distcc1.neiluj.ca localhostPKG_RCD_SCRIPTS=yesALLOW_VULNERABLE_PACKAGES=YESPKG_DEFAULT_OPTIONS+=KRB5_ACCEPTED=heimdal mit-krb5USE_CWRAPPERS=yesPKG_OPTIONS.irssi+= ssl perl inet6DEPENDS_TARGET= bulk-installBATCH= yesBULK_PREREQ+= pkgtools/lintpkgsrcBULK_PREREQ+= pkgtools/pkg_installBULK_PREREQ+= devel/ccacheBULK_PREREQ+= devel/distccBULK_PREREQ+= devel/popt
# http://wiki.netbsd.org/tutorials/pkgsrc/cross_compile_distcc/
#.for DISTCCDEPS in devel/ccache sysutils/checkperms pkgtools/digest devel/distcc devel/popt devel/libtool-base lang/f2c devel/gmake#. if "${PKGPATH}" == "${DISTCCDEPS}"#IGNORE_DISTCC= yes#IGNORE_CCACHE= yes#. endif#.endfor
# Force IGNORE hereIGNORE_DISTCC= yesIGNORE_CCACHE= yes
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_DEVELOPER=yesMAKE_JOBS=1SKIP_LICENSE_CHECK=yesPKG_COMPILER=distcc ccache gccPKG_RCD_SCRIPTS=yesALLOW_VULNERABLE_PACKAGES=YESPKG_DEFAULT_OPTIONS+=KRB5_ACCEPTED=heimdal mit-krb5USE_CWRAPPERS=yesPKG_OPTIONS.irssi+= ssl perl inet6PKGCHK_CONF?= /etc/pkgchk.confDEPENDS_TARGET= bulk-installBATCH= yesBULK_PREREQ+= pkgtools/lintpkgsrcBULK_PREREQ+= pkgtools/pkg_installBULK_PREREQ+= devel/ccacheBULK_PREREQ+= devel/poptBULK_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}"IGNORE_DISTCC= yesIGNORE_CCACHE= yes. endif.endforWRKOBJDIR= /tmpPACKAGES= /srv/packagesDISTDIR= /srv/distfilesRunning "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/digestmake[1]: don't know how to make bulk-install. Stopmake[1]: stopped in /usr/pkgsrc/pkgtools/digest*** Error code 2Stop.However creating a pacakge from the host and installing it inside the sandbox works :After adding the host in /root/.distcc/hosts I have working setup :$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.tgzsparc1# pkg_add popt-1.16nb1.tgzsparc1# pkg_add distcc-3.2.tgzsparc1# cat main.c#include <stdio.h>int main() {printf("Hello distcc!\n");return 0;}sparc1# distcc -c main.c -o main.o#... Skipped some linesdistcc[1718] compile from main.c to main.odistcc[1718] (dcc_parse_hosts_file) load hosts from /root/.distcc/hostsdistcc[1718] (dcc_parse_hosts) found tcp token "nbqc1-distcc1.neiluj.ca"#... Skipped some linesdistcc[1718] exec on nbqc1-distcc1.neiluj.ca: cc -c main.c -o main.odistcc[1718] (dcc_note_state) note state 2, file "main.c", host "nbqc1-distcc1.neiluj.ca"distcc[1718] (dcc_connect_by_name) connecting to nbqc1-distcc1.neiluj.ca port 3632#... Skipped some linesdistcc[1718] compile main.c on nbqc1-distcc1.neiluj.ca completed okdistcc[1718] elapsed compilation time 0.000001ssparc1# gcc main.o -o hello-distccsparc1# ./hello-distccHello 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 ?On Fri, Feb 2, 2018 at 8:39 AM, Thomas Klausner <wiz%netbsd.org@localhost> wrote:On Fri, Feb 02, 2018 at 08:28:49AM -0500, Julien Savard wrote:
> So I installed distcc with the pbulk prefix. In other term :
>
> /usr/sandbox/sandbox chroot
> cd /usr/pkgsrc/packages/All
> pkg_add -p /usr/pbulk/ ccache-3.3.4.tgz
> pkg_add -p /usr/pbulk/ popt-1.16nb1.tgz
> pkg_add -p /usr/pbulk/ distcc-3.2.tgz
This is not recommended. Just build the packages for that prefix, like you did for pbulk (I hope)...
Thomas