Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libxcrypt/files/, sys-libs/libxcrypt/
Date: Sat, 12 Sep 2020 04:41:20
Message-Id: 1599885668.b6b6a736d1b2f248319fc8f9bce3179551000012.chutzpah@gentoo
1 commit: b6b6a736d1b2f248319fc8f9bce3179551000012
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 12 04:41:08 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 12 04:41:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6b6a736
7
8 sys-libs/libxcrypt: Remove old
9
10 Package-Manager: Portage-3.0.6, Repoman-3.0.1
11 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
12
13 sys-libs/libxcrypt/Manifest | 3 -
14 .../libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch | 40 -----
15 .../files/libxcrypt-4.4.10-multibuild.patch | 25 ----
16 .../files/libxcrypt-4.4.10-pythonver.patch | 17 ---
17 sys-libs/libxcrypt/libxcrypt-2.4.ebuild | 28 ----
18 sys-libs/libxcrypt/libxcrypt-4.4.10-r1.ebuild | 153 -------------------
19 sys-libs/libxcrypt/libxcrypt-4.4.12-r3.ebuild | 163 ---------------------
20 7 files changed, 429 deletions(-)
21
22 diff --git a/sys-libs/libxcrypt/Manifest b/sys-libs/libxcrypt/Manifest
23 index 45541365c9f..c6dcdc9dde5 100644
24 --- a/sys-libs/libxcrypt/Manifest
25 +++ b/sys-libs/libxcrypt/Manifest
26 @@ -1,5 +1,2 @@
27 -DIST libxcrypt-4.4.10.tar.gz 499736 BLAKE2B 32da99488c21a21c3310a735a08a70002a3a56d7d9d4a9fd0c16436ef2b42ee8a9b877c5b5dcbf1bc9a38fbef3370d5ff4585167ff25025f854ccd020014dcd4 SHA512 fd714542dad40db721c03270b5a03e2c068b0750e887dcac4c651433d5905d08bd5c5db3762cc2e4ceee0103bd62810559ea197d164126169e0b253675415ca2
28 -DIST libxcrypt-4.4.12.tar.gz 493620 BLAKE2B 185cc9a0b9f573801e75bf2ffb3eaa578016804d175443a53b2cef01334acb6f8fa5a0fe72e346ff368e3db355338b1f1dbd00e93828dde2594f0adee3753f69 SHA512 945dfd307ebd3d1b3dd9f22057b23b651c0ffaab55bf4151950565a3f0fea8b0e2bc2886318ceea707985d720e83e8663e4590bc72e91f470bae3a98f41ab30f
29 DIST libxcrypt-4.4.16.tar.gz 480694 BLAKE2B 0e93c2ff45a8148f82a80a67fb732a3ef42e87505d19258023f91d3352a382483204e77e2704e7a0de15f4f1e38a326d0867506a5580faf8c81857270588a4a3 SHA512 e1d3b1262c6be7c6c8847b8c4eb8191d9e5e482798be6f1186876c72f3d8c737124378ec45a38aa464f556e10a557b96f855bd371f03c3611eada27904bf6781
30 DIST libxcrypt-4.4.17.tar.gz 519096 BLAKE2B 12cbe3d1f235baddd8d2ec8159f2a7514e75c2f91cf0db18ef909ec11c38ac19efebecec647a90cafb27c7ebc7e940da448ca8f3edd1c49e5cb9cc4407d5198c SHA512 94aaba6ccf9b6d1a32f9a571ee32261cecd393d5b8d8c6f18d740dc7bb29ac0fbd381124e7f0d84882559bb634208c08151b3dc05c9138fa0a229c4ba20fb6f7
31 -DIST libxcrypt_2.4.orig.tar.gz 361503 BLAKE2B 6347bea4b22ae7742cb516a0a8673bbd7c37f645b2dbb383f4c4a6bbcc95a12897068ab7354fa015bbb65f6dc331b95ce24b48aa4bdd7a57433d8f5bc245392d SHA512 7171ce1b5b7f949232c4db94cf98bdd6396c3e2a8f2f483c041cab92d752e3a2fa93d564ede7efece57c069df129e6cc03049cf3e3f07bd3556031a7c4197cbf
32
33 diff --git a/sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch b/sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch
34 deleted file mode 100644
35 index 150ff99ab2f..00000000000
36 --- a/sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch
37 +++ /dev/null
38 @@ -1,40 +0,0 @@
39 -diff -urN libxcrypt-3.0.2/src/crypt_util.c libxcrypt-3.0.2.new/src/crypt_util.c
40 ---- libxcrypt-3.0.2/src/crypt_util.c 2007-10-25 15:17:46.000000000 +0200
41 -+++ libxcrypt-3.0.2.new/src/crypt_util.c 2013-02-04 12:45:20.560191479 +0100
42 -@@ -30,8 +30,7 @@
43 - #endif
44 - #include <string.h>
45 -
46 --#include <bits/libc-lock.h>
47 --#define __libc_lock_t pthread_mutex_t
48 -+#include <pthread.h>
49 -
50 - #ifndef STATIC
51 - #define STATIC static
52 -@@ -265,7 +264,7 @@
53 - */
54 - struct crypt_data _ufc_foobar;
55 -
56 --__libc_lock_define_initialized (static, _ufc_tables_lock)
57 -+static pthread_mutex_t _ufc_tables_lock = PTHREAD_MUTEX_INITIALIZER;
58 -
59 - #ifdef DEBUG
60 -
61 -@@ -362,7 +361,7 @@
62 - #endif
63 -
64 - if(small_tables_initialized == 0) {
65 -- __libc_lock_lock (_ufc_tables_lock);
66 -+ pthread_mutex_lock (&_ufc_tables_lock);
67 - if(small_tables_initialized)
68 - goto small_tables_done;
69 -
70 -@@ -471,7 +470,7 @@
71 - }
72 - small_tables_initialized = 1;
73 - small_tables_done:
74 -- __libc_lock_unlock(_ufc_tables_lock);
75 -+ pthread_mutex_unlock (&_ufc_tables_lock);
76 - }
77 -
78 - /*
79
80 diff --git a/sys-libs/libxcrypt/files/libxcrypt-4.4.10-multibuild.patch b/sys-libs/libxcrypt/files/libxcrypt-4.4.10-multibuild.patch
81 deleted file mode 100644
82 index aee7d7229b1..00000000000
83 --- a/sys-libs/libxcrypt/files/libxcrypt-4.4.10-multibuild.patch
84 +++ /dev/null
85 @@ -1,25 +0,0 @@
86 -diff --git a/Makefile.am b/Makefile.am
87 -index 3502a5c..afb8079 100644
88 ---- a/Makefile.am
89 -+++ b/Makefile.am
90 -@@ -84,11 +84,7 @@ noinst_HEADERS = \
91 - test/des-cases.h \
92 - test/crypt-kat.inc
93 -
94 --if ENABLE_XCRYPT_COMPAT_FILES
95 - nodist_include_HEADERS += xcrypt.h
96 --else
97 --nodist_noinst_HEADERS += xcrypt.h
98 --endif
99 -
100 - noinst_PROGRAMS = \
101 - lib/gen-des-tables
102 -@@ -137,7 +133,7 @@ uninstall_hook_targets = \
103 - uninstall-hook-pkgconfig
104 - install-data-hook-pkgconfig:
105 - cd $(DESTDIR)$(pkgconfigdir) && \
106 -- $(LN_S) libxcrypt.pc libcrypt.pc
107 -+ $(LN_S) -f libxcrypt.pc libcrypt.pc
108 - uninstall-hook-pkgconfig:
109 - -rm -f $(DESTDIR)$(pkgconfigdir)/libcrypt.pc
110 -
111
112 diff --git a/sys-libs/libxcrypt/files/libxcrypt-4.4.10-pythonver.patch b/sys-libs/libxcrypt/files/libxcrypt-4.4.10-pythonver.patch
113 deleted file mode 100644
114 index 0ca1563995b..00000000000
115 --- a/sys-libs/libxcrypt/files/libxcrypt-4.4.10-pythonver.patch
116 +++ /dev/null
117 @@ -1,17 +0,0 @@
118 -diff --git a/configure.ac b/configure.ac
119 -index 16885c8..fd8c8e3 100644
120 ---- a/configure.ac
121 -+++ b/configure.ac
122 -@@ -247,11 +247,7 @@ ENABLE_CRYPT_KAT_GEN="no"
123 - # This way we just need one call to AC_PATH_PROGS to likely get a
124 - # suitable version of Python. The version check afterwards is for
125 - # the case just a generic 'python3' or 'python' executable was found.
126 --PYTHON_CANDIDATE_VERSIONS="python3 python"
127 --
128 --for ver in `seq 6 1 10`; do
129 -- PYTHON_CANDIDATE_VERSIONS="python3.$ver $PYTHON_CANDIDATE_VERSIONS"
130 --done
131 -+PYTHON_CANDIDATE_VERSIONS="${EPYTHON}"
132 -
133 - AC_PATH_PROGS([PYTHON], [$PYTHON_CANDIDATE_VERSIONS], [])
134 -
135
136 diff --git a/sys-libs/libxcrypt/libxcrypt-2.4.ebuild b/sys-libs/libxcrypt/libxcrypt-2.4.ebuild
137 deleted file mode 100644
138 index 28ba5c5295c..00000000000
139 --- a/sys-libs/libxcrypt/libxcrypt-2.4.ebuild
140 +++ /dev/null
141 @@ -1,28 +0,0 @@
142 -# Copyright 1999-2020 Gentoo Authors
143 -# Distributed under the terms of the GNU General Public License v2
144 -
145 -EAPI=5
146 -inherit eutils ltprune multilib
147 -
148 -DESCRIPTION="A replacement for libcrypt with DES, MD5 and blowfish support"
149 -SRC_URI="mirror://debian/pool/main/libx/${PN}/${PN}_${PV}.orig.tar.gz"
150 -HOMEPAGE="http://packages.debian.org/sid/libxcrypt1"
151 -
152 -LICENSE="LGPL-2"
153 -SLOT="0"
154 -KEYWORDS="~amd64 ~x86"
155 -IUSE=""
156 -
157 -src_prepare() {
158 - epatch "${FILESDIR}/${PN}-2.4-glibc-2.16.patch"
159 -}
160 -
161 -src_configure() {
162 - # Do not install into /usr so that tcb and pam can use us.
163 - econf --libdir=/$(get_libdir) --disable-static
164 -}
165 -
166 -src_install() {
167 - default
168 - prune_libtool_files
169 -}
170
171 diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.10-r1.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.10-r1.ebuild
172 deleted file mode 100644
173 index 8e27bd3934b..00000000000
174 --- a/sys-libs/libxcrypt/libxcrypt-4.4.10-r1.ebuild
175 +++ /dev/null
176 @@ -1,153 +0,0 @@
177 -# Copyright 1999-2019 Gentoo Authors
178 -# Distributed under the terms of the GNU General Public License v2
179 -
180 -EAPI=7
181 -PYTHON_COMPAT=( python3_{6,7} )
182 -inherit autotools multibuild python-any-r1 multilib-minimal
183 -
184 -DESCRIPTION="Extended crypt library for descrypt, md5crypt, bcrypt, and others "
185 -SRC_URI="https://github.com/besser82/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
186 -HOMEPAGE="https://github.com/besser82/libxcrypt"
187 -
188 -LICENSE="LGPL-2.1+ public-domain BSD BSD-2"
189 -SLOT="0/1"
190 -KEYWORDS="~amd64 ~x86"
191 -IUSE="+compat split-usr static-libs system test"
192 -
193 -DEPEND="system? (
194 - elibc_glibc? ( sys-libs/glibc[-crypt(+)] )
195 - !sys-libs/musl
196 - )"
197 -RDEPEND="${DEPEND}"
198 -BDEPEND="sys-apps/findutils
199 - test? (
200 - ${PYTHON_DEPS}
201 - $(python_gen_any_dep 'dev-python/passlib[${PYTHON_USEDEP}]')
202 - )"
203 -
204 -# Gentoo CI complained about not having this
205 -RESTRICT="!test? ( test )"
206 -
207 -PATCHES=(
208 - "${FILESDIR}/libxcrypt-4.4.10-pythonver.patch"
209 - "${FILESDIR}/libxcrypt-4.4.10-multibuild.patch"
210 -)
211 -
212 -pkg_setup() {
213 - MULTIBUILD_VARIANTS=(
214 - $(usex compat 'xcrypt_compat' '')
215 - xcrypt_nocompat
216 - )
217 -
218 - use test && python-any-r1_pkg_setup
219 -}
220 -
221 -src_prepare() {
222 - default
223 - eautoreconf
224 -}
225 -
226 -src_configure() {
227 - multibuild_foreach_variant multilib-minimal_src_configure
228 -}
229 -
230 -get_xclibdir() {
231 - printf -- "%s\n" "$(usex split-usr '' '/usr')/$(get_libdir)/$(usex system '' 'xcrypt')"
232 -}
233 -
234 -multilib_src_configure() {
235 - local -a myconf=(
236 - --libdir=$(get_xclibdir)
237 - --with-pkgconfigdir=/usr/$(get_libdir)/pkgconfig
238 - --includedir="${EPREFIX}/usr/include/$(usex system '' 'xcrypt')"
239 - )
240 -
241 - case "${MULTIBUILD_ID}" in
242 - xcrypt_compat-*)
243 - myconf+=(
244 - --disable-static
245 - --disable-xcrypt-compat-files
246 - --enable-obsolete-api=yes
247 - )
248 - ;;
249 - xcrypt_nocompat-*)
250 - myconf+=(
251 - --enable-obsolete-api=no
252 - $(use_enable static-libs static)
253 - )
254 - ;;
255 - *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";;
256 - esac
257 -
258 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
259 -}
260 -
261 -src_compile() {
262 - multibuild_foreach_variant multilib-minimal_src_compile
263 -}
264 -
265 -multilib_src_test() {
266 - emake check
267 -}
268 -
269 -src_test() {
270 - multibuild_foreach_variant multilib-minimal_src_test
271 -}
272 -
273 -src_install() {
274 - multibuild_foreach_variant multilib-minimal_src_install
275 -
276 - (
277 - shopt -s failglob || die "failglob failed"
278 -
279 - # make sure out man pages don't collide with glibc or man-pages
280 - for manpage in "${ED}"/usr/share/man/man3/crypt{,_r}.?*; do
281 - mv -n "${manpage}" "$(dirname "${manpage}")/xcrypt_$(basename "${manpage}")" \
282 - || die "mv failed"
283 - done
284 - ) || die "failglob error"
285 -
286 - # remove useless stuff from installation
287 - find "${D}"/usr/share/doc/${PF} -type l -delete || die
288 - find "${D}" -name '*.la' -delete || die
289 -}
290 -
291 -multilib_install() {
292 - local install_target
293 -
294 - case "${MULTIBUILD_ID}" in
295 - xcrypt_compat-*) install_target="install-libLTLIBRARIES";;
296 - xcrypt_nocompat-*)
297 - if is_final_abi; then
298 - install_target="install"
299 - else
300 - install_target="install-libLTLIBRARIES"
301 - fi
302 - ;;
303 - *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";;
304 - esac
305 -
306 - emake DESTDIR="${D}" ${install_target}
307 -
308 - # don't install the libcrypt.so symlink for the "compat" version
309 - case "${MULTIBUILD_ID}" in
310 - xcrypt_compat-*)
311 - rm "${D}"$(get_xclibdir)/libcrypt$(get_libname) \
312 - "${D}"/usr/include/$(usex system '' 'xcrypt/')xcrypt.h || die
313 - ;;
314 - xcrypt_nocompat-*)
315 - if use split-usr; then
316 - (
317 - shopt -s failglob || die "failglob failed"
318 -
319 - for so_file in "${D}"$(get_xclibdir)/*$(get_libname)*; do
320 - so_file=$(basename "${so_file}") || die
321 -
322 - dosym ../../$(usex system '' '../')$(get_libdir)/$(usex system '' 'xcrypt')/${so_file} \
323 - /usr/$(get_libdir)/$(usex system '' 'xcrypt/')${so_file}
324 - done
325 - ) || die "symlinking library failure"
326 - fi
327 - ;;
328 - esac
329 -}
330
331 diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.12-r3.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.12-r3.ebuild
332 deleted file mode 100644
333 index 166f638a579..00000000000
334 --- a/sys-libs/libxcrypt/libxcrypt-4.4.12-r3.ebuild
335 +++ /dev/null
336 @@ -1,163 +0,0 @@
337 -# Copyright 2004-2020 Gentoo Authors
338 -# Distributed under the terms of the GNU General Public License v2
339 -
340 -EAPI=7
341 -PYTHON_COMPAT=( python3_{6,7,8} )
342 -inherit autotools multibuild python-any-r1 multilib-minimal
343 -
344 -DESCRIPTION="Extended crypt library for descrypt, md5crypt, bcrypt, and others "
345 -SRC_URI="https://github.com/besser82/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
346 -HOMEPAGE="https://github.com/besser82/libxcrypt"
347 -
348 -LICENSE="LGPL-2.1+ public-domain BSD BSD-2"
349 -SLOT="0/1"
350 -KEYWORDS="~amd64 ~x86"
351 -IUSE="+compat split-usr +static-libs system test"
352 -
353 -DEPEND="system? (
354 - elibc_glibc? ( sys-libs/glibc[-crypt(+)] )
355 - !sys-libs/musl
356 - )"
357 -RDEPEND="${DEPEND}"
358 -BDEPEND="sys-apps/findutils
359 - test? ( $(python_gen_any_dep 'dev-python/passlib[${PYTHON_USEDEP}]') )"
360 -
361 -RESTRICT="!test? ( test )"
362 -
363 -REQUIRED_USE="split-usr? ( system )"
364 -
365 -PATCHES=(
366 - "${FILESDIR}/libxcrypt-4.4.12-pythonver.patch"
367 - "${FILESDIR}/libxcrypt-4.4.12-multibuild.patch"
368 -)
369 -
370 -python_check_deps() {
371 - has_version -b "dev-python/passlib[${PYTHON_USEDEP}]"
372 -}
373 -
374 -pkg_setup() {
375 - MULTIBUILD_VARIANTS=(
376 - $(usex compat 'xcrypt_compat' '')
377 - xcrypt_nocompat
378 - )
379 -
380 - use test && python-any-r1_pkg_setup
381 -}
382 -
383 -src_prepare() {
384 - default
385 - eautoreconf
386 -}
387 -
388 -src_configure() {
389 - multibuild_foreach_variant multilib-minimal_src_configure
390 -}
391 -
392 -get_xclibdir() {
393 - printf -- "%s/%s/%s\n" \
394 - "$(usex split-usr '' '/usr')" \
395 - "$(get_libdir)" \
396 - "$(usex system '' 'xcrypt')"
397 -}
398 -
399 -multilib_src_configure() {
400 - local -a myconf=(
401 - --libdir=$(get_xclibdir)
402 - --with-pkgconfigdir=/usr/$(get_libdir)/pkgconfig
403 - --includedir="${EPREFIX}/usr/include/$(usex system '' 'xcrypt')"
404 - )
405 -
406 - case "${MULTIBUILD_ID}" in
407 - xcrypt_compat-*)
408 - myconf+=(
409 - --disable-static
410 - --disable-xcrypt-compat-files
411 - --enable-obsolete-api=yes
412 - )
413 - ;;
414 - xcrypt_nocompat-*)
415 - myconf+=(
416 - --enable-obsolete-api=no
417 - $(use_enable static-libs static)
418 - )
419 - ;;
420 - *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";;
421 - esac
422 -
423 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
424 -}
425 -
426 -src_compile() {
427 - multibuild_foreach_variant multilib-minimal_src_compile
428 -}
429 -
430 -multilib_src_test() {
431 - emake check
432 -}
433 -
434 -src_test() {
435 - multibuild_foreach_variant multilib-minimal_src_test
436 -}
437 -
438 -src_install() {
439 - multibuild_foreach_variant multilib-minimal_src_install
440 -
441 - (
442 - shopt -s failglob || die "failglob failed"
443 -
444 - # Make sure our man pages do not collide with glibc or man-pages.
445 - for manpage in "${ED}"/usr/share/man/man3/crypt{,_r}.?*; do
446 - mv -n "${manpage}" "$(dirname "${manpage}")/xcrypt_$(basename "${manpage}")" \
447 - || die "mv failed"
448 - done
449 - ) || die "failglob error"
450 -
451 - # remove useless stuff from installation
452 - find "${D}"/usr/share/doc/${PF} -type l -delete || die
453 - find "${D}" -name '*.la' -delete || die
454 -}
455 -
456 -multilib_src_install() {
457 - emake DESTDIR="${D}" install
458 -
459 - # don't install the libcrypt.so symlink for the "compat" version
460 - case "${MULTIBUILD_ID}" in
461 - xcrypt_compat-*)
462 - rm "${D}"$(get_xclibdir)/libcrypt$(get_libname) \
463 - || die "failed to remove extra compat libraries"
464 - ;;
465 - xcrypt_nocompat-*)
466 - if use split-usr; then
467 - (
468 - if use static-libs; then
469 - # .a files are installed to /$(get_libdir) by default
470 - # move static libraries to /usr prefix or portage will abort
471 - shopt -s nullglob || die "failglob failed"
472 - static_libs=( "${ED}"/$(get_xclibdir)/*.a )
473 -
474 - if [[ -n ${static_libs[*]} ]]; then
475 - dodir "/usr/$(get_xclibdir)"
476 - mv "${static_libs[@]}" "${D}/usr/$(get_xclibdir)" \
477 - || die "moving static libs failed"
478 - fi
479 - fi
480 -
481 - if use system; then
482 - # Move versionless .so symlinks from /$(get_libdir) to /usr/$(get_libdir)
483 - # to allow linker to correctly find shared libraries.
484 - shopt -s failglob || die "failglob failed"
485 -
486 - for lib_file in "${ED}"$(get_xclibdir)/*$(get_libname); do
487 - lib_file_basename="$(basename "${lib_file}")"
488 - lib_file_target="$(basename "$(readlink -f "${lib_file}")")"
489 - dosym "../../$(get_libdir)/${lib_file_target}" "/usr/$(get_xclibdir)/${lib_file_basename}"
490 - done
491 -
492 - rm "${ED}"$(get_xclibdir)/*$(get_libname) || die "removing symlinks in incorrect location failed"
493 - fi
494 - )
495 - fi
496 - ;;
497 - *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";;
498 - esac
499 -}