Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508752 - dev-libs/glib-2.38.2-r1 run ipv6 test when possible
Summary: dev-libs/glib-2.38.2-r1 run ipv6 test when possible
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-26 10:28 UTC by Nikoli
Modified: 2016-01-02 16:23 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2014-04-26 10:28:34 UTC
glib-2.38.2-r1.ebuild has this:
pkg_setup() {
	if use kernel_linux ; then
		CONFIG_CHECK="~INOTIFY_USER"
		if use test; then
			CONFIG_CHECK="~IPV6"
			WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them."
			export IPV6_DISABLED="yes"
		fi
		linux-info_pkg_setup
	fi
}

src_prepare() {
...
		# Some tests need ipv6, upstream bug #667468
		if [[ -n "${IPV6_DISABLED}" ]]; then
			sed -i -e "/socket\/ipv6_sync/d" gio/tests/socket.c || die
			sed -i -e "/socket\/ipv6_async/d" gio/tests/socket.c || die
			sed -i -e "/socket\/ipv6_v4mapped/d" gio/tests/socket.c || die
		fi
...
}

It means ipv6 tests are disabled for any system with linux kernel. If ipv6 module is compiled and loaded, then these tests should work fine, so why disable them in such case? I googled how to check if ipv6 is actually enabled in linux system, found these howtos:
http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/systemcheck-kernel.html#AEN719
http://www.cyberciti.biz/faq/check-for-ipv6-support-in-linux-kernel/

Both suggest using '[ -f /proc/net/if_inet6 ]', seems like best solution for ebuild.

P.S. bug number #667468 sure is wrong.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-01-02 16:23:18 UTC
Applied this to the ebuild as it effectively blocked all testing of IPv6 even on ipv6 enabled machines. Thanks for reporting.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cc8b1b22ee34d6b0c84ba5e822fb1a0def6fc01