From: Sjors G. <mai...@da...> - 2011-06-06 06:04:08
|
Hi Alexander, Op 21 mei 2011, om 19:52 heeft Alexander Hansen het volgende geschreven: > It looks like dpkg-1.15.5.6-9 isn't using the libtool archive (.la file) > cleaning script from dpkg-base files > (/sw/lib/fink/dpkg-base-files/postinst). We need to make sure that this > is employed. You're totally right. I've checked the patches to dpkg-1.10 and dpkg-1.15, and it seems I've left out that hunk or it got lost somewhere. I've re-applied it, and it seems to work nicely: | sjors@smbp:~$ dpkg --list | grep 1.15.5.6 | ii dpkg 1.15.5.6-9 The Debian package manager | sjors@smbp:~$ sudo env LANG=C dpkg -i /sw/fink/dists/unstable/main/binary-darwin-i386/libs/libmpfr4_3.0.1-1_darwin-i386.deb | (Reading database ... 155130 files and directories currently installed.) | Preparing to replace libmpfr4 3.0.1-1 (using .../libmpfr4_3.0.1-1_darwin-i386.deb) ... | Unpacking replacement libmpfr4 ... | Setting up libmpfr4 (3.0.1-1) ... | sjors@smbp:~$ grep dependency /sw/lib/libmpfr.la | # Linker flags that can not go in dependency_libs. | dependency_libs=' -L/sw/lib /sw/lib/gmp5/libgmp.la' | sjors@smbp:~$ sudo env LANG=C dpkg -i /sw/fink/dists/local/main/binary-darwin-i386/newdpkg/dpkg_1.15.5.6-10_darwin-i386.deb | (Reading database ... 155130 files and directories currently installed.) | Preparing to replace dpkg 1.15.5.6-9 (using .../dpkg_1.15.5.6-10_darwin-i386.deb) ... | Unpacking replacement dpkg ... | Setting up dpkg (1.15.5.6-10) ... | sjors@smbp:~$ sudo env LANG=C dpkg -i /sw/fink/dists/unstable/main/binary-darwin-i386/libs/libmpfr4_3.0.1-1_darwin-i386.deb | (Reading database ... 155130 files and directories currently installed.) | Preparing to replace libmpfr4 3.0.1-1 (using .../libmpfr4_3.0.1-1_darwin-i386.deb) ... | Unpacking replacement libmpfr4 ... | Setting up libmpfr4 (3.0.1-1) ... | Clearing dependency_libs of .la files being installed | sjors@smbp:~$ grep dependency /sw/lib/libmpfr.la | # Linker flags that can not go in dependency_libs. | dependency_libs='' Fixed! The new .info + .patch are in my experimental. Thanks! By the way, this whole "remove dependency line from all .la files" sounds to me like it would be a perfect job for another dpkg trigger: both only run on .la files that are created or modified. Especially because the dpkg-base-files currently does nothing apart from this .la cleanup, so it would clean up the apt patch a lot if it is replaced by dpkg triggers. And a cleaned up patch is much easier to maintain, too :) The only contra is that I think only postinst is supported by dpkg triggers, so if someone ever comes up with something to run in preinst, it won't work in triggers. What do you think? > Also, as a side point, the current dlocate doesn't get along with the > new dpkg: > > $ dlocate libgmp.la > /sw/bin/dlocate: line 22: /sw/sbin/dpkg-divert: No such file or directory > /sw/bin/dlocate: line 154: -d: command not found > > so we'd presumably want a newer version of that, too, when the updates > get made. dpkg-divert is now in /sw/bin - there's a good chance the package will still work if you change that path. As a test, does the tool work correctly after you ln -s /sw/bin/dpkg-divert /sw/sbin/dpkg-divert? (Not that an upgrade would be a bad idea - we have 0.5, even Debian Lenny has 0.96...) Sjors |