Hello community,

here is the log from the commit of package vpp for openSUSE:Factory checked in 
at 2018-03-07 10:37:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vpp (Old)
 and      /work/SRC/openSUSE:Factory/.vpp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vpp"

Wed Mar  7 10:37:09 2018 rev:11 rq:583238 version:18.01

Changes:
--------
--- /work/SRC/openSUSE:Factory/vpp/vpp.changes  2018-01-26 13:39:48.216442682 
+0100
+++ /work/SRC/openSUSE:Factory/.vpp.new/vpp.changes     2018-03-07 
10:37:20.024730018 +0100
@@ -1,0 +2,5 @@
+Mon Mar  5 22:03:13 UTC 2018 - marco.varl...@suse.de
+
+- Added memfd-create.patch to fix the memfd_create issue caused by the upgrade 
to glibc 2.27
+
+-------------------------------------------------------------------

New:
----
  memfd-create.patch

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

Other differences:
------------------
++++++ vpp.spec ++++++
--- /var/tmp/diff_new_pack.1blNHo/_old  2018-03-07 10:37:21.540675336 +0100
+++ /var/tmp/diff_new_pack.1blNHo/_new  2018-03-07 10:37:21.544675192 +0100
@@ -34,6 +34,7 @@
 Patch1:         0003-startup-conf.patch
 Patch2:         vpp-17.10-java9.patch
 Patch3:         vpp-18.01-nojavah.patch
+Patch4:         memfd-create.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bison
@@ -157,6 +158,7 @@
 %patch1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 export VPP_BUILD_USER=suse

++++++ memfd-create.patch ++++++
diff -Nuar vpp-18.01.old/src/configure.ac vpp-18.01.new/src/configure.ac
--- vpp-18.01.old/src/configure.ac      2018-01-24 07:22:24.000000000 +0100
+++ vpp-18.01.new/src/configure.ac      2018-03-06 09:20:30.445884588 +0100
@@ -227,6 +227,7 @@
 ###############################################################################
 # Dependency checks
 ###############################################################################
+AC_CHECK_FUNC([memfd_create], [AC_DEFINE([HAVE_MEMFD_CREATE], [1], [Define if 
memfd exists])])
 
 AM_COND_IF([ENABLE_DPDK_SHARED],
 [
diff -Nuar vpp-18.01.old/src/svm/memfd.h vpp-18.01.new/src/svm/memfd.h
--- vpp-18.01.old/src/svm/memfd.h       2018-01-24 07:22:24.000000000 +0100
+++ vpp-18.01.new/src/svm/memfd.h       2018-03-06 09:22:32.766903886 +0100
@@ -18,6 +18,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
+#undef __USE_GNU
+#define __USE_GNU 1
 #include <sys/mman.h>
 #include <sys/stat.h>
 #include <netinet/in.h>
@@ -174,9 +176,12 @@
 #ifndef F_LINUX_SPECIFIC_BASE
 #define F_LINUX_SPECIFIC_BASE 1024
 #endif
+
+#ifndef HAVE_MEMFD_CREATE
 #define MFD_ALLOW_SEALING       0x0002U
 #define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
 #define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
+#endif
 
 #define F_SEAL_SEAL     0x0001 /* prevent further seals from being set */
 #define F_SEAL_SHRINK   0x0002 /* prevent file from shrinking */
diff -Nuar vpp-18.01.old/src/vppinfra/linux/syscall.h 
vpp-18.01.new/src/vppinfra/linux/syscall.h
--- vpp-18.01.old/src/vppinfra/linux/syscall.h  2018-01-24 07:22:24.000000000 
+0100
+++ vpp-18.01.new/src/vppinfra/linux/syscall.h  2018-03-06 09:21:18.142279323 
+0100
@@ -39,11 +39,13 @@
   return syscall (__NR_move_pages, pid, count, pages, nodes, status, flags);
 }
 
+#ifndef HAVE_MEMFD_CREATE
 static inline int
 memfd_create (const char *name, unsigned int flags)
 {
   return syscall (__NR_memfd_create, name, flags);
 }
+#endif
 
 #endif /* included_linux_syscall_h */
 

Reply via email to