Subject: pkg/12036: A package for LinuxPPC libraries
To: None <gnats-bugs@gnats.netbsd.org>
From: None <p99dreyf@criens.u-psud.fr>
List: netbsd-bugs
Date: 01/23/2001 13:24:24
>Number: 12036
>Category: pkg
>Synopsis: A package for LinuxPPC libraries
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jan 23 13:27:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Emmanuel Dreyfus
>Release: NetBSD-current/macppc
>Organization:
>Environment:
NetBSD trotsky 1.5Q NetBSD 1.5Q (LCOMP3) #23: Mon Jan 22 00:11:35 CET 2001 manu@trotsky:/root/syssrc/syssrc/sys/arch/macppc/compile/LCOMP3 macppc
>Description:
This package installs LinuxPPC libraries. It is intended to be used
with the yet-still-experimental LINUX_COMPAT option for powerpc.
Note that pkglint will complain about this package because it has to
handle the Linux ldconfig command. I think this is not a real problem.
>How-To-Repeat:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#%9linuxppc_lib/
#%9linuxppc_lib//Makefile
#%9linuxppc_lib//files
#%9linuxppc_lib//files/md5
#%9linuxppc_lib//files/patch-sum
#%9linuxppc_lib//pkg
#%9linuxppc_lib//pkg/COMMENT
#%9linuxppc_lib//pkg/DESCR
#%9linuxppc_lib//patches
#%9linuxppc_lib//patches/patch-aa
#
echo c - linuxppc_lib/
mkdir -p linuxppc_lib/ > /dev/null 2>&1
echo x - linuxppc_lib//Makefile
sed 's/^X//' >linuxppc_lib//Makefile << 'END-of-linuxppc_lib//Makefile'
X# $NetBSD$
X
XDISTNAME=%9%9linuxppc_lib-2000.q4.1
XCATEGORIES=%9mulators
XMASTER_SITES=%9tp://ftp.linuxppc.org/linuxppc-halloween/software/
XDISTFILES=%9%9glibc-2.1.3-15f.ppc.rpm glib-1.2.8-3.ppc.rpm \
X%9%9%9%9%9libjpeg-6b-13.ppc.rpm libpng-1.0.5-3.ppc.rpm \
X%9%9%9%9%9libstdc++-2.10.0-2n.ppc.rpm libtermcap-2.0.8-20.ppc.rpm \
X%9%9%9%9%9libtiff-3.5.5-2.ppc.rpm XFree86-libs-3.3.6-20b.ppc.rpm \
X%9%9%9%9%9zlib-1.1.3-6.ppc.rpm aalib-1.2-1.ppc.rpm \
X%9%9%9%9%9gnome-libs-1.2.8-0_helix_1.ppc.rpm imlib-1.9.8-4.ppc.rpm \
X%9%9%9%9%9krb5-libs-1.1.1-25.ppc.rpm ldconfig-1.9.5-16.ppc.rpm \
X%9%9%9%9%9libelf-0.6.4-4.ppc.rpm libghttp-1.0.7-0_helix_1.ppc.rpm \
X%9%9%9%9%9libglade-0.11-1.ppc.rpm libgtop-1.0.6-1.ppc.rpm \
X%9%9%9%9%9libjpeg6a-6a-5.ppc.rpm libpcap-0.4-19.ppc.rpm \
X%9%9%9%9%9librep-0.13.2-0_helix_1.ppc.rpm xpm-3.4k-1.ppc.rpm \
X%9%9%9%9%9libsigc++-1.0.1-0_helix_1.ppc.rpm
X
XMAINTAINER=%9%9p99dreyf@criens.u-psud.fr
XHOMEPAGE=%9%9http://www.linuxppc.org/
X
XBUILD_DEPENDS+=%9%9rpm2cpio:../../misc/rpm
X
XONLY_FOR_PLATFORM=%9NetBSD-*-macppc NetBSD-*-powerpc NetBSD-*-prep \
X%9%9%9%9%9%9%9NetBSD-*-bebox NetBSD-*-ofppc NetBSD-*-amigappc
X
XSHLIB_HANDLING=NO
XCHECK_SHLIBS=%9NO
XWRKSRC=%9%9%9${WRKDIR}/linuxppc_lib-2000.q4.1
XDIST_SUBDIR=%9linuxppc_lib
XPLIST_SRC=%9%9${WRKDIR}/PLIST_DYNAMIC
X
XRPMFILES=%9%9${DISTFILES}
XRPM2CPIO=%9${PREFIX}/bin/rpm2cpio
XCPIO=%9%9pio
XSORT=%9%9%9sort
XEMUL_LINUX=mul/linux
X
Xdo-extract:
X%9${MKDIR} ${WRKSRC}
Xd ${WRKSRC}; for i in ${RPMFILES}; do \
X%9%9${ECHO} -n "Extracting $$i... " ; \
X%9%9${RPM2CPIO} ${DISTDIR}/${DIST_SUBDIR}/$$i | ${CPIO} -u -d -i ;\
Xone ; \
X
Xdo-build:
X%9${RM}%9-f ${WRKSRC}/etc/*.orig
X
Xdo-install:
X%9${RM} -f ${WRKDIR}/PLIST_DYNAMIC
X%9${MKDIR} ${PREFIX}/${EMUL_LINUX}
Xor d in `${FIND} ${WRKSRC}/etc -type d | ${SORT} -r`; do \
X%9%9target=`${ECHO} $$d | ${SED} 's|${WRKSRC}|${PREFIX}/${EMUL_LINUX}|'`; \
X%9iles=`${LS} -l $$d | \
X%9%9%9%9${AWK} -v d=$$d '{if ($$0~/^-/) {print d "/" $$9}}'` ; \
X%9%9links=`${LS} -l $$d | \
X%9%9%9%9${AWK} -v d=$$d '{if ($$0~/^l/) {print d "/" $$9}}'` ; \
X%9%9${MKDIR} $$target ; \
X%9%9if [ "x$$links" != "x" ] ; then \
X%9%9%9${ECHO} "$$links" ; \
X%9%9or l in $$links ; do \
X%9%9%9%9name=`${ECHO} $$l | ${SED} 's|^.*/\([^/]*\)$$|\1|'` ; \
X%9%9%9%9${LN} -sf `${LS} -l $$l | ${AWK} '{print $$11}'` $$target/$$name ; \
X%9%9one ; \
X%9%9%9${ECHO} $$links | ${SED} 's|${WRKSRC}|${EMUL_LINUX}|g' | \
X%9%9%9%9${TR} ' ' '\n' >> ${WRKDIR}/PLIST_DYNAMIC ; \
X%9i; \
X%9%9if [ "x$$files" != "x" ] ; then \
X%9%9%9${ECHO} "$$files" ; \
X%9%9%9${INSTALL} -c -o root -g wheel -m 644 $$files $$target/ ; \
X%9%9%9${ECHO} $$files | ${SED} 's|${WRKSRC}|${EMUL_LINUX}|g' | \
X%9%9%9%9${TR} ' ' '\n' >> ${WRKDIR}/PLIST_DYNAMIC ; \
X%9i; \
X%9%9${ECHO} $$target | ${SED} 's|${PREFIX}/|@dirrm |' >> \
X%9%9%9${WRKDIR}/PLIST_DYNAMIC ; \
Xone;
Xor d in `${FIND} ${WRKSRC}/lib ${WRKSRC}/usr/lib \
X%9%9%9%9${WRKSRC}/usr/X11R6/lib ${WRKSRC}/usr/kerberos/lib \
X%9%9%9%9${WRKSRC}/usr/share -type d | ${SORT} -r`; do \
X%9%9target=`${ECHO} $$d | ${SED} 's|${WRKSRC}|${PREFIX}/${EMUL_LINUX}|'`; \
X%9iles=`${LS} -l $$d | \
X%9%9%9%9${AWK} -v d=$$d '{if ($$0~/^-/) {print d "/" $$9}}'` ; \
X%9%9links=`${LS} -l $$d | \
X%9%9%9%9${AWK} -v d=$$d '{if ($$0~/^l/) {print d "/" $$9}}'` ; \
X%9%9${MKDIR} $$target ; \
X%9%9if [ "x$$links" != "x" ] ; then \
X%9%9%9${ECHO} "$$links" ; \
X%9%9or l in $$links ; do \
X%9%9%9%9name=`${ECHO} $$l | ${SED} 's|^.*/\([^/]*\)$$|\1|'` ; \
X%9%9%9%9${LN} -sf `${LS} -l $$l | ${AWK} '{print $$11}'` $$target/$$name ; \
X%9%9one ; \
X%9%9%9${ECHO} $$links | ${SED} 's|${WRKSRC}|${EMUL_LINUX}|g' | \
X%9%9%9%9${TR} ' ' '\n' >> ${WRKDIR}/PLIST_DYNAMIC ; \
X%9i; \
X%9%9if [ "x$$files" != "x" ] ; then \
X%9%9%9${ECHO} "$$files" ; \
X%9%9%9${INSTALL} -c -o root -g wheel -m 755 $$files $$target/ ; \
X%9%9%9${ECHO} $$files | ${SED} 's|${WRKSRC}|${EMUL_LINUX}|g' | \
X%9%9%9%9${TR} ' ' '\n' >> ${WRKDIR}/PLIST_DYNAMIC ; \
X%9i ; \
X%9%9${ECHO} $$target | ${SED} 's|${PREFIX}/|@dirrm |' >> \
X%9%9%9${WRKDIR}/PLIST_DYNAMIC ; \
Xone;
X%9${INSTALL} -c -o root -g wheel -m 755 ${WRKSRC}/sbin/ldconfig \
X%9%9${PREFIX}/sbin/ldconfig-linux
X%9${ECHO} "sbin/ldconfig-linux" >> ${WRKDIR}/PLIST_DYNAMIC
X%9${TOUCH} ${PREFIX}/${EMUL_LINUX}/etc/ld.so.cache~
X%9${PREFIX}/sbin/ldconfig-linux -v | \
X%9%9${SED} -n '/^\/.*:$$/h; /(changed)$$/{G; \
X%9%9s|[[:blank:]]\([^ ]\{1,\}\) =>.*\n/\(.*\):$$|${EMUL_LINUX}/\2/\1|p;}' \
X%9%9>> ${WRKDIR}/PLIST_DYNAMIC
X%9${ECHO} "${EMUL_LINUX}/etc/ld.so.cache" >> ${WRKDIR}/PLIST_DYNAMIC
X%9${SORT} -r ${WRKDIR}/PLIST_DYNAMIC > ${WRKDIR}/PLIST_DYNAMIC.sorted
X%9${MV} ${WRKDIR}/PLIST_DYNAMIC.sorted ${WRKDIR}/PLIST_DYNAMIC
X
X.include "../../mk/bsd.pkg.mk"
END-of-linuxppc_lib//Makefile
echo c - linuxppc_lib//files
mkdir -p linuxppc_lib//files > /dev/null 2>&1
echo x - linuxppc_lib//files/md5
sed 's/^X//' >linuxppc_lib//files/md5 << 'END-of-linuxppc_lib//files/md5'
X$NetBSD$
X
XMD5 (linuxppc_lib/glibc-2.1.3-15f.ppc.rpm) = d6987ba1c4327776b09ba3771b0ddfe9
XMD5 (linuxppc_lib/glib-1.2.8-3.ppc.rpm) = 95e9ef3aa57bf1b3096cd71c25568c8c
XMD5 (linuxppc_lib/libjpeg-6b-13.ppc.rpm) = e4d144b38459fa5dc93a04c5106fd17f
XMD5 (linuxppc_lib/libpng-1.0.5-3.ppc.rpm) = 569e1ce68577705028b6067f262aaa7f
XMD5 (linuxppc_lib/libstdc++-2.10.0-2n.ppc.rpm) = b3f590e7641f4be9a794474d8266603d
XMD5 (linuxppc_lib/libtermcap-2.0.8-20.ppc.rpm) = 815c427badcd8c0cb1be80f713213fcc
XMD5 (linuxppc_lib/libtiff-3.5.5-2.ppc.rpm) = bf5ca3261e0cc00205768fc77021b5e6
XMD5 (linuxppc_lib/XFree86-libs-3.3.6-20b.ppc.rpm) = b822ccc11675a2afd258a33050d4da15
XMD5 (linuxppc_lib/zlib-1.1.3-6.ppc.rpm) = 48c9234f85e7ba494e44a559498cb145
XMD5 (linuxppc_lib/aalib-1.2-1.ppc.rpm) = 5921b4d6a7f592d43be71b1cf67c7fef
XMD5 (linuxppc_lib/gnome-libs-1.2.8-0_helix_1.ppc.rpm) = 81289164c4c46421ec0a69f0a8c2dc60
XMD5 (linuxppc_lib/imlib-1.9.8-4.ppc.rpm) = aef99372932bbc8b88a4d63ec6d42c68
XMD5 (linuxppc_lib/krb5-libs-1.1.1-25.ppc.rpm) = 2694ed9272adc4749c0296472697dff8
XMD5 (linuxppc_lib/ldconfig-1.9.5-16.ppc.rpm) = 120aa77bf0306e55ffa928c97112e96f
XMD5 (linuxppc_lib/libelf-0.6.4-4.ppc.rpm) = 99d0ed6ec2b6597d432657e288894669
XMD5 (linuxppc_lib/libghttp-1.0.7-0_helix_1.ppc.rpm) = be67854c2a57c60713a533fc4d22aa55
XMD5 (linuxppc_lib/libglade-0.11-1.ppc.rpm) = 4d67459d17864f532cfc69db46cf0411
XMD5 (linuxppc_lib/libgtop-1.0.6-1.ppc.rpm) = 76395f824b2a98aea6e2949f4e032f63
XMD5 (linuxppc_lib/libjpeg6a-6a-5.ppc.rpm) = c11d224c80f4890f382fdfbcc4655b1d
XMD5 (linuxppc_lib/libpcap-0.4-19.ppc.rpm) = 82d113d6d78baa41c1b2551a30849113
XMD5 (linuxppc_lib/librep-0.13.2-0_helix_1.ppc.rpm) = a0ff7bf81626fb63055566a267551968
XMD5 (linuxppc_lib/xpm-3.4k-1.ppc.rpm) = 1a4a7d34561732c4e8b2fcee5cc69afa
XMD5 (linuxppc_lib/libsigc++-1.0.1-0_helix_1.ppc.rpm) = 2d41e23ffc3c62345957325989361ef8
END-of-linuxppc_lib//files/md5
echo x - linuxppc_lib//files/patch-sum
sed 's/^X//' >linuxppc_lib//files/patch-sum << 'END-of-linuxppc_lib//files/patch-sum'
X$NetBSD$
X
XMD5 (patch-aa) = 9a053c202c6fed843490faeadabe42ed
END-of-linuxppc_lib//files/patch-sum
echo c - linuxppc_lib//pkg
mkdir -p linuxppc_lib//pkg > /dev/null 2>&1
echo x - linuxppc_lib//pkg/COMMENT
sed 's/^X//' >linuxppc_lib//pkg/COMMENT << 'END-of-linuxppc_lib//pkg/COMMENT'
Xlibraries to run Linux binaries on NetBSD/powerpc (includes X11)
END-of-linuxppc_lib//pkg/COMMENT
echo x - linuxppc_lib//pkg/DESCR
sed 's/^X//' >linuxppc_lib//pkg/DESCR << 'END-of-linuxppc_lib//pkg/DESCR'
XThese libraries are part of the Linux compatibility options
Xfor NetBSD/powerpc.
X
XThe kernel option `COMPAT_LINUX' needs to be in your kernel config
Xfile for this to work as well.
END-of-linuxppc_lib//pkg/DESCR
echo c - linuxppc_lib//patches
mkdir -p linuxppc_lib//patches > /dev/null 2>&1
echo x - linuxppc_lib//patches/patch-aa
sed 's/^X//' >linuxppc_lib//patches/patch-aa << 'END-of-linuxppc_lib//patches/patch-aa'
X$NetBSD$
X+++ etc/ld.so.conf%9Sun Jan 14 22:30:05 2001
X@@ -0,0 +1,4 @@
X+/lib
X+/usr/lib
X+/usr/local/lib
X+/usr/X11R6/lib
END-of-linuxppc_lib//patches/patch-aa
exit
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: