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

Bug#517076: Regresion on mangling libraries on dpkg-cross



On Wed, 25 Feb 2009 14:21:59 +0100
Hector Oron <hector.oron@gmail.com> wrote:

> Package: dpkg-cross
> Version: 2.4.0
> Severity: important
> reopen 426333

Umm, what you've actually done there, Hector, is create a new bug
instead. It's OK, because although the symptom appears the same, the
cause is different. The patch from 426333 is in place in dpkg-cross, it
is probably a later change that causes this one.

(To reopen an old bug, you need to first unarchive it with a message to
control@b.d.o instead of using submit@b.d.o - see bts (1).)

> 
> When dpkg-cross-ing libc6-ppc64 to be used on amd64 architecture:
> 
> # dpkg -c powerpc/libc6-ppc64-powerpc-cross_2.7-18_all.deb
> drwxr-xr-x root/root         0 2009-02-25 12:38 ./
> drwxr-xr-x root/root         0 2009-02-25 12:38 ./usr/
> drwxr-xr-x root/root         0 2009-02-25 12:38 ./usr/share/
> drwxr-xr-x root/root         0 2009-02-25 12:38 ./usr/share/doc/
> drwxr-xr-x root/root         0 2009-02-25 12:38
> ./usr/share/doc/libc6-ppc64-powerpc-cross/
> -rw-r--r-- root/root       278 2009-02-25 12:38
> ./usr/share/doc/libc6-ppc64-powerpc-cross/README
> 

I think this is actually a typo - please test this patch:

--- tmp/tmpvhD10f-meld/dpkg-cross 
+++ opt/working/dpkg-cross/dpkg-cross 
@@ -794,7 +794,7 @@
 			} else {
 				next;
 			}
-		} elsif (m:/^(/usr(/X11R6)?)?/lib64/([^/]+\.so[^/]*)$/:) {
+		} elsif (m:^(/usr(/X11R6)?)?/lib64/([^/]+\.so[^/]*)$:) {
 			# regular .so* file under /lib64, /usr/lib64 or /usr/X11R6/lib64
 			if (is_ldscript("$src$_")) {
 				fix_ldscript("$src$_", "$dst$crosslib64/$3") or goto fail;

For me, this results in:
$ dpkg -c test/libc6-ppc64-powerpc-cross_2.9-3_all.deb 

drwxr-xr-x root/root         0 2009-02-25 13:59 ./
drwxr-xr-x root/root         0 2009-02-25 13:59 ./usr/
drwxr-xr-x root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/
drwxr-xr-x root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/
-rw-r--r-- root/root     27360 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libnss_dns-2.9.so
-rw-r--r-- root/root     27888 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libnss_hesiod-2.9.so
-rw-r--r-- root/root    127664 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libnsl-2.9.so
-rw-r--r-- root/root    792336 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libm-2.9.so
-rw-r--r-- root/root     14752 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libSegFault.so
-rw-r--r-- root/root     48648 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libcrypt-2.9.so
-rwxr-xr-x root/root   1818632 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libc-2.9.so
-rw-r--r-- root/root      6456 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libBrokenLocale-2.9.so
-rw-r--r-- root/root    195664 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libcidn-2.9.so
-rw-r--r-- root/root     23360 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libmemusage.so
-rwxr-xr-x root/root    158246 2009-02-23 01:31 ./usr/powerpc-linux-gnu/lib64/libpthread-2.9.so
-rw-r--r-- root/root     45280 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libnss_compat-2.9.so
-rw-r--r-- root/root     41752 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libthread_db-1.0.so
-rw-r--r-- root/root     19696 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libdl-2.9.so
-rw-r--r-- root/root     58104 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libnss_nis-2.9.so
-rw-r--r-- root/root     70648 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libnss_nisplus-2.9.so
-rwxr-xr-x root/root    189904 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/ld-2.9.so
-rw-r--r-- root/root    104752 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libresolv-2.9.so
-rw-r--r-- root/root     15264 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libanl-2.9.so
-rw-r--r-- root/root     10520 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libpcprofile.so
-rw-r--r-- root/root     45968 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/librt-2.9.so
-rw-r--r-- root/root     14800 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libutil-2.9.so
-rw-r--r-- root/root     62096 2009-02-23 01:30 ./usr/powerpc-linux-gnu/lib64/libnss_files-2.9.so
drwxr-xr-x root/root         0 2009-02-25 13:59 ./usr/share/
drwxr-xr-x root/root         0 2009-02-25 13:59 ./usr/share/doc/
drwxr-xr-x root/root         0 2009-02-25 13:59 ./usr/share/doc/libc6-ppc64-powerpc-cross/
-rw-r--r-- root/root       278 2009-02-25 13:59 ./usr/share/doc/libc6-ppc64-powerpc-cross/README
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libnss_files.so.2 -> libnss_files-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libm.so.6 -> libm-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libnss_compat.so.2 -> libnss_compat-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libnss_hesiod.so.2 -> libnss_hesiod-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libanl.so.1 -> libanl-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libthread_db.so.1 -> libthread_db-1.0.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libBrokenLocale.so.1 -> libBrokenLocale-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libnss_dns.so.2 -> libnss_dns-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/ld64.so.1 -> ld-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libpthread.so.0 -> libpthread-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libresolv.so.2 -> libresolv-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libc.so.6 -> libc-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libnsl.so.1 -> libnsl-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/librt.so.1 -> librt-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libnss_nisplus.so.2 -> libnss_nisplus-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libcidn.so.1 -> libcidn-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libcrypt.so.1 -> libcrypt-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libnss_nis.so.2 -> libnss_nis-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libutil.so.1 -> libutil-2.9.so
lrwxrwxrwx root/root         0 2009-02-25 13:59 ./usr/powerpc-linux-gnu/lib64/libdl.so.2 -> libdl-2.9.so

Please test with the older version you described.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/

Attachment: pgpTaMGEVqdnj.pgp
Description: PGP signature


Reply to: