Gentoo Archives: gentoo-commits

From: "Doug Goldstein (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/libiscsi/files: libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch
Date: Wed, 05 Jun 2013 19:50:16
Message-Id: 20130605195010.392552171D@flycatcher.gentoo.org
1 cardoe 13/06/05 19:50:10
2
3 Added:
4 libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch
5 Log:
6 Fix building with -Werror by default, bug #469026. Fix not respecting LDFLAGS QA warning, bug #469028
7
8 (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key D7DFA8D318FA9AEF!)
9
10 Revision Changes Path
11 1.1 net-libs/libiscsi/files/libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libiscsi/files/libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libiscsi/files/libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch?rev=1.1&content-type=text/plain
15
16 Index: libiscsi-1.9.0-0001-Allow-users-to-disable-Werror-at-configure-time.patch
17 ===================================================================
18 From 2d43a056a9e7b57bc03d580a850a8dca534e61d5 Mon Sep 17 00:00:00 2001
19 From: Doug Goldstein <doug.goldstein@×××××××××.com>
20 Date: Wed, 5 Jun 2013 14:28:48 -0500
21 Subject: [PATCH] Allow users to disable -Werror at configure time
22
23 Some users and distro packagers might not want to build with -Werror,
24 this allows them to disable using -Werror but enables it in the default
25 case so as to maintain the current behavior.
26 ---
27 configure.ac | 8 +++++++-
28 1 file changed, 7 insertions(+), 1 deletion(-)
29
30 diff --git a/configure.ac b/configure.ac
31 index 9d06e3a..6dce230 100644
32 --- a/configure.ac
33 +++ b/configure.ac
34 @@ -11,8 +11,14 @@ AC_CANONICAL_HOST
35 AM_CONDITIONAL(LD_ISCSI,
36 [expr "$host_os" : linux > /dev/null 2>&1])
37
38 +AC_ARG_ENABLE([werror], [AS_HELP_STRING([--disable-werror],
39 + [Disables building with -Werror by default])])
40 +
41 if test "$ac_cv_prog_gcc" = yes; then
42 - WARN_CFLAGS="-Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror -Wno-strict-aliasing"
43 + WARN_CFLAGS="-Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-strict-aliasing"
44 + if test "x$enable_werror" != "xno"; then
45 + WARN_CFLAGS="$WARN_CFLAGS -Werror"
46 + fi
47 fi
48 AC_SUBST(WARN_CFLAGS)
49
50 --
51 1.8.2.1