reassign 581807 gecko-mediaplayer 0.9.9.2-1
retitle 581807 cannot unpack with /usr/lib/firefox/plugins -> 
../mozilla/plugins symlink
quit

Hi Cesare,

Brandon reported trouble unpacking the latest version of gecko-mediaplayer.
The package contents include

  /usr/lib/mozilla/plugins/gecko-mediaplayer.so (a file)
  /usr/lib/firefox/plugins/gecko-mediaplayer.so -> 
../../mozilla/plugins/gecko-mediaplayer.so (a symlink)

Unfortunately, some setups include a symlink that makes these paths the
same.  The symptoms are different depending on the dpkg version used to
unpack:

 1. Old dpkg versions unpack the file first, then the symlink.  So
    in the end, there is no usable gecko-mediaplayer.so plugin,
    just a self-referential symlink!

 2. Newer dpkg versions unpack everything to temporary files (with
    names ending in .dpkg-new) first.  First comes the file, then the
    symlink overwrites it.

    Then it renames them all into place: first the symlink is renamed
    in mozilla/plugins, then it is found missing in firefox/plugins.

So old dpkg versions produce a broken installation, and new ones at
least complain.

I suspect the simplest solution would be to not ship the
/usr/lib/firefox/plugins/....so file at all, but to create the symlink
if needed in the postinst script.

Brandon wrote:

> Unfortunately, the improper symlink was on my end:
> $ ls -ld /usr/lib/firefox/plugins
> lrwxrwxrwx 1 root root 18 Mar 10 04:10 /usr/lib/firefox/plugins -> 
> ../mozilla/plugins

Could you say more about how this symlink arose?  I have faint
memories of such a symlink long ago, but it’s been a while since I
used Firefox.

Thanks for the help,
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to