1 |
commit: d09fc86f54e411052bd377e5dcc239be011be8a5 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 10 14:14:27 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 10 14:18:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d09fc86f |
7 |
|
8 |
sys-apps/acl: Revbump to fix compilation with >=sys-apps/attr-2.4.48 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
sys-apps/acl/acl-2.2.52-r2.ebuild | 65 ++++++++ |
13 |
sys-apps/acl/files/acl-2.2.52-xattr_header.patch | 201 +++++++++++++++++++++++ |
14 |
2 files changed, 266 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/acl/acl-2.2.52-r2.ebuild b/sys-apps/acl/acl-2.2.52-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..4bc0d2945f1 |
19 |
--- /dev/null |
20 |
+++ b/sys-apps/acl/acl-2.2.52-r2.ebuild |
21 |
@@ -0,0 +1,65 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+inherit eutils libtool ltprune toolchain-funcs multilib-minimal |
28 |
+ |
29 |
+DESCRIPTION="access control list utilities, libraries and headers" |
30 |
+HOMEPAGE="https://savannah.nongnu.org/projects/acl" |
31 |
+SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz" |
32 |
+ |
33 |
+LICENSE="LGPL-2.1" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" |
36 |
+IUSE="nls static-libs" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] |
40 |
+" |
41 |
+DEPEND="${RDEPEND} |
42 |
+ nls? ( sys-devel/gettext )" |
43 |
+ |
44 |
+PATCHES=( |
45 |
+ "${FILESDIR}/${P}-xattr_header.patch" |
46 |
+) |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ |
51 |
+ sed -i \ |
52 |
+ -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ |
53 |
+ -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ |
54 |
+ include/builddefs.in \ |
55 |
+ || die |
56 |
+ strip-linguas po |
57 |
+ elibtoolize #580792 |
58 |
+ |
59 |
+ # same as https://savannah.nongnu.org/bugs/index.php?39736 |
60 |
+ multilib_copy_sources |
61 |
+} |
62 |
+ |
63 |
+multilib_src_configure() { |
64 |
+ unset PLATFORM #184564 |
65 |
+ export OPTIMIZER=${CFLAGS} |
66 |
+ export DEBUG=-DNDEBUG |
67 |
+ |
68 |
+ local myeconfargs=( |
69 |
+ --bindir="${EPREFIX}"/bin |
70 |
+ --enable-shared $(use_enable static-libs static) |
71 |
+ --libexecdir="${EPREFIX}"/usr/$(get_libdir) |
72 |
+ $(use_enable nls gettext) |
73 |
+ ) |
74 |
+ econf "${myeconfargs[@]}" |
75 |
+} |
76 |
+ |
77 |
+multilib_src_install() { |
78 |
+ emake DIST_ROOT="${D}" install install-dev install-lib |
79 |
+ |
80 |
+ # move shared libs to / |
81 |
+ gen_usr_ldscript -a acl |
82 |
+} |
83 |
+ |
84 |
+multilib_src_install_all() { |
85 |
+ use static-libs || prune_libtool_files --all |
86 |
+} |
87 |
|
88 |
diff --git a/sys-apps/acl/files/acl-2.2.52-xattr_header.patch b/sys-apps/acl/files/acl-2.2.52-xattr_header.patch |
89 |
new file mode 100644 |
90 |
index 00000000000..f48709ae480 |
91 |
--- /dev/null |
92 |
+++ b/sys-apps/acl/files/acl-2.2.52-xattr_header.patch |
93 |
@@ -0,0 +1,201 @@ |
94 |
+Backported from: |
95 |
+http://git.savannah.nongnu.org/cgit/acl.git/commit/?id=79f563779b9b9ba89cc2352d70e3cdf27acff513 |
96 |
+ |
97 |
+--- acl-2.2.52/configure |
98 |
++++ acl-2.2.52/configure |
99 |
+@@ -12416,26 +12416,6 @@ |
100 |
+ fi |
101 |
+ |
102 |
+ |
103 |
+- for ac_header in attr/xattr.h |
104 |
+-do : |
105 |
+- ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" |
106 |
+-if test "x$ac_cv_header_attr_xattr_h" = xyes; then : |
107 |
+- cat >>confdefs.h <<_ACEOF |
108 |
+-#define HAVE_ATTR_XATTR_H 1 |
109 |
+-_ACEOF |
110 |
+- |
111 |
+-fi |
112 |
+- |
113 |
+-done |
114 |
+- |
115 |
+- if test "$ac_cv_header_attr_xattr_h" != "yes"; then |
116 |
+- echo |
117 |
+- echo 'FATAL ERROR: attr/xattr.h does not exist.' |
118 |
+- echo 'Install the extended attributes (attr) development package.' |
119 |
+- echo 'Alternatively, run "make install-dev" from the attr source.' |
120 |
+- exit 1 |
121 |
+- fi |
122 |
+- |
123 |
+ for ac_header in attr/error_context.h |
124 |
+ do : |
125 |
+ ac_fn_c_check_header_mongrel "$LINENO" "attr/error_context.h" "ac_cv_header_attr_error_context_h" "$ac_includes_default" |
126 |
+--- acl-2.2.52/libacl/acl_delete_def_file.c |
127 |
++++ acl-2.2.52/libacl/acl_delete_def_file.c |
128 |
+@@ -20,11 +20,11 @@ |
129 |
+ */ |
130 |
+ |
131 |
+ #include <sys/types.h> |
132 |
+-#include <attr/xattr.h> |
133 |
++#include <sys/xattr.h> |
134 |
+ #include "byteorder.h" |
135 |
+ #include "acl_ea.h" |
136 |
+ #include "config.h" |
137 |
+- |
138 |
++#include "libacl.h" |
139 |
+ |
140 |
+ /* 23.4.8 */ |
141 |
+ int |
142 |
+--- acl-2.2.52/libacl/acl_extended_fd.c |
143 |
++++ acl-2.2.52/libacl/acl_extended_fd.c |
144 |
+@@ -20,13 +20,12 @@ |
145 |
+ */ |
146 |
+ |
147 |
+ #include <unistd.h> |
148 |
+-#include <attr/xattr.h> |
149 |
++#include <sys/xattr.h> |
150 |
+ #include "libacl.h" |
151 |
+ |
152 |
+ #include "byteorder.h" |
153 |
+ #include "acl_ea.h" |
154 |
+ |
155 |
+- |
156 |
+ int |
157 |
+ acl_extended_fd(int fd) |
158 |
+ { |
159 |
+--- acl-2.2.52/libacl/__acl_extended_file.c |
160 |
++++ acl-2.2.52/libacl/__acl_extended_file.c |
161 |
+@@ -20,14 +20,13 @@ |
162 |
+ */ |
163 |
+ |
164 |
+ #include <unistd.h> |
165 |
+-#include <attr/xattr.h> |
166 |
++#include <sys/xattr.h> |
167 |
+ #include "libacl.h" |
168 |
+ |
169 |
+ #include "byteorder.h" |
170 |
+ #include "acl_ea.h" |
171 |
+ #include "__acl_extended_file.h" |
172 |
+ |
173 |
+- |
174 |
+ int |
175 |
+ __acl_extended_file(const char *path_p, |
176 |
+ ssize_t (*fun)(const char *, const char *, |
177 |
+--- acl-2.2.52/libacl/acl_extended_file.c |
178 |
++++ acl-2.2.52/libacl/acl_extended_file.c |
179 |
+@@ -20,7 +20,7 @@ |
180 |
+ */ |
181 |
+ |
182 |
+ #include <unistd.h> |
183 |
+-#include <attr/xattr.h> |
184 |
++#include <sys/xattr.h> |
185 |
+ #include "libacl.h" |
186 |
+ |
187 |
+ #include "__acl_extended_file.h" |
188 |
+--- acl-2.2.52/libacl/acl_extended_file_nofollow.c |
189 |
++++ acl-2.2.52/libacl/acl_extended_file_nofollow.c |
190 |
+@@ -20,7 +20,7 @@ |
191 |
+ */ |
192 |
+ |
193 |
+ #include <unistd.h> |
194 |
+-#include <attr/xattr.h> |
195 |
++#include <sys/xattr.h> |
196 |
+ #include "libacl.h" |
197 |
+ |
198 |
+ #include "__acl_extended_file.h" |
199 |
+--- acl-2.2.52/libacl/acl_get_fd.c |
200 |
++++ acl-2.2.52/libacl/acl_get_fd.c |
201 |
+@@ -23,7 +23,7 @@ |
202 |
+ #include <sys/stat.h> |
203 |
+ #include <unistd.h> |
204 |
+ #include <stdio.h> |
205 |
+-#include <attr/xattr.h> |
206 |
++#include <sys/xattr.h> |
207 |
+ #include <acl/libacl.h> |
208 |
+ #include "libacl.h" |
209 |
+ #include "__acl_from_xattr.h" |
210 |
+@@ -31,7 +31,6 @@ |
211 |
+ #include "byteorder.h" |
212 |
+ #include "acl_ea.h" |
213 |
+ |
214 |
+- |
215 |
+ /* 23.4.15 */ |
216 |
+ acl_t |
217 |
+ acl_get_fd(int fd) |
218 |
+--- acl-2.2.52/libacl/acl_get_file.c |
219 |
++++ acl-2.2.52/libacl/acl_get_file.c |
220 |
+@@ -23,7 +23,7 @@ |
221 |
+ #include <sys/stat.h> |
222 |
+ #include <unistd.h> |
223 |
+ #include <stdio.h> |
224 |
+-#include <attr/xattr.h> |
225 |
++#include <sys/xattr.h> |
226 |
+ #include <acl/libacl.h> |
227 |
+ #include "libacl.h" |
228 |
+ #include "__acl_from_xattr.h" |
229 |
+@@ -31,7 +31,6 @@ |
230 |
+ #include "byteorder.h" |
231 |
+ #include "acl_ea.h" |
232 |
+ |
233 |
+- |
234 |
+ /* 23.4.16 */ |
235 |
+ acl_t |
236 |
+ acl_get_file(const char *path_p, acl_type_t type) |
237 |
+--- acl-2.2.52/libacl/acl_set_fd.c |
238 |
++++ acl-2.2.52/libacl/acl_set_fd.c |
239 |
+@@ -20,7 +20,7 @@ |
240 |
+ */ |
241 |
+ |
242 |
+ #include <unistd.h> |
243 |
+-#include <attr/xattr.h> |
244 |
++#include <sys/xattr.h> |
245 |
+ #include "libacl.h" |
246 |
+ #include "__acl_to_xattr.h" |
247 |
+ |
248 |
+--- acl-2.2.52/libacl/acl_set_file.c |
249 |
++++ acl-2.2.52/libacl/acl_set_file.c |
250 |
+@@ -22,7 +22,7 @@ |
251 |
+ #include <sys/types.h> |
252 |
+ #include <sys/stat.h> |
253 |
+ #include <unistd.h> |
254 |
+-#include <attr/xattr.h> |
255 |
++#include <sys/xattr.h> |
256 |
+ #include "libacl.h" |
257 |
+ #include "__acl_to_xattr.h" |
258 |
+ |
259 |
+--- acl-2.2.52/libacl/libacl.h |
260 |
++++ acl-2.2.52/libacl/libacl.h |
261 |
+@@ -17,8 +17,13 @@ |
262 |
+ |
263 |
+ #include <errno.h> |
264 |
+ #include <sys/acl.h> |
265 |
++#include <errno.h> |
266 |
+ #include "libobj.h" |
267 |
+ |
268 |
++#ifndef ENOATTR |
269 |
++# define ENOATTR ENODATA |
270 |
++#endif |
271 |
++ |
272 |
+ typedef unsigned int permset_t; |
273 |
+ |
274 |
+ #define ACL_PERM_NONE (0x0000) |
275 |
+--- acl-2.2.52/m4/package_attrdev.m4 |
276 |
++++ acl-2.2.52/m4/package_attrdev.m4 |
277 |
+@@ -12,17 +12,6 @@ |
278 |
+ dnl |
279 |
+ dnl You should have received a copy of the GNU General Public License |
280 |
+ dnl along with this program. If not, see <http://www.gnu.org/licenses/>. |
281 |
+-AC_DEFUN([AC_PACKAGE_NEED_ATTR_XATTR_H], |
282 |
+- [ AC_CHECK_HEADERS([attr/xattr.h]) |
283 |
+- if test "$ac_cv_header_attr_xattr_h" != "yes"; then |
284 |
+- echo |
285 |
+- echo 'FATAL ERROR: attr/xattr.h does not exist.' |
286 |
+- echo 'Install the extended attributes (attr) development package.' |
287 |
+- echo 'Alternatively, run "make install-dev" from the attr source.' |
288 |
+- exit 1 |
289 |
+- fi |
290 |
+- ]) |
291 |
+- |
292 |
+ AC_DEFUN([AC_PACKAGE_NEED_ATTR_ERROR_H], |
293 |
+ [ AC_CHECK_HEADERS([attr/error_context.h]) |
294 |
+ if test "$ac_cv_header_attr_error_context_h" != "yes"; then |