wm/cde cannot be cross-built from Linux (mk/tools/replace.mk:142 refuses awk:run when OPSYS != NATIVE_OPSYS), so it is built on a live image from src/ under qemu: tools/vm-boot.cfg puts the console on com0, tools/vmctl.py drives it, and tools/vmbuild/ holds the stages that bootstrap pkgsrc there with --prefer-native=yes and build the recipe unchanged. Two settings, both configuration, both scoped to wm/cde in the build host's mk.conf: FORCE_C_STD=gnu11 (autoconf 2.72 picks C23, where CDE's 'int f();' means 'int f(void)') and the C wrapper's append list for the five GCC 14 implicit-declaration errors, the only lever that reaches the ksh93 subtree. stage6 walks the runtime closure over the @pkgdep lines in +CONTENTS, not over +DEPENDS (that file is in the binary package, not in the registration database), and the closure is unpacked into the sysroot rather than pkg_add'ed so CDE's /etc/dt paths do not land on the build host. 10837 set entries, checkflist green.
25 lines
1.0 KiB
Bash
Executable File
25 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# stage 3b: bootstrap pkgsrc into /usr/pkg.
|
|
#
|
|
# The first attempt bootstrapped bmake and pkg_* into /opt/pkg-bootstrap while
|
|
# LOCALBASE was /usr/pkg, and that split does not work: mk/bsd.prefs.mk sets
|
|
# TOOLBASE := ${LOCALBASE}, so the build looked for mktools under
|
|
# /usr/pkg/libexec/mktools while the bootstrap tools had gone into
|
|
# /opt/pkg-bootstrap (p5-gettext: "mk-buildlink-symlinks: not found").
|
|
# pkgsrc's model is one prefix; the bootstrap tools are separated from the
|
|
# distribution copy at the end instead, by package.
|
|
set -e
|
|
rm -rf /opt/pkg-bootstrap /tmp/bootwork
|
|
# /usr/pkg already holds the packages the failed attempt installed into it;
|
|
# they are in /var/tmp/packages as binary packages, so pkgsrc reinstalls them
|
|
# instead of rebuilding.
|
|
rm -rf /usr/pkg /var/tmp/work
|
|
cd /usr/pkgsrc/bootstrap
|
|
./bootstrap --prefer-native=yes \
|
|
--prefix /usr/pkg \
|
|
--workdir /tmp/bootwork \
|
|
--mk-fragment /var/tmp/vm-mk.conf
|
|
mkdir -p /var/tmp/distfiles /var/tmp/work /var/tmp/packages
|
|
/usr/pkg/bin/bmake -V MAKE_VERSION
|
|
echo STAGE3B-OK
|