pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/55952: Problems with /usr/pkg hardcoding in pkgsrc
The following reply was made to PR pkg/55952; it has been noted by GNATS.
From: John Klos <john%ziaspace.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/55952: Problems with /usr/pkg hardcoding in pkgsrc
Date: Sun, 24 Jan 2021 19:05:42 +0000 (UTC)
> Are you sure this system doesn't have any files or environment
> variables lying around that might affect this?
>
> None of my macOS/Linux/SmartOS systems use /usr/pkg and they run
> bootstrap for every daily build without issues.
This is a clean system, but I'll run it again. It's an El Capitan system
(original Mac Pro). Because of SIP, /usr/pkg cannot be used, of course.
rm -Rf pkgsrc ; tar xzf pkgsrc.tar.gz (from 22-Jan-2021)
cd pkgsrc/bootstrap
./bootstrap --abi 64 --full --make-jobs 8 --prefer-pkgsrc --prefix /usr/local
I see things like this:
===> Bootstrapping mk-files
===> running: (cd /Users/john/pkgsrc/pkgtools/bootstrap-mk-files/files &&
env CP=/bin/cp OPSYS=Darwin
MK_DST=/Users/john/pkgsrc/bootstrap/work/share/mk ROOT_GROUP=wheel
ROOT_USER=root SED=/usr/bin/sed SYSCONFDIR=/usr/pkg/etc /bin/sh
./bootstrap.sh)
where SYSCONFDIR should be derived from prefix, and like this:
===> Building libnbcompat
===> running: /bin/sh /Users/john/pkgsrc/bootstrap/work/bin/install-sh -d
-o root -g wheel /Users/john/pkgsrc/bootstrap/work/libnbcompat
===> running: (cd /Users/john/pkgsrc/bootstrap/work/libnbcompat; /bin/sh
./configure -C --prefix=/usr/pkg --infodir=/usr/pkg/info
--mandir=/usr/pkg/man --sysconfdir=/usr/pkg/etc --enable-bsd-getopt
--enable-db && /Users/john/pkgsrc/bootstrap/work/bin/bmake -j8)
where prefix should be derived from prefix!
Also, we have:
--- automatic.o ---
cc -isystem /usr/include -DHAVE_CONFIG_H -DDEF_LOG_DIR=\"/usr/pkg/pkgdb\"
-I/Users/john/pkgsrc/bootstrap/work/libnbcompat
-I/Users/john/pkgsrc/bootstrap/work/libarchive/libarchive -I. -I.
-DSYSCONFDIR=\"/usr/pkg/etc\" -DPREFIX=\"\" -DBOOTSTRAP -g -O2 -c
automatic.c
While I think (thought) that pkgdbdir should follow prefix, I didn't
check, and I see it isn't. That should be fixed. If pkgdbdir is meant to
exist outside of prefix, then that's when it should need to be set.
But it still fails with --pkgdbdir /usr/local/pkgdb.
Then I realized that the tools that are failing are everything built based
on --prefer-pkgsrc.
./cleanup
./bootstrap --abi 64 --full --make-jobs 8 --prefix /usr/local
This works fine, and nothing mentions /usr/pkg.
Thanks,
John
Home |
Main Index |
Thread Index |
Old Index