- fix PLIST issues
- error out when linux emul is not present and deal more gracefully in general from maintainer Jason Ish
This commit is contained in:
parent
912e6da097
commit
218bc1ee30
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2003/09/02 18:49:50 pvalchev Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2003/09/25 06:50:21 pvalchev Exp $
|
||||
|
||||
COMMENT= "Linux compatibility package based on RedHat 8.0"
|
||||
|
||||
PKGNAME= redhat_base-8.0p2
|
||||
PKGNAME= redhat_base-8.0p3
|
||||
|
||||
MAINTAINER= Jason Ish <ish@openbsd.org>
|
||||
|
||||
@ -71,14 +71,15 @@ do-install:
|
||||
@elf2olf -o linux ${PREFIX}/sbin/ldconfig
|
||||
@elf2olf -o linux ${PREFIX}/bin/rpm
|
||||
|
||||
# rename ldconfig and install wrapper
|
||||
@cp -p ${PREFIX}/sbin/ldconfig ${PREFIX}/sbin/ldconfig.bin
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/ldconfig ${PREFIX}/sbin
|
||||
|
||||
# make a copy of ld.so, convert to olf and then patch
|
||||
@cp -p ${PREFIX}/lib/ld-2.3.2.so ${PREFIX}/usr/bin/ld-2.3.2-olf.so
|
||||
@elf2olf -o linux ${PREFIX}/usr/bin/ld-2.3.2-olf.so
|
||||
@perl ${FILESDIR}/fix-ldd.pl ${PREFIX}/usr/bin/ld-2.3.2-olf.so
|
||||
|
||||
# run ldconfig
|
||||
-chroot ${PREFIX} /sbin/ldconfig
|
||||
|
||||
post-install:
|
||||
# remove setuid root bits
|
||||
@find ${PREFIX} -perm -4000 -exec chmod u-s {} \;
|
||||
|
13
emulators/redhat/base/files/ldconfig
Normal file
13
emulators/redhat/base/files/ldconfig
Normal file
@ -0,0 +1,13 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# $Id: ldconfig,v 1.1 2003/09/25 06:50:21 pvalchev Exp $
|
||||
#
|
||||
|
||||
if [ x`sysctl -n kern.emul.linux` = x1 ]; then
|
||||
/emul/linux/sbin/ldconfig.bin $@
|
||||
else
|
||||
echo "ERROR: kern.emul.linux must be 1"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1.1.1 2001/09/16 16:47:32 naddy Exp $
|
||||
# $OpenBSD: INSTALL,v 1.2 2003/09/25 06:50:21 pvalchev Exp $
|
||||
#
|
||||
# Pre/post-installation setup of redhat_base
|
||||
|
||||
@ -27,6 +27,24 @@ do_notice_link()
|
||||
echo "|"
|
||||
}
|
||||
|
||||
do_notice_sysctl()
|
||||
{
|
||||
echo "| *** Warning: Linux compatibility not enabled."
|
||||
echo "|"
|
||||
echo "| Before this port will work you must:"
|
||||
echo "|"
|
||||
echo "| 1. Enable Linux compatibility:"
|
||||
echo "|"
|
||||
echo "| Documentation on how to enable Linux compatibility can be"
|
||||
echo "| found in the compat_linux(8) man page."
|
||||
echo "|"
|
||||
echo "| 2. Update the Linux ld.so.cache file:"
|
||||
echo "|"
|
||||
echo "| Once Linux compatibility has been enabled, run"
|
||||
echo "| /emul/linux/sbin/ldconfig as root."
|
||||
echo "|"
|
||||
}
|
||||
|
||||
do_notice_bottom()
|
||||
{
|
||||
echo "| Installation of $1 complete. See compat_linux(8)"
|
||||
@ -61,6 +79,13 @@ case $2 in
|
||||
ln -sf $PREFIX /emul/linux
|
||||
fi
|
||||
|
||||
# Only run ldconfig if kern.emul.linux = 1.
|
||||
if [ x`sysctl -n kern.emul.linux` = x1 ]; then
|
||||
${PREFIX}/sbin/ldconfig
|
||||
else
|
||||
do_notice_sysctl
|
||||
fi
|
||||
|
||||
do_notice_bottom $1
|
||||
;;
|
||||
*)
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.6 2003/09/02 18:49:50 pvalchev Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.7 2003/09/25 06:50:21 pvalchev Exp $
|
||||
@pkgcfl linux_lib-*
|
||||
@exec mkdir -p %D/dev
|
||||
@exec ln -sf /dev/console %D/dev/tty0
|
||||
@ -10,6 +10,14 @@
|
||||
@exec ln -sf /dev/sound %D/dev/dsp
|
||||
@exec ln -sf /dev/null %D/dev/null
|
||||
@unexec rm -rf %D/dev
|
||||
@unexec rm -f %D/etc/ld.so.cache
|
||||
@unexec rm -f %D/lib/libtermcap.so.2
|
||||
@unexec rm -f %D/usr/lib/libstdc++.so.2.9
|
||||
@unexec rm -f %D/usr/lib/libstdc++.so.2.8
|
||||
@unexec rm -f %D/usr/lib/libstdc++.so.2.7.2
|
||||
@unexec rm -f %D/usr/lib/libstdc++-libc6.1-1.so.2
|
||||
@unexec rm -f %D/usr/lib/libjpeg.so.62
|
||||
@unexec rm -f %D/usr/lib/libg++.so.2.7.2
|
||||
bin/basename
|
||||
bin/bash
|
||||
bin/bash2
|
||||
@ -101,7 +109,7 @@ etc/gtk/gtkrc.vi_VN.viscii111
|
||||
etc/gtk/gtkrc.yi
|
||||
etc/gtk/gtkrc.zh_CN
|
||||
etc/gtk/gtkrc.zh_TW.big5
|
||||
etc/ld.so.cache
|
||||
@comment no checksum
|
||||
etc/ld.so.conf
|
||||
etc/logrotate.d/rpm
|
||||
etc/nsswitch.conf
|
||||
@ -166,14 +174,16 @@ lib/libresolv-2.3.2.so
|
||||
lib/libresolv.so.2
|
||||
lib/librt-2.3.2.so
|
||||
lib/librt.so.1
|
||||
lib/libtermcap.so.2
|
||||
lib/libtermcap.so.2.0.8
|
||||
lib/libthread_db-1.0.so
|
||||
lib/libthread_db.so.1
|
||||
lib/libutil-2.3.2.so
|
||||
lib/libutil.so.1
|
||||
sbin/ldconfig
|
||||
sbin/ldconfig.bin
|
||||
sbin/sln
|
||||
usr/X11R6/lib/X11/XErrorDB
|
||||
usr/X11R6/lib/X11/XKeysymDB
|
||||
usr/X11R6/lib/X11/locale/C/XI18N_OBJS
|
||||
usr/X11R6/lib/X11/locale/C/XLC_LOCALE
|
||||
usr/X11R6/lib/X11/locale/armscii-8/Compose
|
||||
@ -307,6 +317,7 @@ usr/X11R6/lib/X11/locale/zh_TW.big5/XLC_LOCALE
|
||||
usr/X11R6/lib/X11/locale/zh_TW/Compose
|
||||
usr/X11R6/lib/X11/locale/zh_TW/XI18N_OBJS
|
||||
usr/X11R6/lib/X11/locale/zh_TW/XLC_LOCALE
|
||||
usr/X11R6/lib/X11/rgb.txt
|
||||
usr/X11R6/lib/libICE.so.6
|
||||
usr/X11R6/lib/libOSMesa.so.3
|
||||
usr/X11R6/lib/libSM.so.6
|
||||
@ -618,7 +629,6 @@ usr/lib/libfontconfig.so.1
|
||||
usr/lib/libform.so.5
|
||||
usr/lib/libfreetype.so.6
|
||||
usr/lib/libfreetype.so.6.3.1
|
||||
usr/lib/libg++.so.2.7.2
|
||||
usr/lib/libg++.so.2.7.2.8
|
||||
usr/lib/libgdk-1.2.so.0
|
||||
usr/lib/libgdk-1.2.so.0.9.1
|
||||
@ -632,7 +642,6 @@ usr/lib/libgtk-1.2.so.0
|
||||
usr/lib/libgtk-1.2.so.0.9.1
|
||||
usr/lib/libhistory.so.4
|
||||
usr/lib/libiberty.a
|
||||
usr/lib/libjpeg.so.62
|
||||
usr/lib/libjpeg.so.62.0.0
|
||||
usr/lib/libmenu.so.5
|
||||
usr/lib/libncurses.so.5
|
||||
@ -652,9 +661,7 @@ usr/lib/librpmdb-4.1.so
|
||||
usr/lib/librpmio-4.1.so
|
||||
usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
|
||||
usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
|
||||
usr/lib/libstdc++-libc6.1-1.so.2
|
||||
usr/lib/libstdc++-libc6.2-2.so.3
|
||||
usr/lib/libstdc++.so.2.7.2
|
||||
usr/lib/libstdc++.so.2.7.2.8
|
||||
usr/lib/libstdc++.so.2.8.0
|
||||
usr/lib/libstdc++.so.2.9.dummy
|
||||
@ -4821,6 +4828,7 @@ usr/share/locale/zh_TW/LC_MESSAGES/fileutils.mo
|
||||
usr/share/locale/zh_TW/LC_MESSAGES/libc.mo
|
||||
usr/share/man/ja/man8/rpm.8.gz
|
||||
usr/share/man/ja/man8/rpm2cpio.8.gz
|
||||
usr/share/man/man1/..1.gz
|
||||
usr/share/man/man1/:.1.gz
|
||||
usr/share/man/man1/[.1.gz
|
||||
usr/share/man/man1/addr2line.1.gz
|
||||
@ -7337,8 +7345,6 @@ usr/lib/libmenu.so.5.2
|
||||
usr/lib/libncurses.so.5.2
|
||||
usr/lib/libpanel.so.5.2
|
||||
usr/lib/libreadline.so.4.3
|
||||
usr/lib/libstdc++.so.2.8
|
||||
usr/lib/libstdc++.so.2.9
|
||||
@exec mkdir -p %D/var/spool/repackage
|
||||
@dirrm var/spool/repackage
|
||||
@dirrm var/spool
|
||||
|
Loading…
Reference in New Issue
Block a user