Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76741 - ipsec-tools uses kernel-headers
Summary: ipsec-tools uses kernel-headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-05 02:30 UTC by Peter S. Mazinger
Modified: 2006-02-07 00:15 UTC (History)
3 users (show)

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


Attachments
ebuild correction, nocxx, ipv6, uclibc (ipsec-tools-0.4-ebuild.dif,1.30 KB, patch)
2005-01-05 02:31 UTC, Peter S. Mazinger
Details | Diff
fixes use ipv6 (ipsec-tools-0.4-ebuild-2.diff,1.38 KB, patch)
2005-01-05 07:38 UTC, Natanael Copa
Details | Diff
Backported patch for ipsec-tools-0.4-r1.ebuild (ipsec-tools-0.4-r1.ebuild.patch,1.54 KB, patch)
2005-05-09 08:36 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter S. Mazinger 2005-01-05 02:30:38 UTC
ipsec-tools makes use of /usr/src/linux
due to sys/sysctl.h inclusion pfkey.o can't be compiled (at least on uclibc)
the attached patch also corrects the build on uclibc (and adds ipv6 support)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
this package should not use /usr/src/linux
Comment 1 Peter S. Mazinger 2005-01-05 02:31:31 UTC
Created attachment 47689 [details, diff]
ebuild correction, nocxx, ipv6, uclibc
Comment 2 Natanael Copa 2005-01-05 07:38:44 UTC
Created attachment 47709 [details, diff]
fixes use ipv6

The previous pach fixes the problem but the confiure script does not handle
--enable-ipv6. This patch should work. Tested on i686-pc-linux-gnu (works with
both USE="ipv6" and USE="-ipv6) and i386-pc-linux-uclibc/hardened (only
USE="-ipv6" works)
Comment 3 Peter Johanson (RETIRED) gentoo-dev 2005-01-10 19:15:27 UTC
I've just commited 0.5_rc1 to the tree, that includes the fixes in this bug. 0.5_rc1 includes proper autotooled foo, so $(use_enable ipv6) actually works now. The changes for c++ checks, sysctl, etc are all added. Now depends on linux26-headers so we don't do the nasty dep on a 2.6 kernel any more and actually use proper headers.

Please test and confirm that this version now works for folks. Thanks.
Comment 4 Peter S. Mazinger 2005-01-10 23:55:46 UTC
DEPEND/RDEPEND are prob. incorrect, all less headers should go into RDEPEND and
DEPEND="${RDEPEND} sys-kernel/linux26-headers"
die should have a comment to know if econf/emake failed
Comment 5 Peter S. Mazinger 2005-01-11 02:32:14 UTC
0.5-rc1 is not an option for uclibc, because they change getaddrinfo(), and do
accept the version uclibc provides (it says it is buggy)
please backport your changes to 0.4 to allow building a version on uclibc
I would want to know, if the test on uclibc+ipv6 was done w/ an uclibc version
that was also built w/ ipv6, else that test has to be redone.
Comment 6 Natanael Copa 2005-05-09 08:36:04 UTC
Created attachment 58486 [details, diff]
Backported patch for ipsec-tools-0.4-r1.ebuild

Patch for making ipsec-tools build with uclibc. Maybe the 0.5 series should be
masked in the uclibc profile.

I haven't tested the USE=ipv6
Comment 7 Toomas Pelberg 2005-07-29 10:40:28 UTC
Also need to add sys-kernel/linux-headers to DEPENDS ..otherwise might end up 4h 
through an catalyst build to find that out :)
Comment 8 Kalin KOZHUHAROV 2006-02-06 20:15:49 UTC
Seems to be fixed, plese consider marking RESOLVED FIXED.
See http://bugs.gentoo.org/show_bug.cgi?id=121919#c0
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-02-07 00:15:05 UTC
Fixed in >=0.6.2