mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 09:48:24 +02:00
pmacct: Patch file to allow build to work with GCC 11
- Created pmacct-1.7.6-Werror.patch to remove -Werror flags from the configure This was flagging up warnings as errors and stopping the build - Removed the SUP_ARCH line to allow it to build again - No update required to the rootfile Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
542edad66e
commit
21e59055e9
38
src/patches/pmacct-1.7.6-Werror.patch
Normal file
38
src/patches/pmacct-1.7.6-Werror.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
--- pmacct-1.7.6/configure.ac.orig 2021-02-05 02:07:36.000000000 +0100
|
||||
+++ pmacct-1.7.6/configure.ac 2021-07-15 19:58:37.247916727 +0200
|
||||
@@ -1153,9 +1153,9 @@ AC_ARG_ENABLE(debug,
|
||||
AC_MSG_RESULT(yes)
|
||||
tmp_CFLAGS=`echo $CFLAGS | sed 's/O2/O0/g'`
|
||||
CFLAGS="$tmp_CFLAGS"
|
||||
- CFLAGS="$CFLAGS -g -Wall -Werror"
|
||||
+ CFLAGS="$CFLAGS -g -Wall"
|
||||
else
|
||||
- CFLAGS="$CFLAGS -Wall -Werror"
|
||||
+ CFLAGS="$CFLAGS -Wall"
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
],
|
||||
|
||||
|
||||
--- pmacct-1.7.6/src/external_libs/libcdada/configure.ac.orig 2021-02-07 16:29:15.000000000 +0100
|
||||
+++ pmacct-1.7.6/src/external_libs/libcdada/configure.ac 2021-07-16 09:04:30.858749121 +0200
|
||||
@@ -4,7 +4,7 @@ AC_INIT(LIBCDADA, m4_esyscmd_s(cat VERSI
|
||||
AC_CONFIG_AUX_DIR([build-aux])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
-AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
|
||||
+AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
|
||||
|
||||
AC_GNU_SOURCE
|
||||
|
||||
@@ -24,8 +24,8 @@ LT_INIT
|
||||
AC_ENABLE_STATIC
|
||||
|
||||
# Some useful default flags
|
||||
-CFLAGS="-std=gnu89 -Werror -Wall $CFLAGS"
|
||||
-CXXFLAGS="-Werror -Wall $CXXFLAGS"
|
||||
+CFLAGS="-std=gnu89 -Wall $CFLAGS"
|
||||
+CXXFLAGS="-Wall $CXXFLAGS"
|
||||
AC_DEFINE([__STDC_FORMAT_MACROS], [], [Description])
|
||||
|
||||
# Check for Python3
|
||||
Reference in New Issue
Block a user