summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2018-06-19 01:56:55 -0400
committerMike Frysinger <vapier@gentoo.org>2018-06-19 01:58:23 -0400
commit0fd435f4846f33b0e98d869f5e1881d77b5d3727 (patch)
tree17125e6a02346f5c67e3aa321f16f53f813f576f /net-fs
parentnet-p2p/rtorrent: resolve ncurses compile failure (diff)
downloadgentoo-0fd435f4846f33b0e98d869f5e1881d77b5d3727.tar.gz
gentoo-0fd435f4846f33b0e98d869f5e1881d77b5d3727.tar.bz2
gentoo-0fd435f4846f33b0e98d869f5e1881d77b5d3727.zip
net-fs/nfs-utils: drop -Werror flags from build #656984
Closes: https://bugs.gentoo.org/656984
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/nfs-utils/files/nfs-utils-2.3.2-no-werror.patch53
-rw-r--r--net-fs/nfs-utils/nfs-utils-2.3.2.ebuild1
2 files changed, 54 insertions, 0 deletions
diff --git a/net-fs/nfs-utils/files/nfs-utils-2.3.2-no-werror.patch b/net-fs/nfs-utils/files/nfs-utils-2.3.2-no-werror.patch
new file mode 100644
index 00000000000..d06fc4ce8b8
--- /dev/null
+++ b/net-fs/nfs-utils/files/nfs-utils-2.3.2-no-werror.patch
@@ -0,0 +1,53 @@
+https://bugs.gentoo.org/656984
+
+Don't build with -Werror flags.
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -544,45 +544,11 @@
+ AC_SUBST(LDFLAGS_FOR_BUILD)
+
+ my_am_cflags="\
+- -pipe \
+ -Wall \
+ -Wextra \
+- -Werror=strict-prototypes \
+- -Werror=missing-prototypes \
+- -Werror=missing-declarations \
+- -Werror=format=2 \
+- -Werror=undef \
+- -Werror=missing-include-dirs \
+- -Werror=strict-aliasing=2 \
+- -Werror=init-self \
+- -Werror=implicit-function-declaration \
+- -Werror=return-type \
+- -Werror=switch \
+- -Werror=overflow \
+- -Werror=parentheses \
+- -Werror=aggregate-return \
+- -Werror=unused-result \
+ -fno-strict-aliasing \
+ "
+-
+-AC_DEFUN([CHECK_CCSUPPORT], [
+- my_save_cflags="$CFLAGS"
+- CFLAGS=$1
+- AC_MSG_CHECKING([whether CC supports $1])
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
+- [AC_MSG_RESULT([yes])]
+- [$2+=$1],
+- [AC_MSG_RESULT([no])]
+- )
+- CFLAGS="$my_save_cflags"
+-])
+-
+-CHECK_CCSUPPORT([-Werror=format-overflow=2], [flg1])
+-CHECK_CCSUPPORT([-Werror=int-conversion], [flg2])
+-CHECK_CCSUPPORT([-Werror=incompatible-pointer-types], [flg3])
+-CHECK_CCSUPPORT([-Werror=misleading-indentation], [flg4])
+-
+-AC_SUBST([AM_CFLAGS], ["$my_am_cflags $flg1 $flg2 $flg3 $flg4"])
++AC_SUBST([AM_CFLAGS], ["$my_am_cflags"])
+
+ # Make sure that $ACLOCAL_FLAGS are used during a rebuild
+ AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \$(ACLOCAL_FLAGS)"])
diff --git a/net-fs/nfs-utils/nfs-utils-2.3.2.ebuild b/net-fs/nfs-utils/nfs-utils-2.3.2.ebuild
index 16a7c4fd9ce..553fb8c8b2d 100644
--- a/net-fs/nfs-utils/nfs-utils-2.3.2.ebuild
+++ b/net-fs/nfs-utils/nfs-utils-2.3.2.ebuild
@@ -67,6 +67,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
"${FILESDIR}"/${PN}-1.2.8-cross-build.patch
"${FILESDIR}"/${PN}-2.3.2-junction_libs.patch
+ "${FILESDIR}"/${PN}-2.3.2-no-werror.patch
)
src_prepare() {