diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-04-06 17:19:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-04-06 17:19:32 +0000 |
commit | 7c93cb10c72064ae7fd5c4834a4691b141a655ee (patch) | |
tree | d7fb2e5a69a5e4223b857d4b7d123af559d6822d /sys-apps | |
parent | Fix patch path, bug 46939 (Manifest recommit) (diff) | |
download | gentoo-2-7c93cb10c72064ae7fd5c4834a4691b141a655ee.tar.gz gentoo-2-7c93cb10c72064ae7fd5c4834a4691b141a655ee.tar.bz2 gentoo-2-7c93cb10c72064ae7fd5c4834a4691b141a655ee.zip |
dont enable HFSC unless system supports it
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/iproute/iproute-20010824-r5.ebuild | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys-apps/iproute/iproute-20010824-r5.ebuild b/sys-apps/iproute/iproute-20010824-r5.ebuild index 50f5608e58d2..caaab3b88b37 100644 --- a/sys-apps/iproute/iproute-20010824-r5.ebuild +++ b/sys-apps/iproute/iproute-20010824-r5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute/iproute-20010824-r5.ebuild,v 1.1 2004/04/06 15:19:21 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute/iproute-20010824-r5.ebuild,v 1.2 2004/04/06 17:19:32 vapier Exp $ inherit eutils @@ -36,8 +36,13 @@ src_unpack() { epatch ${DISTDIR}/${DEBIANPATCH} # Enable HFSC scheduler #45274 - epatch ${FILESDIR}/${PV}-hfsc.patch - epatch ${FILESDIR}/${PV}-rates-1024-fix.patch + if [ ! -z "`grep tc_service_curve ${ROOT}/usr/include/linux/pkt_sched.h`" ] ; then + epatch ${FILESDIR}/${PV}-hfsc.patch + epatch ${FILESDIR}/${PV}-rates-1024-fix.patch + else + ewarn "Your linux-headers in /usr/include/linux are too old to" + ewarn "support the HFSC scheduler. It has been disabled." + fi rm include/linux/pkt_sched.h # Fix local DoS exploit #34294 |