Fix building with 2.6.18+ headers #150907 by Mario Fetka.
authorMike Frysinger <vapier@gentoo.org>
Sat, 2 Dec 2006 20:35:58 +0000 (20:35 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 2 Dec 2006 20:35:58 +0000 (20:35 +0000)
Package-Manager: portage-2.1.2_rc2-r3

dev-util/strace/ChangeLog
dev-util/strace/files/strace-4.5.14-CTL_PROC.patch [new file with mode: 0644]
dev-util/strace/strace-4.5.14.ebuild

index cf970e3889063f452daba5c1c1da6ef486cf48a8..13f09f829cd872a6e8fd5dd84d8af319dbebde5a 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for dev-util/strace
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/ChangeLog,v 1.91 2006/10/05 02:05:21 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/ChangeLog,v 1.92 2006/12/02 20:35:58 vapier Exp $
+
+  02 Dec 2006; Mike Frysinger <vapier@gentoo.org>
+  +files/strace-4.5.14-CTL_PROC.patch, strace-4.5.14.ebuild:
+  Fix building with 2.6.18+ headers #150907 by Mario Fetka.
 
   05 Oct 2006; Mike Frysinger <vapier@gentoo.org>
   +files/strace-4.5.14-PT_GETSIGINFO.patch, strace-4.5.14.ebuild:
diff --git a/dev-util/strace/files/strace-4.5.14-CTL_PROC.patch b/dev-util/strace/files/strace-4.5.14-CTL_PROC.patch
new file mode 100644 (file)
index 0000000..f172917
--- /dev/null
@@ -0,0 +1,17 @@
+fix building with 2.6.18+ headers
+
+http://bugs.gentoo.org/150907
+
+--- strace-4.5.14/system.c
++++ strace-4.5.14/system.c
+@@ -1591,6 +1591,10 @@
+ #endif
+ #ifdef LINUX
++/* linux-2.6.18+ has dropped this enum */
++#ifndef CTL_PROC
++# define CTL_PROC 4
++#endif
+ static const struct xlat sysctl_root[] = {
+       { CTL_KERN, "CTL_KERN" },
+       { CTL_VM, "CTL_VM" },
index 81e51cbbd73cd2a9b1caaac051420c20ba259bcb..855b1848412d5e1319438557b65289b921da5c98 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/strace-4.5.14.ebuild,v 1.12 2006/10/05 02:05:21 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/strace-4.5.14.ebuild,v 1.13 2006/12/02 20:35:58 vapier Exp $
 
 WANT_AUTOCONF="latest"
 WANT_AUTOMAKE="latest"
@@ -40,6 +40,8 @@ src_unpack() {
        # (08 Feb 2005 agriffis)
        epatch "${FILESDIR}"/strace-4.5.8-ia64.patch
 
+       epatch "${FILESDIR}"/${P}-CTL_PROC.patch #150907
+
        eautoreconf
 }