Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224223 - www-plugins/mozplugger-1.10.2 will not install with paludis
Summary: www-plugins/mozplugger-1.10.2 will not install with paludis
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-30 12:15 UTC by Harris Landgarten
Modified: 2010-07-24 04:45 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2008-05-30 12:15:23 UTC
... When installing 'net-www/mozplugger-1.10.2:0::gentoo':
  ... When merging 'net-www/mozplugger-1.10.2:0::gentoo' at '/var/tmp/paludis/net-www-mozplugger-1.10.2/image' to VDB repository 'installed':
  ... When checking merge from '/var/tmp/paludis/net-www-mozplugger-1.10.2/image' to '/':
  ... When checking merge from '/var/tmp/paludis/net-www-mozplugger-1.10.2/image' to '/':
  ... When checking merge from '/var/tmp/paludis/net-www-mozplugger-1.10.2/image/usr' to '/usr':
  ... When handling dir '/var/tmp/paludis/net-www-mozplugger-1.10.2/image/usr/lib' to '/usr':
  ... Expected '/usr/lib' to be a directory but found a symlink to a directory
...
!!! Cannot overwrite directory '/usr/lib/mozilla/plugins' with symlink '/var/tmp/paludis/net-www-mozplugger-1.10.2/image/usr/lib/mozilla/plugins'


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-31 15:26:22 UTC
Seems like paludis doesn't like

 dosym ${1} /usr/$(get_libdir)/${PLUGINS_DIR}

from eclass/nsplugins.eclass
Comment 2 Bo Ørsted Andresen (RETIRED) gentoo-dev 2008-06-02 17:05:10 UTC
Not a paludis bug.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-02 17:26:16 UTC
Let's try again. If you cannot accept that the bug has something to do with paludis, then at least you can explain where eclass/nsplugins.eclass fails to meet some standard.
Comment 4 Bo Ørsted Andresen (RETIRED) gentoo-dev 2008-06-02 19:02:05 UTC
Overwriting a dir with a symlink is unsafe. That should be a fatal error. Either the user needs to get rid of the dir before merging the package in question or the ebuild needs to handle it in pkg_preinst. What is the output of paludis --full-match --owner /usr/lib/mozilla/plugins ?
Comment 5 Jaak Ristioja 2009-03-19 14:36:42 UTC
Emerging that version of mozplugger also results in a file collison ("/usr/lib/mozilla/plugins") with gnome-base/librsvg-2.22.3.
Comment 6 Siuchung Cheung (Clement) 2009-03-22 04:21:06 UTC
The issue went away for me after upgrading to the latest librsvg-2.22.3 using paludis.

Not sure what's going on here. But qfile originally report the dir to be owned by librsvg. After paludis librsvg upgrade, it says no one is owning it. After mozplugger is installed, the two packages seem to agree on a joint ownership:

blessing /home/clement # qfile /usr/lib/mozilla/plugins
gnome-base/librsvg (/usr/lib64/mozilla/plugins)
net-www/mozplugger (/usr/lib64/mozilla/plugins)

blessing /home/clement # paludis --full-match --owner /usr/lib/mozilla/plugins
* /usr/lib/mozilla/plugins

blessing /home/clement # paludis --full-match --owner /usr/lib64/mozilla/plugins
* /usr/lib64/mozilla/plugins
    gnome-base/librsvg-2.22.3:2::installed
    net-www/mozplugger-1.10.2:0::installed

And they lived happily ever after:
blessing /home/clement # paludis --query librsvg mozplugger
* gnome-base/librsvg                                       
    gentoo:                  2.20.0 2.22.2 2.22.3 {:2}     
    installed:               2.22.3* {:2}                  
    Description:             Scalable Vector Graphics (SVG) rendering library
    Homepage:                http://librsvg.sourceforge.net/                 
    License:                 LGPL-2                                          
    Installed time:          Sun Mar 22 03:57:18 2009                        
    Use flags:               (-debug) (-doc) (zlib)                          
    From repositories:       gentoo                                          
    Installed using:         paludis-0.36.0                                  

* net-www/mozplugger
    gentoo:                  1.7.3-r1(~) 1.10.2(~) {:0}
    installed:               1.10.2* {:0}
    Description:             Streaming media plugin for Mozilla, based on netscape-plugger
    Homepage:                http://mozplugger.mozdev.org/
    License:                 GPL-2
    Installed time:          Sun Mar 22 03:58:22 2009
    Use flags:
    From repositories:       gentoo
    Installed using:         paludis-0.36.0

Key to mask reasons:

* ~: keyword (unstable accepted)

Comment 7 Jaak Ristioja 2010-04-05 13:42:56 UTC
And reason for resolving this as INVALID was ...?
Comment 8 Andreas Stangl 2010-07-22 21:38:54 UTC
(In reply to comment #7)
> And reason for resolving this as INVALID was ...?
> 
Maybe because this is a typical “use Portage instead” bug? ;-)

I had the same issue with www-plugins/mozplugger-1.14.0 and paludis 0.48.5 and and "emerge mozplugger" solved it (but I'll keep on using paludis because I really like it).

/usr/lib has always been a symlink to /usr/lib64 on my box since I use amd64 - can anybody please explain why "Overwriting a dir with a symlink is unsafe." and why this must be an error and not just a warning?

As I never had this issue before with any other package I blame it on the ebuild.
Comment 9 Bo Ørsted Andresen 2010-07-23 09:17:59 UTC
(In reply to comment #8)
> Maybe because this is a typical “use Portage instead” bug? ;-)

Using portage is potentially dangerous. What happens to the contents of a directory when the directory is overwritten with a symlink? The behaviour is undefined.

> /usr/lib has always been a symlink to /usr/lib64 on my box since I use amd64 -
> can anybody please explain why "Overwriting a dir with a symlink is unsafe."
> and why this must be an error and not just a warning?

We're not talking about merging over a symlink here. We're talking about replacing a directory with a symlink.

> As I never had this issue before with any other package I blame it on the
> ebuild.

If librsvg still installs this directory there is a collision which needs to be resolved. If librsvg stopped installing a directory and mozplugger needs to replace it with a symlink then the proper way of handling the migration is a pkg_preinst() which takes care of the directory if it exists.
Comment 10 Jory A. Pratt gentoo-dev 2010-07-24 04:44:50 UTC
cause I can :)
Comment 11 Jory A. Pratt gentoo-dev 2010-07-24 04:45:14 UTC
Everything should install fine now, if bug resurfaces feel free to reopen.