Skip to contentSkip to conversation

package/liboping: remove -Werror build flag

PATCH New Nathaniel Roach 1 participant 2 messages Jan 25, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/liboping: remove -Werror build flag

Same as https://bugs.gentoo.org/675344 - when building, GCC will fail the build due to a truncation warning.

Remove -Wall and -Werror from Makefile.am and run automake to apply the change

---
 package/liboping/0002-no-werror.patch | 14 ++++++++++++++
 package/liboping/liboping.mk          |  1 +
 2 files changed, 15 insertions(+)
 create mode 100644 package/liboping/0002-no-werror.patch
package/liboping/0002-no-werror.patch new file +14 -0
new file mode 100644
index 0000000000..febb2c0335
@@ -0,0 +1,14 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -2,10 +2,6 @@ AUTOMAKE_OPTIONS = foreign no-dependencies
+ 
+ SUBDIRS = mans
+ 
+-if COMPILER_IS_GCC
+-AM_CFLAGS = -Wall -Werror
+-endif
+-
+ include_HEADERS = oping.h
+ lib_LTLIBRARIES = liboping.la
+ 
+
package/liboping/liboping.mk +1 -0
index 4aa3e30ee8..6e3530fdb0 100644
@@ -11,6 +11,7 @@ LIBOPING_INSTALL_STAGING = YES
 LIBOPING_CONF_OPTS = --without-perl-bindings
 LIBOPING_LICENSE = LGPL-2.1+, GPL-2.0
 LIBOPING_LICENSE_FILES = COPYING
+LIBOPING_AUTORECONF = YES
 
 ifeq ($(BR2_PACKAGE_NCURSES),y)
 LIBOPING_DEPENDENCIES += ncurses
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/2 package/liboping: remove -Werror build flag

Patch is standalone, title can be amended if no other changes are needed

Quoted 45 lines · Nathaniel Roach

Same as https://bugs.gentoo.org/675344 - when building, GCC will fail the build due to a truncation warning.

Remove -Wall and -Werror from Makefile.am and run automake to apply the change

---
  package/liboping/0002-no-werror.patch | 14 ++++++++++++++
  package/liboping/liboping.mk          |  1 +
  2 files changed, 15 insertions(+)

create mode 100644 package/liboping/0002-no-werror.patch

package/liboping/0002-no-werror.patch new file +14 -0
new file mode 100644
index 0000000000..febb2c0335
@@ -0,0 +1,14 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -2,10 +2,6 @@ AUTOMAKE_OPTIONS = foreign no-dependencies
+
+ SUBDIRS = mans
+
+-if COMPILER_IS_GCC
+-AM_CFLAGS = -Wall -Werror
+-endif
+-
+ include_HEADERS = oping.h
+ lib_LTLIBRARIES = liboping.la
+
+
package/liboping/liboping.mk +1 -0
index 4aa3e30ee8..6e3530fdb0 100644
@@ -11,6 +11,7 @@ LIBOPING_INSTALL_STAGING = YES
  LIBOPING_CONF_OPTS = --without-perl-bindings
  LIBOPING_LICENSE = LGPL-2.1+, GPL-2.0
  LIBOPING_LICENSE_FILES = COPYING
+LIBOPING_AUTORECONF = YES
 
  ifeq ($(BR2_PACKAGE_NCURSES),y)
  LIBOPING_DEPENDENCIES += ncurses