From 73ccb5cd2775311c8fe0d4ce006d075657044e37 Mon Sep 17 00:00:00 2001 From: jmmv Date: Sun, 20 Jul 2003 16:05:04 +0000 Subject: Properly set LD_PRELOAD in the environment so libkver works properly. Pointed out by seb@. --- pkgtools/pkg_comp/files/pkg_comp.8 | 4 ++-- pkgtools/pkg_comp/files/pkg_comp.sh | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'pkgtools/pkg_comp') 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 @@ -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 @@ -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 -- cgit v1.2.3