Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libxcrypt/
Date: Sat, 17 Jul 2021 23:34:01
Message-Id: 1626564827.2044d43ca54c734ccb55ed57fe11f8e2eca0f525.dilfridge@gentoo
1 commit: 2044d43ca54c734ccb55ed57fe11f8e2eca0f525
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 17 23:33:15 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 17 23:33:47 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2044d43c
7
8 sys-libs/libxcrypt: remove old
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
12
13 sys-libs/libxcrypt/libxcrypt-4.4.23-r1.ebuild | 207 --------------------------
14 1 file changed, 207 deletions(-)
15
16 diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.23-r1.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.23-r1.ebuild
17 deleted file mode 100644
18 index 59a192d732e..00000000000
19 --- a/sys-libs/libxcrypt/libxcrypt-4.4.23-r1.ebuild
20 +++ /dev/null
21 @@ -1,207 +0,0 @@
22 -# Copyright 2004-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -PYTHON_COMPAT=( python3_{8..10} )
28 -# NEED_BOOTSTRAP is for developers to quickly generate a tarball
29 -# for publishing to the tree.
30 -NEED_BOOTSTRAP="no"
31 -inherit multibuild python-any-r1 multilib-minimal
32 -
33 -DESCRIPTION="Extended crypt library for descrypt, md5crypt, bcrypt, and others"
34 -HOMEPAGE="https://github.com/besser82/libxcrypt"
35 -if [[ ${NEED_BOOTSTRAP} == "yes" ]] ; then
36 - inherit autotools
37 - SRC_URI="https://github.com/besser82/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
38 -else
39 - SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-autotools.tar.xz"
40 -fi
41 -
42 -LICENSE="LGPL-2.1+ public-domain BSD BSD-2"
43 -SLOT="0/1"
44 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
45 -IUSE="+compat split-usr +static-libs system test"
46 -REQUIRED_USE="split-usr? ( system )"
47 -RESTRICT="!test? ( test )"
48 -
49 -DEPEND="system? (
50 - elibc_glibc? ( sys-libs/glibc[-crypt(+)] )
51 - !sys-libs/musl
52 - )"
53 -RDEPEND="${DEPEND}"
54 -BDEPEND="dev-lang/perl
55 - sys-apps/findutils
56 - test? ( $(python_gen_any_dep 'dev-python/passlib[${PYTHON_USEDEP}]') )"
57 -
58 -python_check_deps() {
59 - has_version -b "dev-python/passlib[${PYTHON_USEDEP}]"
60 -}
61 -
62 -pkg_setup() {
63 - MULTIBUILD_VARIANTS=(
64 - $(usex compat 'xcrypt_compat' '')
65 - xcrypt_nocompat
66 - )
67 -
68 - use test && python-any-r1_pkg_setup
69 -}
70 -
71 -src_prepare() {
72 - default
73 -
74 - # WARNING: Please read on bumping or applying patches!
75 - #
76 - # There are two circular dependencies to be aware of:
77 - # 1)
78 - # if we're bootstrapping configure and makefiles:
79 - # libxcrypt -> automake -> perl -> libxcrypt
80 - #
81 - # mitigation:
82 - # toolchain@ manually runs `make dist` after running autoconf + `./configure`
83 - # and the ebuild uses that.
84 - # (Don't include the pre-generated Perl artefacts.)
85 - #
86 - # solution for future:
87 - # Upstream are working on producing `make dist` tarballs.
88 - # https://github.com/besser82/libxcrypt/issues/134#issuecomment-871833573
89 - #
90 - # 2)
91 - # configure *unconditionally* needs Perl at build time to generate
92 - # a list of enabled algorithms based on the set passed to `configure`:
93 - # libxcrypt -> perl -> libxcrypt
94 - #
95 - # mitigation:
96 - # None at the moment.
97 - #
98 - # solution for future:
99 - # Not possible right now. Upstream intend on depending on Perl for further
100 - # configuration options.
101 - # https://github.com/besser82/libxcrypt/issues/134#issuecomment-871833573
102 - #
103 - # Therefore, on changes (inc. bumps):
104 - # * You must check whether upstream have started providing tarballs with bootstrapped
105 - # auto{conf,make};
106 - #
107 - # * diff the build system changes!
108 - #
109 - if [[ ${NEED_BOOTSTRAP} == "yes" ]] ; then
110 - # Facilitate our split variant build for compat + non-compat
111 - eapply "${FILESDIR}"/${PN}-4.4.19-multibuild.patch
112 - eautoreconf
113 - fi
114 -}
115 -
116 -src_configure() {
117 - multibuild_foreach_variant multilib-minimal_src_configure
118 -}
119 -
120 -get_xclibdir() {
121 - printf -- "%s/%s/%s\n" \
122 - "$(usex split-usr '' '/usr')" \
123 - "$(get_libdir)" \
124 - "$(usex system '' 'xcrypt')"
125 -}
126 -
127 -multilib_src_configure() {
128 - local -a myconf=(
129 - --disable-werror
130 - --libdir="${EPREFIX}"$(get_xclibdir)
131 - --with-pkgconfigdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig"
132 - --includedir="${EPREFIX}/usr/include/$(usex system '' 'xcrypt')"
133 - )
134 -
135 - case "${MULTIBUILD_ID}" in
136 - xcrypt_compat-*)
137 - myconf+=(
138 - --disable-static
139 - --disable-xcrypt-compat-files
140 - --enable-obsolete-api=yes
141 - )
142 - ;;
143 - xcrypt_nocompat-*)
144 - myconf+=(
145 - --enable-obsolete-api=no
146 - $(use_enable static-libs static)
147 - )
148 - ;;
149 - *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";;
150 - esac
151 -
152 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
153 -}
154 -
155 -src_compile() {
156 - multibuild_foreach_variant multilib-minimal_src_compile
157 -}
158 -
159 -multilib_src_test() {
160 - emake check
161 -}
162 -
163 -src_test() {
164 - multibuild_foreach_variant multilib-minimal_src_test
165 -}
166 -
167 -src_install() {
168 - multibuild_foreach_variant multilib-minimal_src_install
169 -
170 - (
171 - shopt -s failglob || die "failglob failed"
172 -
173 - # Make sure our man pages do not collide with glibc or man-pages.
174 - for manpage in "${ED}"/usr/share/man/man3/crypt{,_r}.?*; do
175 - mv -n "${manpage}" "$(dirname "${manpage}")/xcrypt_$(basename "${manpage}")" \
176 - || die "mv failed"
177 - done
178 - ) || die "failglob error"
179 -
180 - # Remove useless stuff from installation
181 - find "${ED}"/usr/share/doc/${PF} -type l -delete || die
182 - find "${ED}" -name '*.la' -delete || die
183 -}
184 -
185 -multilib_src_install() {
186 - emake DESTDIR="${D}" install
187 -
188 - # Don't install the libcrypt.so symlink for the "compat" version
189 - case "${MULTIBUILD_ID}" in
190 - xcrypt_compat-*)
191 - rm "${ED}"$(get_xclibdir)/libcrypt$(get_libname) \
192 - || die "failed to remove extra compat libraries"
193 - ;;
194 - xcrypt_nocompat-*)
195 - if use split-usr; then
196 - (
197 - if use static-libs; then
198 - # .a files are installed to /$(get_libdir) by default
199 - # Move static libraries to /usr prefix or portage will abort
200 - shopt -s nullglob || die "failglob failed"
201 - static_libs=( "${ED}"/$(get_xclibdir)/*.a )
202 -
203 - if [[ -n ${static_libs[*]} ]]; then
204 - dodir "/usr/$(get_xclibdir)"
205 - mv "${static_libs[@]}" "${ED}/usr/$(get_xclibdir)" \
206 - || die "Moving static libs failed"
207 - fi
208 - fi
209 -
210 - if use system; then
211 - # Move versionless .so symlinks from /$(get_libdir) to /usr/$(get_libdir)
212 - # to allow linker to correctly find shared libraries.
213 - shopt -s failglob || die "failglob failed"
214 -
215 - for lib_file in "${ED}"$(get_xclibdir)/*$(get_libname); do
216 - lib_file_basename="$(basename "${lib_file}")"
217 - lib_file_target="$(basename "$(readlink -f "${lib_file}")")"
218 - dosym "../../$(get_libdir)/${lib_file_target}" "/usr/$(get_xclibdir)/${lib_file_basename}"
219 - done
220 -
221 - rm "${ED}"$(get_xclibdir)/*$(get_libname) || die "Removing symlinks in incorrect location failed"
222 - fi
223 - )
224 - fi
225 - ;;
226 - *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";;
227 - esac
228 -}