diff options
-rw-r--r-- | pkgtools/pkg_comp/files/pkg_comp.8 | 4 | ||||
-rw-r--r-- | pkgtools/pkg_comp/files/pkg_comp.sh | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/pkgtools/pkg_comp/files/pkg_comp.8 b/pkgtools/pkg_comp/files/pkg_comp.8 index 79554f0db62..626beee52d3 100644 --- a/pkgtools/pkg_comp/files/pkg_comp.8 +++ b/pkgtools/pkg_comp/files/pkg_comp.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: pkg_comp.8,v 1.9 2003/07/20 15:54:47 jmmv Exp $ +.\" $NetBSD: pkg_comp.8,v 1.10 2003/07/20 16:05:04 jmmv Exp $ .\" .\" pkg_comp - Build packages inside a clean chroot environment .\" Copyright (c) 2002, 2003, Julio Merino <jmmv@netbsd.org> @@ -174,7 +174,7 @@ the chroot matches the outside one). Otherwise, the .Pa pkgtools/libkver package is installed, configuring it with the version set in the variable. -This package fakes calls to the +This package fakes some system functions and calls to the .Xr sysctl 8 utility so that programs get the right kernel version with respect to the installed userland (inside the chroot). diff --git a/pkgtools/pkg_comp/files/pkg_comp.sh b/pkgtools/pkg_comp/files/pkg_comp.sh index 1b90920a463..5c153aebcd9 100644 --- a/pkgtools/pkg_comp/files/pkg_comp.sh +++ b/pkgtools/pkg_comp/files/pkg_comp.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: pkg_comp.sh,v 1.8 2003/07/20 15:54:47 jmmv Exp $ +# $NetBSD: pkg_comp.sh,v 1.9 2003/07/20 16:05:04 jmmv Exp $ # # pkg_comp - Build packages inside a clean chroot environment # Copyright (c) 2002, 2003, Julio Merino <jmmv@netbsd.org> @@ -380,6 +380,9 @@ pkg_makeroot() if [ "$NETBSD_RELEASE" != "no" ]; then BUILD_TARGET=install pkg_build pkgtools/libkver + echo "LD_PRELOAD=/usr/lib/libkver.so; export LD_PRELOAD" >> $DESTDIR/etc/shrc + echo "setenv LD_PRELOAD /usr/lib/libkver.so" >> $DESTDIR/etc/csh.login + echo "setenv LD_PRELOAD /usr/lib/libkver.so" >> $DESTDIR/etc/csh.cshrc fi if [ "$USE_GCC3" = "yes" ]; then |