Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: net-fs/nfs-utils/files/, net-fs/nfs-utils/
Date: Wed, 08 May 2019 20:41:48
Message-Id: 1557347959.e073f305fcd007b55c9ed9a8533ca3baea795f8d.blueness@gentoo
1 commit: e073f305fcd007b55c9ed9a8533ca3baea795f8d
2 Author: Necktwi Ozfguah <necktwi <AT> ferryfair <DOT> com>
3 AuthorDate: Wed May 8 15:37:02 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed May 8 20:39:19 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=e073f305
7
8 net-fs/nfs-utils: fixed repoman fatals
9
10 added the missing 2.3.2 patch files
11
12 Signed-off-by: Necktwi Ozfguah <necktwi <AT> ferryfair.com>
13 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
14
15 .../files/nfs-utils-2.3.2-junction_libs.patch | 45 ++++++++++++++++++
16 .../files/nfs-utils-2.3.2-no-werror.patch | 53 ++++++++++++++++++++++
17 net-fs/nfs-utils/metadata.xml | 1 +
18 net-fs/nfs-utils/nfs-utils-2.3.3.ebuild | 2 +-
19 4 files changed, 100 insertions(+), 1 deletion(-)
20
21 diff --git a/net-fs/nfs-utils/files/nfs-utils-2.3.2-junction_libs.patch b/net-fs/nfs-utils/files/nfs-utils-2.3.2-junction_libs.patch
22 new file mode 100644
23 index 0000000..f13f07a
24 --- /dev/null
25 +++ b/net-fs/nfs-utils/files/nfs-utils-2.3.2-junction_libs.patch
26 @@ -0,0 +1,45 @@
27 +From 8f3e4f4d6df9f813572051e12e974b35c26a1743 Mon Sep 17 00:00:00 2001
28 +From: Lars Wendler <polynomial-c@g.o>
29 +Date: Mon, 28 May 2018 12:13:10 +0200
30 +Subject: [PATCH] Fix undefined references and bad include when build with
31 + junction support
32 +
33 +---
34 + support/junction/Makefile.am | 2 +-
35 + utils/nfsref/Makefile.am | 6 +++---
36 + 2 files changed, 4 insertions(+), 4 deletions(-)
37 +
38 +diff --git a/support/junction/Makefile.am b/support/junction/Makefile.am
39 +index 97e7426..89cb532 100644
40 +--- a/support/junction/Makefile.am
41 ++++ b/support/junction/Makefile.am
42 +@@ -31,4 +31,4 @@ libjunction_la_SOURCES = display.c export-cache.c junction.c \
43 +
44 + MAINTAINERCLEANFILES = Makefile.in
45 +
46 +-AM_CPPFLAGS = -I. -I../include -I/usr/include/libxml2
47 ++AM_CPPFLAGS = -I. -I../include -I/usr/include/libxml2 @TIRPC_CFLAGS@
48 +diff --git a/utils/nfsref/Makefile.am b/utils/nfsref/Makefile.am
49 +index 2b2bb53..a652b03 100644
50 +--- a/utils/nfsref/Makefile.am
51 ++++ b/utils/nfsref/Makefile.am
52 +@@ -27,13 +27,13 @@ noinst_HEADERS = nfsref.h
53 +
54 + sbin_PROGRAMS = nfsref
55 + nfsref_SOURCES = add.c lookup.c nfsref.c remove.c
56 +-LDADD = $(LIBXML2) $(LIBCAP) \
57 +- ../../support/nfs/libnfs.la \
58 ++LIBS += $(LIBXML2) $(LIBCAP)
59 ++LDADD = ../../support/nfs/libnfs.la \
60 + ../../support/junction/libjunction.la
61 +
62 + man8_MANS = nfsref.man
63 +
64 + MAINTAINERCLEANFILES = Makefile.in
65 +
66 +-AM_CPPFLAGS = -I. -I../../support/include
67 ++AM_CPPFLAGS = -I. -I../../support/include @TIRPC_CFLAGS@
68 + ##AM_LDFLAGS = -Wl,--as-needed
69 +--
70 +2.17.0
71 +
72
73 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
74 new file mode 100644
75 index 0000000..d06fc4c
76 --- /dev/null
77 +++ b/net-fs/nfs-utils/files/nfs-utils-2.3.2-no-werror.patch
78 @@ -0,0 +1,53 @@
79 +https://bugs.gentoo.org/656984
80 +
81 +Don't build with -Werror flags.
82 +
83 +--- a/configure.ac
84 ++++ b/configure.ac
85 +@@ -544,45 +544,11 @@
86 + AC_SUBST(LDFLAGS_FOR_BUILD)
87 +
88 + my_am_cflags="\
89 +- -pipe \
90 + -Wall \
91 + -Wextra \
92 +- -Werror=strict-prototypes \
93 +- -Werror=missing-prototypes \
94 +- -Werror=missing-declarations \
95 +- -Werror=format=2 \
96 +- -Werror=undef \
97 +- -Werror=missing-include-dirs \
98 +- -Werror=strict-aliasing=2 \
99 +- -Werror=init-self \
100 +- -Werror=implicit-function-declaration \
101 +- -Werror=return-type \
102 +- -Werror=switch \
103 +- -Werror=overflow \
104 +- -Werror=parentheses \
105 +- -Werror=aggregate-return \
106 +- -Werror=unused-result \
107 + -fno-strict-aliasing \
108 + "
109 +-
110 +-AC_DEFUN([CHECK_CCSUPPORT], [
111 +- my_save_cflags="$CFLAGS"
112 +- CFLAGS=$1
113 +- AC_MSG_CHECKING([whether CC supports $1])
114 +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
115 +- [AC_MSG_RESULT([yes])]
116 +- [$2+=$1],
117 +- [AC_MSG_RESULT([no])]
118 +- )
119 +- CFLAGS="$my_save_cflags"
120 +-])
121 +-
122 +-CHECK_CCSUPPORT([-Werror=format-overflow=2], [flg1])
123 +-CHECK_CCSUPPORT([-Werror=int-conversion], [flg2])
124 +-CHECK_CCSUPPORT([-Werror=incompatible-pointer-types], [flg3])
125 +-CHECK_CCSUPPORT([-Werror=misleading-indentation], [flg4])
126 +-
127 +-AC_SUBST([AM_CFLAGS], ["$my_am_cflags $flg1 $flg2 $flg3 $flg4"])
128 ++AC_SUBST([AM_CFLAGS], ["$my_am_cflags"])
129 +
130 + # Make sure that $ACLOCAL_FLAGS are used during a rebuild
131 + AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \$(ACLOCAL_FLAGS)"])
132
133 diff --git a/net-fs/nfs-utils/metadata.xml b/net-fs/nfs-utils/metadata.xml
134 index 34459d2..45351e4 100644
135 --- a/net-fs/nfs-utils/metadata.xml
136 +++ b/net-fs/nfs-utils/metadata.xml
137 @@ -7,6 +7,7 @@
138 </maintainer>
139 <longdescription>NFS client and server daemons</longdescription>
140 <use>
141 + <flag name="junction">Enable NFS junction support in nfsref</flag>
142 <flag name="ldap">Add ldap support</flag>
143 <flag name="libmount">Link mount.nfs with libmount</flag>
144 <flag name="nfsdcld">Enable nfsdcld NFSv4 clientid tracking daemon</flag>
145
146 diff --git a/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild b/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild
147 index a324c7e..be26330 100644
148 --- a/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild
149 +++ b/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild
150 @@ -68,7 +68,7 @@ PATCHES=(
151 "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
152 "${FILESDIR}"/${PN}-2.3.2-junction_libs.patch
153 "${FILESDIR}"/${PN}-2.3.2-no-werror.patch
154 - "${FILESDIR}"/${PN}-musl.patch
155 + "${FILESDIR}"/${PN}-musl.patch
156 )
157
158 src_prepare() {