Hello community,

here is the log from the commit of package linux-glibc-devel for 
openSUSE:Factory checked in at 2018-11-12 09:48:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/linux-glibc-devel (Old)
 and      /work/SRC/openSUSE:Factory/.linux-glibc-devel.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "linux-glibc-devel"

Mon Nov 12 09:48:02 2018 rev:65 rq:645710 version:4.19

Changes:
--------
--- /work/SRC/openSUSE:Factory/linux-glibc-devel/linux-glibc-devel.changes      
2018-08-28 09:18:41.423741892 +0200
+++ /work/SRC/openSUSE:Factory/.linux-glibc-devel.new/linux-glibc-devel.changes 
2018-11-12 09:48:02.948589087 +0100
@@ -1,0 +2,11 @@
+Wed Oct 24 14:51:55 UTC 2018 - Jiri Slaby <[email protected]>
+
+- fix netfilter builds with 4.19
+  * add netfilter-bridge-define-INT_MIN-INT_MAX-in-userspace.patch
+
+-------------------------------------------------------------------
+Mon Oct 22 09:18:57 UTC 2018 - [email protected]
+
+- Update to kernel headers 4.19
+
+-------------------------------------------------------------------

Old:
----
  linux-glibc-devel-4.18.tar.xz

New:
----
  linux-glibc-devel-4.19.tar.xz
  netfilter-bridge-define-INT_MIN-INT_MAX-in-userspace.patch

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

Other differences:
------------------
++++++ linux-glibc-devel.spec ++++++
--- /var/tmp/diff_new_pack.nNLo9C/_old  2018-11-12 09:48:04.568586640 +0100
+++ /var/tmp/diff_new_pack.nNLo9C/_new  2018-11-12 09:48:04.572586635 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           linux-glibc-devel
-Version:        4.18
+Version:        4.19
 Release:        0
 Summary:        Linux headers for userspace development
 License:        GPL-2.0-only
@@ -25,6 +25,7 @@
 URL:            http://www.kernel.org/
 Source:         %{name}-%{version}.tar.xz
 Source1:        install_all.sh
+Patch0:         netfilter-bridge-define-INT_MIN-INT_MAX-in-userspace.patch
 BuildRequires:  fdupes
 BuildRequires:  xz
 # rpm-build requires gettext-tools; ignore this, in order to shorten cycles 
(we have no translations)
@@ -46,12 +47,13 @@
 
 %prep
 %setup -q -n linux-glibc-devel-%{version}
+%autopatch -p1
 
 %build
 cat > version.h <<\BOGUS
 #ifdef __KERNEL__
 #error "======================================================="
-#error "You should not include /usr/include/{linux,asm}/ header"
+#error "You should not include %{_includedir}/{linux,asm}/ header"
 #error "files directly for the compilation of kernel modules."
 #error ""
 #error "glibc now uses kernel header files from a well-defined"
@@ -112,7 +114,7 @@
 %postun
 if test "$1" = 0
 then
-       rm -f usr/include/asm
+       rm -f %{_includedir}/asm
 fi
 exit 0
 
@@ -132,22 +134,22 @@
        riscv*)  asm_link=riscv      ;;
        *)       asm_link=x86  ;;
 esac
-if test -L usr/include/asm
+if test -L %{_includedir}/asm
 then
-       case "$(readlink usr/include/asm)" in
+       case "$(readlink %{_includedir}/asm)" in
                *../src/linux/include*)
                echo "%{_includedir}/asm points to kernel-source, waiting for 
triggerpostun to symlink to asm-$asm_link"
-               rm -fv usr/include/asm
+               rm -fv %{_includedir}/asm
                exit 0
                ;;
        esac
-       : symlink is ok, update it below in case of an arch change
-elif test -d usr/include/asm
+       # symlink is ok, update it below in case of an arch change
+elif test -d %{_includedir}/asm
 then
        echo "%{_includedir}/asm is a directory, waiting for triggerpostun to 
symlink to asm-$asm_link"
        exit 0
 fi
-ln -sfn arch-$asm_link/asm usr/include/asm
+ln -sfn arch-$asm_link/asm %{_includedir}/asm
 exit 0
 
 %triggerpostun -- linux-kernel-headers, glibc-devel < 2.5, libc < 2.2
@@ -166,7 +168,7 @@
        riscv*)  asm_link=riscv      ;;
        *)       asm_link=x86  ;;
 esac
-ln -sfn arch-$asm_link/asm usr/include/asm
+ln -sfn arch-$asm_link/asm %{_includedir}/asm
 exit 0
 
 %files

++++++ linux-glibc-devel-4.18.tar.xz -> linux-glibc-devel-4.19.tar.xz ++++++
++++ 4490 lines of diff (skipped)

++++++ netfilter-bridge-define-INT_MIN-INT_MAX-in-userspace.patch ++++++
From: Jiri Slaby <[email protected]>
Date: Wed, 24 Oct 2018 12:36:28 +0200
Subject: netfilter: bridge: define INT_MIN & INT_MAX in userspace
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Patch-mainline: submitted on 2018/10/24
References: 4.19 fixes

With 4.19, programs like ebtables fail to build when they include
"linux/netfilter_bridge.h". It is caused by commit 94276fa8a2a4 which
added a use of INT_MIN and INT_MAX to the header:
: In file included from /usr/include/linux/netfilter_bridge/ebtables.h:18,
:                  from include/ebtables_u.h:28,
:                  from communication.c:23:
: /usr/include/linux/netfilter_bridge.h:30:20: error: 'INT_MIN' undeclared here 
(not in a function)
:   NF_BR_PRI_FIRST = INT_MIN,
:                     ^~~~~~~

Define these constants by including "limits.h" when !__KERNEL__ (the
same way as for other netfilter_* headers).

Fixes: 94276fa8a2a4 ("netfilter: bridge: Expose nf_tables bridge hook 
priorities through uapi")
Signed-off-by: Jiri Slaby <[email protected]>
Cc: Máté Eckl <[email protected]>
Cc: Pablo Neira Ayuso <[email protected]>
---
 include/uapi/linux/netfilter_bridge.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/uapi/linux/netfilter_bridge.h 
b/include/uapi/linux/netfilter_bridge.h
index 156ccd089df1..1610fdbab98d 100644
--- a/usr/include/linux/netfilter_bridge.h
+++ b/usr/include/linux/netfilter_bridge.h
@@ -11,6 +11,8 @@
 #include <linux/if_vlan.h>
 #include <linux/if_pppox.h>
 
+#include <limits.h> /* for INT_MIN, INT_MAX */
+
 /* Bridge Hooks */
 /* After promisc drops, checksum checks. */
 #define NF_BR_PRE_ROUTING      0
-- 
2.19.1


Reply via email to