Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to build gnupg ebuild with slots, need some help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
norg
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2010
Posts: 104
Location: Augsburg (Germany)

PostPosted: Fri Sep 17, 2010 3:36 pm    Post subject: Trying to build gnupg ebuild with slots, need some help Reply with quote

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
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1654

PostPosted: Fri Sep 17, 2010 10:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
norg
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2010
Posts: 104
Location: Augsburg (Germany)

PostPosted: Fri Sep 17, 2010 11:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum