1 |
commit: 25e9d8c30d3aa10eef3bacdb8053a6e7b4bc5e81 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 01:52:56 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 01:52:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25e9d8c3 |
7 |
|
8 |
sys-libs/libxcrypt: drop 4.4.27, 4.4.28 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libxcrypt/Manifest | 1 - |
13 |
sys-libs/libxcrypt/libxcrypt-4.4.27.ebuild | 225 ------------------------ |
14 |
sys-libs/libxcrypt/libxcrypt-4.4.28.ebuild | 271 ----------------------------- |
15 |
3 files changed, 497 deletions(-) |
16 |
|
17 |
diff --git a/sys-libs/libxcrypt/Manifest b/sys-libs/libxcrypt/Manifest |
18 |
index 8e0a4b158e80..96779be2c5c3 100644 |
19 |
--- a/sys-libs/libxcrypt/Manifest |
20 |
+++ b/sys-libs/libxcrypt/Manifest |
21 |
@@ -1,3 +1,2 @@ |
22 |
DIST libxcrypt-4.4.20-autotools.tar.xz 628688 BLAKE2B 4c23af2a765495758e52c8e95d53d1c1d911fea011375160c4f10e468939734fcc7198cc327fafa4d5c90afa6d4c56dfe6d1b56c2c17bbc015b44cffcd7bcc8b SHA512 5b7504e9d83df12af7d11864e88d1034ed9ce0a837ef061044c5c7fe603d7f3e5613ddf20b30613a7943735120cd058f2117401d59879afcba34ce0e48ae62ee |
23 |
-DIST libxcrypt-4.4.27-autotools.tar.xz 619240 BLAKE2B 13dd5730fded0684c8e7321fee8a786663ff1080a6ca248bd718c4f6c9f6bd2853689c347be9f9ae51ebc1281aaa2143dfc020149382d259e7eefe66ac8b675e SHA512 f13ae1e69bf5850abb47a28f9ac3e3b0a8b3123adc53d39fd39a26d53847bf6e3fdca751e086cd80ce4e5d9ee419b09148c247cbe5f663b3019b66f82cdc5f5c |
24 |
DIST libxcrypt-4.4.28-autotools.tar.xz 618560 BLAKE2B c56d510201651e36cbd950b5a0a32273fdbce1f053109aa5867b2c6a57e2a896c34c981c1a2e732a8f34539b754ebe7f50d1b5bf59f9549a75ad6420921f3e1d SHA512 3c60fd32dea308152c4272522c29668c83e88bea47c98b9fe796ed70f5460ad2a9616ffbe789c03e417b28d3c792361b16031bda3d8bc5b6c06f0ebdc66c8217 |
25 |
|
26 |
diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.27.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.27.ebuild |
27 |
deleted file mode 100644 |
28 |
index 60500e99a483..000000000000 |
29 |
--- a/sys-libs/libxcrypt/libxcrypt-4.4.27.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,225 +0,0 @@ |
32 |
-# Copyright 2004-2022 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=7 |
36 |
- |
37 |
-PYTHON_COMPAT=( python3_{8..10} ) |
38 |
-# NEED_BOOTSTRAP is for developers to quickly generate a tarball |
39 |
-# for publishing to the tree. |
40 |
-NEED_BOOTSTRAP="no" |
41 |
-inherit multibuild multilib python-any-r1 toolchain-funcs multilib-minimal |
42 |
- |
43 |
-DESCRIPTION="Extended crypt library for descrypt, md5crypt, bcrypt, and others" |
44 |
-HOMEPAGE="https://github.com/besser82/libxcrypt" |
45 |
-if [[ ${NEED_BOOTSTRAP} == "yes" ]] ; then |
46 |
- inherit autotools |
47 |
- SRC_URI="https://github.com/besser82/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
-else |
49 |
- SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-autotools.tar.xz" |
50 |
-fi |
51 |
- |
52 |
-LICENSE="LGPL-2.1+ public-domain BSD BSD-2" |
53 |
-SLOT="0/1" |
54 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" |
55 |
-IUSE="+compat split-usr static-libs system test" |
56 |
-REQUIRED_USE="split-usr? ( system )" |
57 |
-RESTRICT="!test? ( test )" |
58 |
- |
59 |
-DEPEND="system? ( |
60 |
- elibc_glibc? ( |
61 |
- sys-libs/glibc[-crypt(+)] |
62 |
- !sys-libs/glibc[crypt(+)] |
63 |
- ) |
64 |
- !sys-libs/musl |
65 |
- ) |
66 |
-" |
67 |
-RDEPEND="${DEPEND}" |
68 |
-BDEPEND="dev-lang/perl |
69 |
- test? ( $(python_gen_any_dep 'dev-python/passlib[${PYTHON_USEDEP}]') )" |
70 |
- |
71 |
-python_check_deps() { |
72 |
- python_has_version "dev-python/passlib[${PYTHON_USEDEP}]" |
73 |
-} |
74 |
- |
75 |
-pkg_pretend() { |
76 |
- if has "distcc" ${FEATURES} ; then |
77 |
- ewarn "Please verify all distcc nodes are using the same versions of GCC (>= 10) and Binutils!" |
78 |
- ewarn "Older/mismatched versions of GCC may lead to a misbehaving library: bug #823179." |
79 |
- |
80 |
- if [[ ${BUILD_TYPE} != "binary" ]] && tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]] ; then |
81 |
- die "libxcrypt is known to fail to build or be broken at runtime with < GCC 10 (bug #823179)!" |
82 |
- fi |
83 |
- fi |
84 |
-} |
85 |
- |
86 |
-pkg_setup() { |
87 |
- MULTIBUILD_VARIANTS=( |
88 |
- $(usex compat 'xcrypt_compat' '') |
89 |
- xcrypt_nocompat |
90 |
- ) |
91 |
- |
92 |
- use test && python-any-r1_pkg_setup |
93 |
-} |
94 |
- |
95 |
-src_prepare() { |
96 |
- default |
97 |
- |
98 |
- # WARNING: Please read on bumping or applying patches! |
99 |
- # |
100 |
- # There are two circular dependencies to be aware of: |
101 |
- # 1) |
102 |
- # if we're bootstrapping configure and makefiles: |
103 |
- # libxcrypt -> automake -> perl -> libxcrypt |
104 |
- # |
105 |
- # mitigation: |
106 |
- # toolchain@ manually runs `make dist` after running autoconf + `./configure` |
107 |
- # and the ebuild uses that. |
108 |
- # (Don't include the pre-generated Perl artefacts.) |
109 |
- # |
110 |
- # solution for future: |
111 |
- # Upstream are working on producing `make dist` tarballs. |
112 |
- # https://github.com/besser82/libxcrypt/issues/134#issuecomment-871833573 |
113 |
- # |
114 |
- # 2) |
115 |
- # configure *unconditionally* needs Perl at build time to generate |
116 |
- # a list of enabled algorithms based on the set passed to `configure`: |
117 |
- # libxcrypt -> perl -> libxcrypt |
118 |
- # |
119 |
- # mitigation: |
120 |
- # None at the moment. |
121 |
- # |
122 |
- # solution for future: |
123 |
- # Not possible right now. Upstream intend on depending on Perl for further |
124 |
- # configuration options. |
125 |
- # https://github.com/besser82/libxcrypt/issues/134#issuecomment-871833573 |
126 |
- # |
127 |
- # Therefore, on changes (inc. bumps): |
128 |
- # * You must check whether upstream have started providing tarballs with bootstrapped |
129 |
- # auto{conf,make}; |
130 |
- # |
131 |
- # * diff the build system changes! |
132 |
- # |
133 |
- if [[ ${NEED_BOOTSTRAP} == "yes" ]] ; then |
134 |
- # Facilitate our split variant build for compat + non-compat |
135 |
- eapply "${FILESDIR}"/${PN}-4.4.19-multibuild.patch |
136 |
- eautoreconf |
137 |
- fi |
138 |
-} |
139 |
- |
140 |
-src_configure() { |
141 |
- # Avoid possible "illegal instruction" errors with gold |
142 |
- # bug #821496 |
143 |
- tc-ld-disable-gold |
144 |
- |
145 |
- multibuild_foreach_variant multilib-minimal_src_configure |
146 |
-} |
147 |
- |
148 |
-get_xclibdir() { |
149 |
- printf -- "%s/%s/%s\n" \ |
150 |
- "$(usex split-usr '' '/usr')" \ |
151 |
- "$(get_libdir)" \ |
152 |
- "$(usex system '' 'xcrypt')" |
153 |
-} |
154 |
- |
155 |
-multilib_src_configure() { |
156 |
- local -a myconf=( |
157 |
- --disable-werror |
158 |
- --libdir="${EPREFIX}"$(get_xclibdir) |
159 |
- --with-pkgconfigdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig" |
160 |
- --includedir="${EPREFIX}/usr/include/$(usex system '' 'xcrypt')" |
161 |
- ) |
162 |
- |
163 |
- case "${MULTIBUILD_ID}" in |
164 |
- xcrypt_compat-*) |
165 |
- myconf+=( |
166 |
- --disable-static |
167 |
- --disable-xcrypt-compat-files |
168 |
- --enable-obsolete-api=yes |
169 |
- ) |
170 |
- ;; |
171 |
- xcrypt_nocompat-*) |
172 |
- myconf+=( |
173 |
- --enable-obsolete-api=no |
174 |
- $(use_enable static-libs static) |
175 |
- ) |
176 |
- ;; |
177 |
- *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";; |
178 |
- esac |
179 |
- |
180 |
- ECONF_SOURCE="${S}" econf "${myconf[@]}" |
181 |
-} |
182 |
- |
183 |
-src_compile() { |
184 |
- multibuild_foreach_variant multilib-minimal_src_compile |
185 |
-} |
186 |
- |
187 |
-multilib_src_test() { |
188 |
- emake check |
189 |
-} |
190 |
- |
191 |
-src_test() { |
192 |
- multibuild_foreach_variant multilib-minimal_src_test |
193 |
-} |
194 |
- |
195 |
-src_install() { |
196 |
- multibuild_foreach_variant multilib-minimal_src_install |
197 |
- |
198 |
- ( |
199 |
- shopt -s failglob || die "failglob failed" |
200 |
- |
201 |
- # Make sure our man pages do not collide with glibc or man-pages. |
202 |
- for manpage in "${ED}"/usr/share/man/man3/crypt{,_r}.?*; do |
203 |
- mv -n "${manpage}" "$(dirname "${manpage}")/xcrypt_$(basename "${manpage}")" \ |
204 |
- || die "mv failed" |
205 |
- done |
206 |
- ) || die "failglob error" |
207 |
- |
208 |
- # Remove useless stuff from installation |
209 |
- find "${ED}"/usr/share/doc/${PF} -type l -delete || die |
210 |
- find "${ED}" -name '*.la' -delete || die |
211 |
-} |
212 |
- |
213 |
-multilib_src_install() { |
214 |
- emake DESTDIR="${D}" install |
215 |
- |
216 |
- # Don't install the libcrypt.so symlink for the "compat" version |
217 |
- case "${MULTIBUILD_ID}" in |
218 |
- xcrypt_compat-*) |
219 |
- rm "${ED}"$(get_xclibdir)/libcrypt$(get_libname) \ |
220 |
- || die "failed to remove extra compat libraries" |
221 |
- ;; |
222 |
- xcrypt_nocompat-*) |
223 |
- if use split-usr; then |
224 |
- ( |
225 |
- if use static-libs; then |
226 |
- # .a files are installed to /$(get_libdir) by default |
227 |
- # Move static libraries to /usr prefix or portage will abort |
228 |
- shopt -s nullglob || die "failglob failed" |
229 |
- static_libs=( "${ED}"/$(get_xclibdir)/*.a ) |
230 |
- |
231 |
- if [[ -n ${static_libs[*]} ]]; then |
232 |
- dodir "/usr/$(get_xclibdir)" |
233 |
- mv "${static_libs[@]}" "${ED}/usr/$(get_xclibdir)" \ |
234 |
- || die "Moving static libs failed" |
235 |
- fi |
236 |
- fi |
237 |
- |
238 |
- if use system; then |
239 |
- # Move versionless .so symlinks from /$(get_libdir) to /usr/$(get_libdir) |
240 |
- # to allow linker to correctly find shared libraries. |
241 |
- shopt -s failglob || die "failglob failed" |
242 |
- |
243 |
- for lib_file in "${ED}"$(get_xclibdir)/*$(get_libname); do |
244 |
- lib_file_basename="$(basename "${lib_file}")" |
245 |
- lib_file_target="$(basename "$(readlink -f "${lib_file}")")" |
246 |
- dosym "../../$(get_libdir)/${lib_file_target}" "/usr/$(get_xclibdir)/${lib_file_basename}" |
247 |
- done |
248 |
- |
249 |
- rm "${ED}"$(get_xclibdir)/*$(get_libname) || die "Removing symlinks in incorrect location failed" |
250 |
- fi |
251 |
- ) |
252 |
- fi |
253 |
- ;; |
254 |
- *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";; |
255 |
- esac |
256 |
-} |
257 |
|
258 |
diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.28.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.28.ebuild |
259 |
deleted file mode 100644 |
260 |
index 0a364e88a43d..000000000000 |
261 |
--- a/sys-libs/libxcrypt/libxcrypt-4.4.28.ebuild |
262 |
+++ /dev/null |
263 |
@@ -1,271 +0,0 @@ |
264 |
-# Copyright 2004-2022 Gentoo Authors |
265 |
-# Distributed under the terms of the GNU General Public License v2 |
266 |
- |
267 |
-EAPI=7 |
268 |
- |
269 |
-PYTHON_COMPAT=( python3_{8..10} ) |
270 |
-# NEED_BOOTSTRAP is for developers to quickly generate a tarball |
271 |
-# for publishing to the tree. |
272 |
-NEED_BOOTSTRAP="no" |
273 |
-inherit multibuild multilib python-any-r1 toolchain-funcs multilib-minimal |
274 |
- |
275 |
-DESCRIPTION="Extended crypt library for descrypt, md5crypt, bcrypt, and others" |
276 |
-HOMEPAGE="https://github.com/besser82/libxcrypt" |
277 |
-if [[ ${NEED_BOOTSTRAP} == "yes" ]] ; then |
278 |
- inherit autotools |
279 |
- SRC_URI="https://github.com/besser82/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
280 |
-else |
281 |
- SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-autotools.tar.xz" |
282 |
-fi |
283 |
- |
284 |
-LICENSE="LGPL-2.1+ public-domain BSD BSD-2" |
285 |
-SLOT="0/1" |
286 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
287 |
-IUSE="+compat split-usr static-libs system test" |
288 |
-REQUIRED_USE="split-usr? ( system )" |
289 |
-RESTRICT="!test? ( test )" |
290 |
- |
291 |
-export CTARGET=${CTARGET:-${CHOST}} |
292 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
293 |
- if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then |
294 |
- export CTARGET=${CATEGORY/cross-} |
295 |
- fi |
296 |
-fi |
297 |
- |
298 |
-is_cross() { |
299 |
- local enabled_abis=( $(multilib_get_enabled_abis) ) |
300 |
- [[ "${#enabled_abis[@]}" -le 1 ]] && [[ ${CHOST} != ${CTARGET} ]] |
301 |
-} |
302 |
- |
303 |
-DEPEND="system? ( |
304 |
- elibc_glibc? ( |
305 |
- ${CATEGORY}/glibc[-crypt(+)] |
306 |
- !${CATEGORY}/glibc[crypt(+)] |
307 |
- ) |
308 |
- !${CATEGORY}/musl |
309 |
- ) |
310 |
-" |
311 |
-RDEPEND="${DEPEND}" |
312 |
-BDEPEND="dev-lang/perl |
313 |
- test? ( $(python_gen_any_dep 'dev-python/passlib[${PYTHON_USEDEP}]') )" |
314 |
- |
315 |
-python_check_deps() { |
316 |
- python_has_version "dev-python/passlib[${PYTHON_USEDEP}]" |
317 |
-} |
318 |
- |
319 |
-pkg_pretend() { |
320 |
- if has "distcc" ${FEATURES} ; then |
321 |
- ewarn "Please verify all distcc nodes are using the same versions of GCC (>= 10) and Binutils!" |
322 |
- ewarn "Older/mismatched versions of GCC may lead to a misbehaving library: bug #823179." |
323 |
- |
324 |
- if [[ ${BUILD_TYPE} != "binary" ]] && tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]] ; then |
325 |
- die "libxcrypt is known to fail to build or be broken at runtime with < GCC 10 (bug #823179)!" |
326 |
- fi |
327 |
- fi |
328 |
-} |
329 |
- |
330 |
-pkg_setup() { |
331 |
- MULTIBUILD_VARIANTS=( |
332 |
- $(usex compat 'xcrypt_compat' '') |
333 |
- xcrypt_nocompat |
334 |
- ) |
335 |
- |
336 |
- use test && python-any-r1_pkg_setup |
337 |
-} |
338 |
- |
339 |
-src_prepare() { |
340 |
- default |
341 |
- |
342 |
- # WARNING: Please read on bumping or applying patches! |
343 |
- # |
344 |
- # There are two circular dependencies to be aware of: |
345 |
- # 1) |
346 |
- # if we're bootstrapping configure and makefiles: |
347 |
- # libxcrypt -> automake -> perl -> libxcrypt |
348 |
- # |
349 |
- # mitigation: |
350 |
- # toolchain@ manually runs `make dist` after running autoconf + `./configure` |
351 |
- # and the ebuild uses that. |
352 |
- # (Don't include the pre-generated Perl artefacts.) |
353 |
- # |
354 |
- # solution for future: |
355 |
- # Upstream are working on producing `make dist` tarballs. |
356 |
- # https://github.com/besser82/libxcrypt/issues/134#issuecomment-871833573 |
357 |
- # |
358 |
- # 2) |
359 |
- # configure *unconditionally* needs Perl at build time to generate |
360 |
- # a list of enabled algorithms based on the set passed to `configure`: |
361 |
- # libxcrypt -> perl -> libxcrypt |
362 |
- # |
363 |
- # mitigation: |
364 |
- # None at the moment. |
365 |
- # |
366 |
- # solution for future: |
367 |
- # Not possible right now. Upstream intend on depending on Perl for further |
368 |
- # configuration options. |
369 |
- # https://github.com/besser82/libxcrypt/issues/134#issuecomment-871833573 |
370 |
- # |
371 |
- # Therefore, on changes (inc. bumps): |
372 |
- # * You must check whether upstream have started providing tarballs with bootstrapped |
373 |
- # auto{conf,make}; |
374 |
- # |
375 |
- # * diff the build system changes! |
376 |
- # |
377 |
- if [[ ${NEED_BOOTSTRAP} == "yes" ]] ; then |
378 |
- # Facilitate our split variant build for compat + non-compat |
379 |
- eapply "${FILESDIR}"/${PN}-4.4.19-multibuild.patch |
380 |
- eautoreconf |
381 |
- fi |
382 |
-} |
383 |
- |
384 |
-src_configure() { |
385 |
- # Avoid possible "illegal instruction" errors with gold |
386 |
- # bug #821496 |
387 |
- tc-ld-disable-gold |
388 |
- |
389 |
- multibuild_foreach_variant multilib-minimal_src_configure |
390 |
-} |
391 |
- |
392 |
-get_xcprefix() { |
393 |
- if is_cross; then |
394 |
- echo "${EPREFIX}/usr/${CTARGET}" |
395 |
- else |
396 |
- echo "${EPREFIX}" |
397 |
- fi |
398 |
-} |
399 |
- |
400 |
-get_xclibdir() { |
401 |
- printf -- "%s/%s/%s/%s\n" \ |
402 |
- "$(get_xcprefix)" \ |
403 |
- "$(usex split-usr '' '/usr')" \ |
404 |
- "$(get_libdir)" \ |
405 |
- "$(usex system '' 'xcrypt')" |
406 |
-} |
407 |
- |
408 |
-get_xcincludedir() { |
409 |
- printf -- "%s/usr/include/%s\n" \ |
410 |
- "$(get_xcprefix)" \ |
411 |
- "$(usex system '' 'xcrypt')" |
412 |
-} |
413 |
- |
414 |
-get_xcmandir() { |
415 |
- printf -- "%s/usr/share/man\n" \ |
416 |
- "$(get_xcprefix)" |
417 |
-} |
418 |
- |
419 |
-get_xcpkgconfigdir() { |
420 |
- printf -- "%s/usr/%s/pkgconfig\n" \ |
421 |
- "$(get_xcprefix)" \ |
422 |
- "$(get_libdir)" |
423 |
-} |
424 |
- |
425 |
-multilib_src_configure() { |
426 |
- local -a myconf=( |
427 |
- --disable-werror |
428 |
- --libdir=$(get_xclibdir) |
429 |
- --with-pkgconfigdir=$(get_xcpkgconfigdir) |
430 |
- --includedir=$(get_xcincludedir) |
431 |
- --mandir="$(get_xcmandir)" |
432 |
- ) |
433 |
- |
434 |
- case "${MULTIBUILD_ID}" in |
435 |
- xcrypt_compat-*) |
436 |
- myconf+=( |
437 |
- --disable-static |
438 |
- --disable-xcrypt-compat-files |
439 |
- --enable-obsolete-api=yes |
440 |
- ) |
441 |
- ;; |
442 |
- xcrypt_nocompat-*) |
443 |
- myconf+=( |
444 |
- --enable-obsolete-api=no |
445 |
- $(use_enable static-libs static) |
446 |
- ) |
447 |
- ;; |
448 |
- *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";; |
449 |
- esac |
450 |
- |
451 |
- ECONF_SOURCE="${S}" econf "${myconf[@]}" |
452 |
-} |
453 |
- |
454 |
-src_compile() { |
455 |
- multibuild_foreach_variant multilib-minimal_src_compile |
456 |
-} |
457 |
- |
458 |
-multilib_src_test() { |
459 |
- emake check |
460 |
-} |
461 |
- |
462 |
-src_test() { |
463 |
- multibuild_foreach_variant multilib-minimal_src_test |
464 |
-} |
465 |
- |
466 |
-src_install() { |
467 |
- multibuild_foreach_variant multilib-minimal_src_install |
468 |
- |
469 |
- ( |
470 |
- shopt -s failglob || die "failglob failed" |
471 |
- |
472 |
- # Make sure our man pages do not collide with glibc or man-pages. |
473 |
- for manpage in "${D}$(get_xcmandir)"/man3/crypt{,_r}.?*; do |
474 |
- mv -n "${manpage}" "$(dirname "${manpage}")/xcrypt_$(basename "${manpage}")" \ |
475 |
- || die "mv failed" |
476 |
- done |
477 |
- ) || die "failglob error" |
478 |
- |
479 |
- # Remove useless stuff from installation |
480 |
- find "${ED}"/usr/share/doc/${PF} -type l -delete || die |
481 |
- find "${ED}" -name '*.la' -delete || die |
482 |
- |
483 |
- # workaround broken upstream cross-* --docdir by installing files in proper locations |
484 |
- if is_cross; then |
485 |
- insinto "$(get_xcprefix)"/usr/share |
486 |
- doins -r "${ED}"/usr/share/doc |
487 |
- rm -r "${ED}"/usr/share/doc || die |
488 |
- fi |
489 |
-} |
490 |
- |
491 |
-multilib_src_install() { |
492 |
- emake DESTDIR="${D}" install |
493 |
- |
494 |
- # Don't install the libcrypt.so symlink for the "compat" version |
495 |
- case "${MULTIBUILD_ID}" in |
496 |
- xcrypt_compat-*) |
497 |
- rm "${D}"$(get_xclibdir)/libcrypt$(get_libname) \ |
498 |
- || die "failed to remove extra compat libraries" |
499 |
- ;; |
500 |
- xcrypt_nocompat-*) |
501 |
- if use split-usr; then |
502 |
- ( |
503 |
- if use static-libs; then |
504 |
- # .a files are installed to /$(get_libdir) by default |
505 |
- # Move static libraries to /usr prefix or portage will abort |
506 |
- shopt -s nullglob || die "failglob failed" |
507 |
- static_libs=( "${D}"/$(get_xclibdir)/*.a ) |
508 |
- |
509 |
- if [[ -n ${static_libs[*]} ]]; then |
510 |
- dodir "/usr/$(get_xclibdir)" |
511 |
- mv "${static_libs[@]}" "${ED}/usr/$(get_xclibdir)" \ |
512 |
- || die "Moving static libs failed" |
513 |
- fi |
514 |
- fi |
515 |
- |
516 |
- if use system; then |
517 |
- # Move versionless .so symlinks from /$(get_libdir) to /usr/$(get_libdir) |
518 |
- # to allow linker to correctly find shared libraries. |
519 |
- shopt -s failglob || die "failglob failed" |
520 |
- |
521 |
- for lib_file in "${D}"$(get_xclibdir)/*$(get_libname); do |
522 |
- lib_file_basename="$(basename "${lib_file}")" |
523 |
- lib_file_target="$(basename "$(readlink -f "${lib_file}")")" |
524 |
- dosym "../../$(get_libdir)/${lib_file_target}" "/usr/$(get_xclibdir)/${lib_file_basename}" |
525 |
- done |
526 |
- |
527 |
- rm "${D}"$(get_xclibdir)/*$(get_libname) || die "Removing symlinks in incorrect location failed" |
528 |
- fi |
529 |
- ) |
530 |
- fi |
531 |
- ;; |
532 |
- *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";; |
533 |
- esac |
534 |
-} |