In the interests of minimizing the redundant libraries on my system, I created this patch to the gaim-0.72-r1.ebuild. It checks for the presence of net-www/mozilla, and will use its nss and nspr, rather than installing the separate versions.
Created attachment 20985 [details, diff] gaim-0.72.ebuild.diff This patch implements some rather simple modifications to the ebuild. They use the abilities of portage to selectively include or exclude dependencies.
Fantastic idea. I'll test it out and bounce it off of lostlogic.
Working this in. FYI ebuilds must have actual tabs for indentation, no spaces. Thanks.
Switched your logic in the DEPENDS clause. The way it was listed, if neither mozilla nor nss were installed, gaim would depend on mozilla. lostlogic and I agree that it should just depend on nss.
gaim-0.72-r2 is now in portage. Thanks.
When I tried it that way in my testing, portage kept wanting to install nss on top of my mozilla install. If it still needs nss to be installed, on top of mozilla, then the patch kind of loses it raison d'etre. Re: tabs. In the future I'll make sure to use tabs in my ebuilds. Thanks for the tip.
Eh I'll reopen this then. Well we definitely want to choose nss over mozilla if neither is installed, so we definitely didn't lose anything yet. Just need to get the logic down for seeing mozilla.
Hmm... I had an earlier idea to make dev-libs/nss and net-www/mozilla provide a virtual/nss, which the gaim ebuild (as well as any other ebuild that needs nss) could depend upon. When I suggested it in the past, the mozilla maintainer said that they were looking into rewrite the mozilla ebuild to depend upon dev-libs/nss, sort of like the RPM way of doing things. My research showed that the RPM spec file builds all the nss/nspr libraries as part of building the entire mozilla app. It's only after the build is done that the individual libraries are shoved into the separate RPMs (ie. it's a king-size kludge).
Hmm virtual/nss is a neat idea and would certainly take care of these issues. Otherwise we were looking at some changes for Bug 30071 but those turned out to be more than we bargained for so it more or less is a dead issue right now. I'll ask the mozilla devs about this.
The other, simpler, way to handle things would involve using the mozilla USE flag to select net-www/mozilla over dev-libs/nss.
Yes the mozilla USE flag is a great idea. Working this up now.
This is in CVS and works fine. Installed gaim both ways.