Hello community,

here is the log from the commit of package libnet for openSUSE:Factory checked 
in at 2015-10-28 17:16:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libnet (Old)
 and      /work/SRC/openSUSE:Factory/.libnet.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libnet"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libnet/libnet.changes    2015-03-16 
06:54:13.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libnet.new/libnet.changes       2015-10-28 
17:16:12.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Oct 23 13:48:35 UTC 2015 - [email protected]
+
+- Add patch for bnc#949391:
+  * libnet-pf-packet.patch
+
+-------------------------------------------------------------------

New:
----
  libnet-pf-packet.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libnet.spec ++++++
--- /var/tmp/diff_new_pack.eMv3jF/_old  2015-10-28 17:16:13.000000000 +0100
+++ /var/tmp/diff_new_pack.eMv3jF/_new  2015-10-28 17:16:13.000000000 +0100
@@ -28,6 +28,9 @@
 Source0:        
http://downloads.sourceforge.net/libnet-dev/%{name}-%{realver}.tar.gz
 #PATCH-FIX-OPENSUSE: [email protected], use proper version string to work fine
 Patch0:         libnet-1.2-rc.patch
+#PATCH-FIX-OPENSUSE: [email protected], properly detect PF_PACKET in OBS
+# Not upstreamable as we simply expect the feature to be there
+Patch1:         libnet-pf-packet.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libtool
@@ -75,6 +78,7 @@
 %prep
 %setup -q -n %{name}-%{realver}
 %patch0 -p1
+%patch1 -p1
 
 rm -rf sample/win32
 # HACK: to have samples/ dir untouched and ready for installation
@@ -84,7 +88,10 @@
 # no configure in a tarball
 autoreconf -fiv
 CFLAGS="%{optflags} -Wall -Wno-unused" \
-%configure --disable-static --with-pic
+%configure \
+    --disable-static \
+    --with-pic \
+    --with-link-layer=linux
 make %{?_smp_mflags}
 
 %install

++++++ libnet-pf-packet.patch ++++++
Index: libnet-1.2-rc3/acinclude.m4
===================================================================
--- libnet-1.2-rc3.orig/acinclude.m4
+++ libnet-1.2-rc3/acinclude.m4
@@ -71,13 +71,8 @@ main(int argc, char **argv)
     fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
     if (fd == -1)
     {
-        if (errno == EPERM)
-        {
-            /* user's UID != 0 */
-            printf("probably");
-            exit (EXIT_FAILURE);
-        }
-        printf("no");
+        /* user's UID != 0 */
+        printf("probably");
         exit (EXIT_FAILURE);
     }
     printf("yes");

Reply via email to