summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_comp
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-07-20 16:05:04 +0000
committerjmmv <jmmv>2003-07-20 16:05:04 +0000
commitf77bce31cc0d3518f38681efdf36055b9a033aaa (patch)
tree18dc26f7bb858003db57c2adfc7b240953457361 /pkgtools/pkg_comp
parent047bc9e4dd997843b9517e195adc8f78d3b0d95f (diff)
downloadpkgsrc-f77bce31cc0d3518f38681efdf36055b9a033aaa.tar.gz
Properly set LD_PRELOAD in the environment so libkver works properly.
Pointed out by seb@.
Diffstat (limited to 'pkgtools/pkg_comp')
-rw-r--r--pkgtools/pkg_comp/files/pkg_comp.84
-rw-r--r--pkgtools/pkg_comp/files/pkg_comp.sh5
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