rpms/libnids/devel libnids-1.23-elif.patch, NONE, 1.1 libnids.spec, 1.8, 1.9

Robert Scheck robert at fedoraproject.org
Sun Mar 1 18:30:52 UTC 2009


Author: robert

Update of /cvs/pkgs/rpms/libnids/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23524

Modified Files:
	libnids.spec 
Added Files:
	libnids-1.23-elif.patch 
Log Message:
Added patch to correct the wrong elif preprocessor statement


libnids-1.23-elif.patch:

--- NEW FILE libnids-1.23-elif.patch ---
Patch by Robert Scheck <robert at fedoraproject.org> for libnids >= 1.23, that
corrects the preprocessor conditional from empty (wrong) elif to else.

--- libnids-1.23/src/killtcp.c		2006-05-08 22:05:51.000000000 +0200
+++ libnids-1.23/src/killtcp.c.elif	2009-03-01 19:25:13.000000000 +0100
@@ -118,6 +118,6 @@
     if (initialized)
 	abort();
 }
-#elif
+#else
 #error Something wrong with LIBNET_VER
 #endif


Index: libnids.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libnids/devel/libnids.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- libnids.spec	23 Feb 2009 21:00:14 -0000	1.8
+++ libnids.spec	1 Mar 2009 18:30:52 -0000	1.9
@@ -1,11 +1,12 @@
 Summary:	Implementation of an E-component of Network Intrusion Detection System
 Name:		libnids
 Version:	1.23
-Release:	2%{?dist}
+Release:	3%{?dist}
 License:	GPLv2+
 Group:		System Environment/Libraries
 URL:		http://libnids.sourceforge.net/
 Source:		http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
+Patch0:		libnids-1.23-elif.patch
 BuildRequires:	libnet-devel, glib2-devel, %{_includedir}/pcap.h, pkgconfig
 BuildRequires:	libtool, automake
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -30,6 +31,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .elif
 libtoolize --force
 
 # Needed for ppc64, automake can't be run here
@@ -63,6 +65,9 @@
 %{_mandir}/man3/libnids.3*
 
 %changelog
+* Sun Mar 01 2009 Robert Scheck <robert at fedoraproject.org> 1.23-3
+- Added patch to correct the wrong elif preprocessor statement
+
 * Mon Feb 23 2009 Robert Scheck <robert at fedoraproject.org> 1.23-2
 - Rebuilt against gcc 4.4 and rpm 4.6
 




More information about the fedora-extras-commits mailing list