tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bootstrap failure
On 02/07/15 00:43, Jonathan Perkin wrote:
>> Does anyone know where those
>>
>> ----------------------
>> bmake: "/usr/pkgsrc/bootstrap/work/sbin/pkg_info -K /var/db/pkg -qp
>> coreutils 2>
>> /dev/null | { read cmd arg;
>> case "$arg" in "") /usr/pkg ;;
>> *) "$arg" ;; esac; }"
>> returned non-zero status
>> sh: /usr/pkg: cannot execute - Is a directory
>> bmake: "/usr/pkgsrc/bootstrap/work/sbin/pkg_info -K /var/db/pkg -qp
>> coreutils 2>
>> /dev/null | { read cmd arg;
>> case "$arg" in "") /usr/pkg ;;
>> *) "$arg" ;; esac; }"
>> returned non-zero status
>> ----------------------
>>
>> are coming from?
>
> They're coming from mk/find-prefix.mk via mk/tools/replace.mk trying
> to figure out how to pull in essential tools required by pkgsrc.
> What's odd about the output above is that it looks like ECHO is
> undefined, hence it trying to execute /usr/pkg instead of echo it.
>
> If you set ECHO=echo in the bootstrap environment and try again does
> it get further? Not a fix, obviously, but curious as to what's
> causing it.
Good catch. Running:
# PWD_CMD=/bin/pwd ECHO=echo ./bootstrap
yields:
---------------------------
gcc -DHAVE_CONFIG_H -I../libnbcompat -I../../libnbcompat -I. -I.
-I../lib -DBOOTSTRAP -g -O2 -c main.c
gcc -DHAVE_CONFIG_H -I../libnbcompat -I../../libnbcompat -I. -I.
-I../lib -DBOOTSTRAP -g -O2 -c perform.c
gcc -DHAVE_CONFIG_H -I../libnbcompat -I../../libnbcompat -I. -I.
-I../lib -DBOOTSTRAP -g -O2 -c pl.c
gcc -DHAVE_CONFIG_H -I../libnbcompat -I../../libnbcompat -I. -I.
-I../lib -DBOOTSTRAP -g -O2 -c util.c
gcc -L../libnbcompat -L../../libnbcompat -L../lib -o pkg_create main.o
perform.o
pl.o util.o -linstall -lsocket -lnbcompat
gcc -DHAVE_CONFIG_H -I../libnbcompat -I../../libnbcompat -I. -I.
-I../lib -DBOOTSTRAP -g -O2 -c main.c
gcc -DHAVE_CONFIG_H -I../libnbcompat -I../../libnbcompat -I. -I.
-I../lib -DBOOTSTRAP -g -O2 -c perform.c
gcc -DHAVE_CONFIG_H -I../libnbcompat -I../../libnbcompat -I. -I.
-I../lib -DBOOTSTRAP -g -O2 -c show.c
gcc -L../libnbcompat -L../../libnbcompat -L../lib -o pkg_info main.o
perform.o show.o -linstall -lsocket -lnbcompat
===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o
root -g root -m 755
/usr/pkgsrc/bootstrap/work/pkg_install/admin/pkg_admin
/usr/pkgsrc/bootstrap/work/sbin/pkg_admin
===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o
root -g root -m 755
/usr/pkgsrc/bootstrap/work/pkg_install/create/pkg_create
/usr/pkgsrc/bootstrap/work/sbin/pkg_create
===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o
root -g root -m 755 /usr/pkgsrc/bootstrap/work/pkg_install/info/pkg_info
/usr/pkgsrc/bootstrap/work/sbin/pkg_info
===> Installing packages
===> running: (cd /usr/pkgsrc/pkgtools/bootstrap-mk-files &&
/usr/pkgsrc/bootstrap/work/bin/bmake MAKE_JOBS=1 USE_DESTDIR=no
-DPKG_PRESERVE MAKECONF=/usr/pkgsrc/bootstrap/work/mk.conf install)
Variable ECHO is recursive.
bmake: stopped in /usr/pkgsrc/pkgtools/bootstrap-mk-files
===> exited with status 2
aborted.
---------------------------
Not quite there, but it's close.
Since I need to set both PWD_CMD and ECHO, I'm assuming there's some
very central "set tool variables" in pkgsrc which is failing to set all
the relevant variables.
--
Kind Regards,
Jan
Home |
Main Index |
Thread Index |
Old Index