Bug#365227: detect libc.so.0.1 (kfreebsd-i386 and kfreebsd-amd64)
Package: mklibs
Version: 0.1.20+kbsd
Severity: normal
Tags: patch
Patch attached to detect libc.so.0.1 as well as .6 and .6.1. This is needed
for GNU/kFreeBSD.
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 6.0-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages mklibs depends on:
ii binutils 2.16.1cvs20060413-1 The GNU assembler, linker and bina
ii gcc 4:4.0.2-2 The GNU C compiler
ii python2.4 2.4.1-4+kbsd An interactive high-level object-o
Versions of packages mklibs recommends:
ii libc0.1-pic [glibc-pic] 2.3.6-7 GNU C Library: PIC archive library
-- no debconf information
diff -ur mklibs-0.1.20.old/debian/control mklibs-0.1.20/debian/control
--- mklibs-0.1.20.old/debian/control 2005-11-05 15:30:50.000000000 +0100
+++ mklibs-0.1.20/debian/control 2006-04-28 17:22:26.000000000 +0200
@@ -9,7 +9,7 @@
Package: mklibs
Architecture: all
Depends: python2.4, binutils, gcc
-Recommends: libc6-pic | libc6.1-pic
+Recommends: libc6-pic | glibc-pic
Description: Shared library reduction script
mklibs produces cut-down shared libraries that contain only the
routines required by a particular set of executables. This is
diff -ur mklibs-0.1.20.old/src/mklibs.py mklibs-0.1.20/src/mklibs.py
--- mklibs-0.1.20.old/src/mklibs.py 2006-01-10 19:27:17.000000000 +0100
+++ mklibs-0.1.20/src/mklibs.py 2006-04-28 17:24:21.000000000 +0200
@@ -481,7 +481,7 @@
symbols = []
# libc.so.6 needs its soinit.o and sofini.o as well as the pic
- if (soname == "libc.so.6" or soname == "libc.so.6.1"):
+ if (soname == "libc.so.6" or soname == "libc.so.6.1" or soname == "libc.so.0.1"):
# force dso_handle.os to be included, otherwise reduced libc
# may segfault in ptmalloc_init due to undefined weak reference
extra_flags = find_lib(ldlib)
Reply to: