[Bug 432909] Re: [karmic upgrade] flashplugin-installer creates bad symlink (amd64)
Peter Cordes
peter at cordes.ca
Tue Nov 3 17:42:28 UTC 2009
Found the broken symlink with cruft(8). I don't use ubufox.
flashplugin-installer.postinst does
for p in $VARIANTS; do
... update-alternatives with /var/lib/....so
ln -sf /usr/lib/flashplugin-installer/npwrapper.libflashplayer.so
/usr/share/ubufox/plugins
Note the /var/lib vs. /usr/lib mixup.
The postinst should put the path in a shell variable, instead of repeating it 4 times (2 times incorrectly, with /usr instead of /var). e.g.
INST_DIR=/var/lib/flashplugin-installer
INST_SO=libflashplayer.so
and use $INST_DIR/npwrapper.$INST_SO when needed.
Maybe.
actually, someone who knows what all the paths are supposed to be should have a look at the script and make sure that other occurrences of /usr/lib/flashplugin-installer are ok. e.g.
NSPLUGIN_DIR=/var/lib/flashplugin-installer/ /usr/bin/nspluginwrapper -n -i /usr/lib/flashplugin-installer/libflashplayer.so
flash works for me, in both firefox and seamonkey, but the postinst is a
bit of a mess with /var/lib vs. /usr/lib
I also noticed that postinst deletes the tar.gz it just downloaded, so it always has to re-download.
This only matters when mucking around, since normally the postinst will only run after an upgrade,
and those will normally come with a new tar.gz to download.
The lines in question are:
fp_download_and_unpack
install -m 644 adobe-flashplugin*/libflashplayer.so /usr/lib/flashplugin-installer/
rm -rf adobe-flashplugin*
the rm -rf could be rm -rf adobe-flashplugin*[^z] to keep the tar.gz, although that's still somewhat brittle and will stop working
if they ever dist a tar.bz2, for example.
** Changed in: flashplugin-nonfree (Ubuntu)
Status: New => Confirmed
--
[karmic upgrade] flashplugin-installer creates bad symlink (amd64)
https://bugs.launchpad.net/bugs/432909
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to flashplugin-nonfree in ubuntu.
More information about the Ubuntu-mozillateam-bugs
mailing list