View previous topic :: View next topic |
Author |
Message |
norg Tux's lil' helper
Joined: 23 Aug 2010 Posts: 104 Location: Augsburg (Germany)
|
Posted: Fri Sep 17, 2010 3:36 pm Post subject: Trying to build gnupg ebuild with slots, need some help |
|
|
As i want to have gnupg1 and gnupg2 installed i want to modify the ebuilds to use a local overlay with slots, so i can have both versions installed.
I leave the gnupg-1.4.10 ebuild and i modified the gnupg-2.0.16-r1 ebuild.
The modified version is here:
http://andi.wootstube.de/up/gnupg-2.0.16-r1.ebuild
I change the SLOT value, erased the "!<=app-crypt/gnupg-2.0.1" in RDEPEND and modified the src_install() so that the symlinks are seperated for gpg and gpg2. So this works fine but i have one small issue. When i use "emerge "=gnupg-1.4.10" gnupg" then 1.4.10 is installed fine and 2.0.16-r1, too except one error:
Code: | * This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / <filename>` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). Once again, please do NOT file
* a bug report unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /usr/share/man/man1/gpg-zip.1.bz2
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* app-crypt/gnupg-1.4.10
* /usr/share/man/man1/gpg-zip.1.bz2
*
* Package 'app-crypt/gnupg-2.0.16-r1' NOT merged due to file collisions.
* If necessary, refer to your elog messages for the whole content of the
* above message. |
If i remove the gpg-zip.1.bz2 and reemerge gnupg2 it's working and all my apps are working as i want them to work (mcabber, enigmail etc.) as i have now gpg1 and gpg2 installed.
So how can fix this, without ignoring the collision? Is there a way to let emerge install the gpg-zip1 from gnupg2 to gpg2-zip1 so that both exist? I played around with the "echo ".so man1/gpg-zip.1" > "${ED}usr/share/man/man1/gpg2-zip.1"" but this didn't help. |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1658
|
Posted: Fri Sep 17, 2010 10:05 pm Post subject: |
|
|
How creative I love it.
It is just the man page you don't need that file in the older version.
Patch you other ebuild to not install the man pages. _________________ Donate to Gentoo |
|
Back to top |
|
|
norg Tux's lil' helper
Joined: 23 Aug 2010 Posts: 104 Location: Augsburg (Germany)
|
Posted: Fri Sep 17, 2010 11:52 pm Post subject: |
|
|
Hmm seems to be a workaround, too. Thanks for the hint.
I'm new to building ebuilds, but as i read the discussion about gnupg and slots i though making it myself would be better.
I just remembered this setting with 2 gnupg versions from debian and archlinux. |
|
Back to top |
|
|
|