[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#348942: mklibs should ignore .la files.



Subject: mklibs should ignore .la files.
Package: mklibs
Version: 0.1.20
Severity: normal
Tags: patch, d-i

*** Please type your report below this line ***

Well, mklibs should probably ignore .la files, as it ignores .so and.sh
and other such files. Not sure, but it dies saying that readelf can't
handle .la files, which seems logical since la files are plain text
files.

Attached is a patch, which allows me to build, but i am far from certain
this is the right thing to do.

Friendly,

Sven Luther

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages mklibs depends on:
ii  binutils             2.16.1cvs20051214-1 The GNU assembler, linker and bina
ii  gcc                  4:4.0.2-2           The GNU C compiler
ii  python2.4            2.4.2-2             An interactive high-level object-o

Versions of packages mklibs recommends:
ii  libc6-pic                     2.3.5-12   GNU C Library: PIC archive library

-- no debconf information
--- /usr/bin/mklibs.orig	2006-01-19 23:22:39.000000000 +0000
+++ /usr/bin/mklibs	2006-01-19 23:24:36.000000000 +0000
@@ -253,6 +253,7 @@
 target = ""
 root = ""
 so_pattern = re.compile("((lib|ld).*)\.so(\..+)*")
+la_pattern = re.compile("(.*)\.la(\..+)*")
 script_pattern = re.compile("^#!\s*/")
 
 try:
@@ -301,6 +302,8 @@
         debug(DEBUG_SPAM, prog, "is a hardlink to", objects[inode])
     elif so_pattern.match(prog):
         debug(DEBUG_SPAM, prog, "is a library")
+    elif la_pattern.match(prog):
+        debug(DEBUG_SPAM, prog, "is a library archive")
     elif script_pattern.match(open(prog).read(256)):
         debug(DEBUG_SPAM, prog, "is a script")
     else:

Reply to: