rpms/iptables/F-9 iptables-1.4.0-use-normal-kernel-headers.patch, NONE, 1.1 iptables.spec, 1.68, 1.69

Tom Callaway (spot) fedora-extras-commits at redhat.com
Fri Jun 6 18:59:52 UTC 2008


Author: spot

Update of /cvs/pkgs/rpms/iptables/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5359/F-9

Modified Files:
	iptables.spec 
Added Files:
	iptables-1.4.0-use-normal-kernel-headers.patch 
Log Message:
use normal kernel headers, not linux/compiler.h

iptables-1.4.0-use-normal-kernel-headers.patch:

--- NEW FILE iptables-1.4.0-use-normal-kernel-headers.patch ---
diff -up iptables-1.4.0/include/linux/netfilter_ipv4/ip_tables.h.BAD iptables-1.4.0/include/linux/netfilter_ipv4/ip_tables.h
--- iptables-1.4.0/include/linux/netfilter_ipv4/ip_tables.h.BAD	2008-06-06 12:49:45.000000000 -0500
+++ iptables-1.4.0/include/linux/netfilter_ipv4/ip_tables.h	2008-06-06 12:54:14.000000000 -0500
@@ -15,7 +15,11 @@
 #ifndef _IPTABLES_H
 #define _IPTABLES_H
 
-#include <linux/compiler.h>
+// #include <linux/compiler.h>
+#ifndef __user
+#define __user
+#endif
+
 #include <linux/netfilter_ipv4.h>
 
 #include <linux/netfilter/x_tables.h>
diff -up iptables-1.4.0/include/linux/netfilter_ipv6/ip6_tables.h.BAD iptables-1.4.0/include/linux/netfilter_ipv6/ip6_tables.h
--- iptables-1.4.0/include/linux/netfilter_ipv6/ip6_tables.h.BAD	2008-06-06 12:50:00.000000000 -0500
+++ iptables-1.4.0/include/linux/netfilter_ipv6/ip6_tables.h	2008-06-06 12:54:27.000000000 -0500
@@ -15,7 +15,11 @@
 #ifndef _IP6_TABLES_H
 #define _IP6_TABLES_H
 
-#include <linux/compiler.h>
+// #include <linux/compiler.h>
+#ifndef __user
+#define __user
+#endif
+
 #include <linux/netfilter_ipv6.h>
 
 #include <linux/netfilter/x_tables.h>


Index: iptables.spec
===================================================================
RCS file: /cvs/pkgs/rpms/iptables/F-9/iptables.spec,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- iptables.spec	20 Mar 2008 15:09:55 -0000	1.68
+++ iptables.spec	6 Jun 2008 18:59:08 -0000	1.69
@@ -4,7 +4,7 @@
 Name: iptables
 Summary: Tools for managing Linux kernel packet filtering capabilities
 Version: 1.4.0
-Release: 4%{?dist}
+Release: 5%{?dist}
 Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2
 Source1: iptables.init
 Source2: iptables-config
@@ -12,12 +12,13 @@
 Patch4: iptables-1.3.8-typo_latter.patch
 Patch5: iptables-1.4.0-cloexec.patch
 Patch6: iptables-1.4.0-in6_u.patch
+Patch7: iptables-1.4.0-use-normal-kernel-headers.patch
 Group: System Environment/Base
 URL: http://www.netfilter.org/
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 License: GPLv2
 BuildRequires: libselinux-devel
-BuildRequires: kernel-devel
+BuildRequires: kernel-headers
 Conflicts: kernel < 2.4.20
 Requires(post): chkconfig
 Requires(preun): chkconfig
@@ -62,6 +63,7 @@
 %patch4 -p1 -b .typo_latter
 %patch5 -p1 -b .cloexec
 %patch6 -p1 -b .in6_u
+%patch7 -p1 -b .use_normal_headers
 
 # Put it to a reasonable place
 find . -type f -exec perl -pi -e "s,/usr/local,%{_prefix},g" {} \;
@@ -163,6 +165,12 @@
 %endif
 
 %changelog
+* Fri Jun  6 2008 Tom "spot" Callaway <tcallawa at redhat.com> 1.4.0-5
+- use normal kernel headers, not linux/compiler.h
+- change BuildRequires: kernel-devel to kernel-headers
+- We need to do this to be able to build for both sparcv9 and sparc64 
+  (there is no kernel-devel.sparcv9)
+
 * Thu Mar 20 2008 Thomas Woerner <twoerner at redhat.com> 1.4.0-4
 - use O_CLOEXEC for all opened files in all applications (rhbz#438189)
 




More information about the fedora-extras-commits mailing list