Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 318479
Collapse All | Expand All

(-)devicekit-power-014.ebuild (+18 lines)
Lines 77-80 Link Here
77
	# bug 289873.
77
	# bug 289873.
78
	sed 's:WARNINGFLAGS_C=\"$WARNINGFLAGS_C -Wtype-limits\"::g' -i configure.ac configure \
78
	sed 's:WARNINGFLAGS_C=\"$WARNINGFLAGS_C -Wtype-limits\"::g' -i configure.ac configure \
79
		|| die "sed 2 failed"
79
		|| die "sed 2 failed"
80
81
	cp /etc/dbus-1/system.conf ${T}/system.conf
82
	sed -e "/user/ s:messagebus:$(id -u -n):" \
83
		-e "/pidfile/ s:/var/run/:${T}/:" \
84
		-e "/listen/ s:/var/run/dbus/:${T}/:" \
85
		-e "/includedir/d" \
86
		-e "/standard_system_servicedirs/d" \
87
		-i ${T}/system.conf || die
88
}
89
90
src_test() {
91
	dbus-daemon --config-file="${T}/system.conf"
92
	if ! emake check DBUS_SYSTEM_BUS_ADDRESS="unix:path=${T}/system_bus_socket"
93
	then
94
		kill $(< ${T}/dbus.pid)
95
		die "emake check failed"
96
	fi
97
	kill $(< ${T}/dbus.pid)
80
}
98
}

Return to bug 318479