# # Prototype file for the glibc-debug package # # Package specific information for glibc-debug PROGNAME="GNU C Library, Runtime Support" DESC="\ glibc-debug (GNU C libraries with debugging symbols) \n\ \n\ This package contains versions of the GNU C libraries with debugging \n\ information. These are needed only if you wish to be able to step \n\ through C library routines while debugging programs. Most debugging \n\ efforts will not require these. \n\ To use these libraries, set LD_LIBRARY_PATH when calling the debugger: \n\ LD_LIBRARY_PATH=/usr/lib/debug gdb \n\ \n\ Or, use this approach if you need to debug a setuid binary: \n\ su user -c ""LD_LIBRARY_PATH=/usr/lib/debug gdb """ # package name SUBPKGNAME=glibc-debug-$VERSION-s390-$BUILD TAG=ADD subinstall() { ### install glibc to the fake tree cd $TMP/glibc-$VERSION/build-glibc-$VERSION make install install_root=/package-glibc ### remove the stuff we don't want ( cd /package-glibc mkdir usr/lib/debug mv lib/* usr/lib/debug rmdir lib/ rm usr/lib/*.o rm usr/lib/libc.so rm usr/lib/*_p.a mv usr/lib/*.a usr/lib/debug/ rm usr/lib/*.so rm -rf etc \ install \ sbin for d in bin doc include info lib/gconv libexec man sbin share do rm -rf usr/$d done rm usr/lib/debug/ld.so.1 # We have to rebuild this symlinks, otherwise they wind up pointing to ../../lib/ ( cd usr/lib/debug rm -rf ld-linux.so.2 ; ln -sf ld-$VERSION.so ld-linux.so.2 rm -rf libBrokenLocale.so.1 ; ln -sf libBrokenLocale-$VERSION.so libBrokenLocale.so.1 rm -rf libanl.so.1 ; ln -sf libanl-$VERSION.so libanl.so.1 rm -rf libcrypt.so.1 ; ln -sf libcrypt-$VERSION.so libcrypt.so.1 rm -rf libdl.so.2 ; ln -sf libdl-$VERSION.so libdl.so.2 rm -rf libnss_compat.so.2 ; ln -sf libnss_compat-$VERSION.so libnss_compat.so.2 rm -rf libnss_dns.so.2 ; ln -sf libnss_dns-$VERSION.so libnss_dns.so.2 rm -rf libnss_files.so.2 ; ln -sf libnss_files-$VERSION.so libnss_files.so.2 rm -rf libnss_hesiod.so.2 ; ln -sf libnss_hesiod-$VERSION.so libnss_hesiod.so.2 rm -rf libnss_nisplus.so.2 ; ln -sf libnss_nisplus-$VERSION.so libnss_nisplus.so.2 rm -rf libresolv.so.2 ; ln -sf libresolv-$VERSION.so libresolv.so.2 rm -rf librt.so.1 ; ln -sf librt-$VERSION.so librt.so.1 rm -rf libthread_db.so.1 ; ln -sf libthread_db-1.0.so libthread_db.so.1 rm -rf libutil.so.1 ; ln -sf libutil-$VERSION.so libutil.so.1 ) ) } subspecial() { cd $SUBPKG/ ### move everything out of /package-glibc mv package-glibc/* ./ rmdir package-glibc/ ### make our new doinst.sh script cd $SUBCTL cat $CWD/slack-desc.glibc-debug > slack-desc ### Remove instances of /package-glibc from the doinst.sh script sed -e 's%package-glibc/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new ### we don't want this left around rm -rf /package-glibc }