Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 354259

Summary: Installing net-firewall/ipsec-tools on g/fbsd
Product: Gentoo/Alt Reporter: Dmitri Bogomolov <4glitch>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED OBSOLETE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ipsec-tools-0.7.3-r2.ebuild
difference from ipsec-tools-0.7.3-r1.ebuild
ipsec-tools-0.7.3-r1.ebuild.diff
freebsd-lib-8.2-r1.ebuild.diff

Description Dmitri Bogomolov 2011-02-09 16:04:16 UTC
I'm trying to install net-firewall/ipsec-tools-0.7.3-r1 on g/fbsd-8. Ithink it make sense because http://ipsec-tools.sourceforge.net/ says: "It supports NetBSD and FreeBSD as well."

Reproducible: Always




After I made DEPEND=">=sys-kernel/linux-headers-2.6.30" conditional it built successfully.

But on during install I got collision error:
 * Detected file collision(s):
 * 
 *      /usr/lib/libipsec.a
 *      /usr/share/man/man3/ipsec_set_policy.3.bz2
 *      /usr/share/man/man3/ipsec_strerror.3.bz2
 *      /usr/share/man/man8/setkey.8.bz2
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * sys-freebsd/freebsd-lib-8.0
 *      /usr/lib/libipsec.a
 *      /usr/share/man/man3/ipsec_set_policy.3.bz2
 *      /usr/share/man/man3/ipsec_strerror.3.bz2
 * 
 * sys-freebsd/freebsd-sbin-8.0
 *      /usr/share/man/man8/setkey.8.bz2
 * 
 * Package 'net-firewall/ipsec-tools-0.7.3-r2' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

Next I will try to use COLLISION_IGNORE. Not sure about replacing /usr/lib/libipsec.a.
Comment 1 Dmitri Bogomolov 2011-04-03 21:59:34 UTC
Created attachment 268429 [details]
ipsec-tools-0.7.3-r2.ebuild

Ebuild I used to install ipsec-tools on g/fbsd-8.0
Comment 2 Dmitri Bogomolov 2011-04-03 22:02:25 UTC
Created attachment 268431 [details, diff]
difference from ipsec-tools-0.7.3-r1.ebuild
Comment 3 Dmitri Bogomolov 2012-02-14 19:39:34 UTC
Created attachment 301957 [details, diff]
ipsec-tools-0.7.3-r1.ebuild.diff
Comment 4 Dmitri Bogomolov 2012-02-14 19:49:50 UTC
Created attachment 301961 [details, diff]
freebsd-lib-8.2-r1.ebuild.diff

I added IUSE="ipsec" which determines whether sys-freebsd/freebsd-lib installs ipsec libraries.
Comment 5 Dmitri Bogomolov 2012-02-14 20:10:03 UTC
Remaining problems:

 1. attachment 301957 [details, diff] doesn't deal with kernel config check

 2. Those ipsec libraries used by sys-freebsd/freebsd-usbin for traceroute and by sys-freebsd/freebsd-sbin for ping and setkey. I guess it should be alternative dependancy:
    || ( net-firewall/ipsec-tools sys-freebsd/freebsd-lib[ipsec] ).
But both packages already have sys-freebsd/freebsd-lib in DEPEND.

setkey probably should be removed because net-firewall/ipsec-tools installs own setkey.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-11 17:37:23 UTC
*-fbsd is gone.