All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/czmq: remove uneeded werror patch
@ 2019-03-11 17:32 Fabrice Fontaine
  2019-03-11 17:32 ` [Buildroot] [PATCH 2/2] package/czmq: use --without-docs Fabrice Fontaine
  2019-03-11 21:19 ` [Buildroot] [PATCH 1/2] package/czmq: remove uneeded werror patch Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2019-03-11 17:32 UTC (permalink / raw)
  To: buildroot

Remove patch and use --disable-Werror to disable -Werror

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/czmq/0001-configure.ac-remove-Werror.patch | 32 ----------------------
 package/czmq/czmq.mk                               |  4 +--
 2 files changed, 2 insertions(+), 34 deletions(-)
 delete mode 100644 package/czmq/0001-configure.ac-remove-Werror.patch

diff --git a/package/czmq/0001-configure.ac-remove-Werror.patch b/package/czmq/0001-configure.ac-remove-Werror.patch
deleted file mode 100644
index 2a9454d95e..0000000000
--- a/package/czmq/0001-configure.ac-remove-Werror.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 9a195dc573f4eed130773e6ef67efd5f71693e97 Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-Date: Sat, 5 Nov 2016 15:33:57 +0100
-Subject: [PATCH] configure.ac: remove -Werror
-
--Werror shouldn't be used in releases, as it can break the build with
-newer versions of the compiler or the C library, when new warnings
-are introduced.
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-[Asaf: Modified for version 4.2.0]
-Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 6868a99b..9a941545 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -952,7 +952,7 @@ AS_IF([test "x$enable_Werror" = "xyes" || test "x$enable_Werror" = "xauto"],
-         ])])
-      AS_IF([test -n "$CPP"],[AS_IF([$CPP --version 2>&1 | grep 'Free Software Foundation' > /dev/null && test "x$GCC" = "xyes"],
-         [AC_MSG_NOTICE([Enabling pedantic errors for GNU CPP preprocessor])
--         CPPFLAGS="$CPPFLAGS -pedantic -Werror -Wall -Wc++-compat"
-+         CPPFLAGS="$CPPFLAGS -pedantic -Wall -Wc++-compat"
-         ],
-         [AC_MSG_NOTICE([Not enabling pedantic errors: preprocessor not supported by this recipe (not GNU CPP)])
-          AS_IF([test "x$enable_Werror" = "xyes"], [AC_MSG_ERROR([--enable-Werror=yes was requested and can not be satisfied for CPP: $CPP])])
--- 
-2.19.1
-
diff --git a/package/czmq/czmq.mk b/package/czmq/czmq.mk
index 56dc65f8bc..e6445be42e 100644
--- a/package/czmq/czmq.mk
+++ b/package/czmq/czmq.mk
@@ -7,8 +7,6 @@
 CZMQ_VERSION = 4.2.0
 CZMQ_SITE = https://github.com/zeromq/czmq/releases/download/v$(CZMQ_VERSION)
 
-# 0001-configure.ac-remove-Werror.patch touches configure.ac
-CZMQ_AUTORECONF = YES
 CZMQ_INSTALL_STAGING = YES
 CZMQ_DEPENDENCIES = zeromq host-pkgconf
 CZMQ_LICENSE = MPL-2.0
@@ -18,4 +16,6 @@ CZMQ_LICENSE_FILES = LICENSE
 # host-python, so disable asciidoc entirely.
 CZMQ_CONF_ENV = ac_cv_prog_czmq_have_asciidoc=no
 
+CZMQ_CONF_OPTS = --disable-Werror
+
 $(eval $(autotools-package))
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 2/2] package/czmq: use --without-docs
  2019-03-11 17:32 [Buildroot] [PATCH 1/2] package/czmq: remove uneeded werror patch Fabrice Fontaine
@ 2019-03-11 17:32 ` Fabrice Fontaine
  2019-03-11 21:19 ` [Buildroot] [PATCH 1/2] package/czmq: remove uneeded werror patch Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2019-03-11 17:32 UTC (permalink / raw)
  To: buildroot

Use --without-docs option instead of setting
ac_cv_prog_czmq_have_asciidoc=no

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/czmq/czmq.mk | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/package/czmq/czmq.mk b/package/czmq/czmq.mk
index e6445be42e..1c9493cb76 100644
--- a/package/czmq/czmq.mk
+++ b/package/czmq/czmq.mk
@@ -12,10 +12,6 @@ CZMQ_DEPENDENCIES = zeromq host-pkgconf
 CZMQ_LICENSE = MPL-2.0
 CZMQ_LICENSE_FILES = LICENSE
 
-# asciidoc is a python script that imports unicodedata, which is not in
-# host-python, so disable asciidoc entirely.
-CZMQ_CONF_ENV = ac_cv_prog_czmq_have_asciidoc=no
-
-CZMQ_CONF_OPTS = --disable-Werror
+CZMQ_CONF_OPTS = --disable-Werror --without-docs
 
 $(eval $(autotools-package))
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/2] package/czmq: remove uneeded werror patch
  2019-03-11 17:32 [Buildroot] [PATCH 1/2] package/czmq: remove uneeded werror patch Fabrice Fontaine
  2019-03-11 17:32 ` [Buildroot] [PATCH 2/2] package/czmq: use --without-docs Fabrice Fontaine
@ 2019-03-11 21:19 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-03-11 21:19 UTC (permalink / raw)
  To: buildroot

On Mon, 11 Mar 2019 18:32:57 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Remove patch and use --disable-Werror to disable -Werror
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/czmq/0001-configure.ac-remove-Werror.patch | 32 ----------------------
>  package/czmq/czmq.mk                               |  4 +--
>  2 files changed, 2 insertions(+), 34 deletions(-)
>  delete mode 100644 package/czmq/0001-configure.ac-remove-Werror.patch

Both applied. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-11 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-11 17:32 [Buildroot] [PATCH 1/2] package/czmq: remove uneeded werror patch Fabrice Fontaine
2019-03-11 17:32 ` [Buildroot] [PATCH 2/2] package/czmq: use --without-docs Fabrice Fontaine
2019-03-11 21:19 ` [Buildroot] [PATCH 1/2] package/czmq: remove uneeded werror patch Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.