run_make() {local run_cmdrun_cmd=$1shift
#TRACE
date >> /root/pbulk-trace.txtecho run-make >> /root/pbulk-trace.txtpwd >> /root/pbulk-trace.txtecho ${run_cmd} ${make} "$@" BATCH=1 DEPENDS_TARGET=/nonexistent ${MAKE_FLAGS} WRKLOG=${bulklog}/${pkgname}/work.log >> /root/pbulk-trace.txt
#END TRACE
${run_cmd} ${make} "$@" \BATCH=1 \DEPENDS_TARGET=/nonexistent \${MAKE_FLAGS} \WRKLOG=${bulklog}/${pkgname}/work.log
run_su() {
#TRACE
date >> /root/pbulk-trace.txtecho run_su >> /root/pbulk-trace.txtecho su ${unprivileged_user} -c '"$@"' make "$@" >> /root/pbulk-trace.txt
# END TRACE
su ${unprivileged_user} -c '"$@"' make "$@";}
/usr/pkg/bin/bmake checksum BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/srv/data/log/pbulk/fetch-1.8nb3/work.logsu pbulk -c "$@" make /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/srv/data/log/pbulk/fetch-1.8nb3/work.log
===> Building binary package for libfetch-2.38=> Creating binary package /srv/data/packages/All/libfetch-2.38.tgz=> Becoming ``root'' to make su-real-package-install (/usr/bin/su)su: You are not listed in the correct secondary group (wheel) to su root.su: Sorry: Authentication error*** Error code 1
Hi,I tried to change the 'make' used :#make=${prefix}/bin/bmake
make=/usr/bin/makeI also removed all packages already compiled in PACKAGE ( in my case /srv/data/packages). Now it fails even sooner :Building...
Initialisation complete.
[1/10] Starting build of cwrappers-20180325
[1/10] Successfully built cwrappers-20180325
[2/10] Starting build of libfetch-2.38
[2/10] Successfully built libfetch-2.38
[3/10] Starting build of digest-20160304
[3/10] Successfully built digest-20160304
[4/10] Starting build of fetch-1.8nb3
[4/10] Failed to build fetch-1.8nb3fetch is a prerequisite in my mk.conf ( FETCH_USING=fetch).Interesting fact : When I compile, for instance, libfetch within pkgsrc ( whitout pbulk : cd /srv/pkgsrc/; /usr/pkg/bin/bmake pacakge or make package ), it does work.nbqc1-osparc6# head -2 /root/nohup.out
===> Installing dependencies for libfetch-2.38
==========================================================================
nbqc1-osparc6# tail -2 /root/nohup.out
===> Building binary package for libfetch-2.38
=> Creating binary package /srv/data/packages/All/libfetch-2.38.tgzI guess it must be something in my pbulk.conf. If it were in my mk.conf I wouldn't be able to compile it outside of bulkbuild.On Mon, Nov 5, 2018 at 6:06 AM Joerg Sonnenberger <joerg%bec.de@localhost> wrote:On Sun, Nov 04, 2018 at 07:17:06PM -0500, Julien Savard wrote:
> Hi,
> here is the make I use in pbulk.conf :
>
> nbqc1-osparc6$ grep make= /srv/pbulk/etc/pbulk.conf
> make=${prefix}/bin/bmake
>
>
> Should I use the make outside $prefix (/usr/bin/make) ?
Yes, it should be the make used by the regular build.
Joerg