So I tried to manually bootstrap pkgsrc for pbulk using this command :64 # Deploying pbulk packages:65 # - bootstrapping66 cat >${TMPDIR}/pbulk.mk <<EOF67 PKG_DEVELOPER= yes68 EOF6970 ${PKGSRCDIR}/bootstrap/bootstrap \71 ${unprivileged:+--unprivileged} \72 --mk-fragment=${TMPDIR}/pbulk.mk \73 --prefix=${PBULKPREFIX} \74 --workdir=${PBULKWORK}75 rm -rf ${PBULKWORK}76 rm -f ${TMPDIR}/pbulk.mk
My mk.conf.frag is readable and belong to pbulk user even if not running a unpriviliged pbulk :bootstrap command: /usr/pkgsrc/bootstrap/bootstrap --prefix=/usr/pbulk --workdir=/tmp/work-pbulk --mk-fragment=/srv/pkgsrc/conf/mk.conf.frag
nbqc1-sparc6# su - pbulknbqc1-sparc6$ ls -lh /srv/pkgsrc/conf/mk.conf.frag-rw-r--r-- 1 pbulk wheel 222B Oct 12 01:22 /srv/pkgsrc/conf/mk.conf.fragnbqc1-sparc6$ cat /srv/pkgsrc/conf/mk.conf.fragPKG_DEVELOPER=yesMAKE_JOBS=2SKIP_LICENSE_CHECK=yesALLOW_VULNERABLE_PACKAGES=YESFETCH_USING=fetch# Can be remoteDISTDIR=/srv/pkgsrc/distfilesPACKAGES=/srv/pkgsrc/packages# Must be localWRKOBJDIR=/var/tmp/pkgbuildnbqc1-sparc6$ whoamipbulk
nbqc1-sparc6# grep "bootstrap command" nohup.out.13===> bootstrap command: /usr/pkgsrc/bootstrap/bootstrap --prefix=/usr/pbulk --workdir=/tmp/work-pbulk --mk-fragment=/srv/pkgsrc/conf/mk.conf.fragnbqc1-sparc6# tail -15 nohup.out.13=> Checking file-check results for cwrappers-20180325=> Creating binary package /tmp/work-pbulk/wrk/pkgtools/cwrappers/work/.packages/cwrappers-20180325.tgz===> Building binary package for cwrappers-20180325=> Creating binary package /usr/pkgsrc/packages/All/cwrappers-20180325.tgzmkdir: /usr/pkgsrc/packages/All: Read-only file system*** Error code 1Stop.bmake[1]: stopped in /usr/pkgsrc/pkgtools/cwrappers*** Error code 1Stop.bmake: stopped in /usr/pkgsrc/pkgtools/cwrappers===> exited with status 1aborted.
Always end up with the same error.env PKG_DEVELOPER=yes DISTDIR=/srv/pkgsrc/distfiles PACKAGES=/srv/pkgsrc/packages WRKOBJDIR=/var/tmp/pkgbuild /usr/pkgsrc/bootstrap/bootstrap --prefix=/usr/pbulk --workdir=/tmp/work-pbulk --mk-fragment=/srv/pkgsrc/conf/mk.conf.frag
* On 2018-10-10 at 07:16 BST, Julien Savard wrote:
> Just wanted to know of it's still possible to run on pbulk with
> multiple architectures all using the pkgsrc tree mounted as read
> only ?
Yes, this should work. I use it for all my builds.
> PACKAGES=/srv/pkgsrc/packages
> WRKOBJDIR=/var/tmp/pkgbuild
Neither of those settings match this output:
> => Creating binary package
> /tmp/work-pbulk/wrk/pkgtools/cwrappers/work/.packages/cwrappers-20180325.tgz
> ===> Building binary package for cwrappers-20180325
> => Creating binary package /usr/pkgsrc/packages/All/cwrappers-20180325.tgz
so you'll need to figure out why your mk.conf fragment isn't being
used. I don't use pbulk.sh so I'm not sure how it handles that,
sorry. However, /tmp/work-pbulk isn't a standard directory, so it's
probably worth finding where that is set in your configuration and
going from there.
--
Jonathan Perkin - Joyent, Inc. - www.joyent.com