[maemo-developers] maemo-optify-deb lib symlink problem

From: Jeff Moe moe at blagblagblag.org
Date: Wed Jan 6 00:03:14 EET 2010
I built a simple package that is a plugin for pidgin called pidgin-otr. When I maemo-optify-deb it, it creates a symlink to itself.


* I did the standard easy optification:
echo auto > debian/optify


* The package built/installed fine in scratchbox:
[sbox-FREMANTLE_ARMEL: ~] > ls -l /usr/lib/pidgin/pidgin-otr.so

-rw-r--r--  1 jebba jebba 81072 Jan  5 14:09 /usr/lib/pidgin/pidgin-otr.so


* I removed package.

* I then optified:
[sbox-FREMANTLE_ARMEL: ~] > maemo-optify-deb pidgin-otr_3.2.0-7_armel.deb

pidgin-otr: optified 10 entries, saving about 185 kB.
dpkg-deb: building package `pidgin-otr' in `pidgin-otr_3.2.0-7_armel.deb'.


* I then installed optified package.


[sbox-FREMANTLE_ARMEL: ~] > ls -l /usr/lib/pidgin/pidgin-otr.so

lrwxrwxrwx  1 jebba jebba 39 Jan  5 14:55 /usr/lib/pidgin/pidgin-otr.so -> /opt/maemo/usr/lib/pidgin/pidgin-otr.so


But here is where the problem came in:

[sbox-FREMANTLE_ARMEL: ~] > ls -l /opt/maemo/usr/lib/pidgin/pidgin-otr.so
lrwxrwxrwx  1 jebba jebba 39 Jan  5 14:55 /opt/maemo/usr/lib/pidgin/pidgin-otr.so -> /opt/maemo/usr/lib/pidgin/pidgin-otr.so


The optified file is symlinking to itself, thus breaking the package.

I'll leave this directory here for awhile if someone wants to check it out. It is my live scratchbox:
http://www.freemoe.org/users/jebba/scratchbox/pidgin-otr-OPTIFY_PROB/

The two different .debs for comparison are here:
pidgin-otr_3.2.0-7_armel.deb-NOOPTIFY
pidgin-otr_3.2.0-7_armel.deb-OPTIFY


I made minimal changes to the upstream Sid package. I'm probably doing something dumb, but this has worked easily for other packages.

Thanks,

-Jeff
http://wiki.maemo.org/User:Jebba
More information about the maemo-developers mailing list