Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgcrypt/
Date: Thu, 03 Nov 2022 20:21:27
Message-Id: 1667506827.f6e6b2135981180186ae81c1d9e9e9f22004f80d.floppym@gentoo
1 commit: f6e6b2135981180186ae81c1d9e9e9f22004f80d
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 3 20:20:21 2022 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 3 20:20:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6e6b213
7
8 dev-libs/libgcrypt: drop 1.10.1-r3
9
10 Passing --enable-random=auto does not actually enable any fallback code.
11
12 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
13
14 dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild | 132 --------------------------
15 1 file changed, 132 deletions(-)
16
17 diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild
18 deleted file mode 100644
19 index 52ddc411bdd4..000000000000
20 --- a/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild
21 +++ /dev/null
22 @@ -1,132 +0,0 @@
23 -# Copyright 1999-2022 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc
29 -inherit autotools flag-o-matic multilib-minimal toolchain-funcs verify-sig
30 -
31 -DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
32 -HOMEPAGE="https://www.gnupg.org/"
33 -SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
34 -SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )"
35 -
36 -LICENSE="LGPL-2.1 MIT"
37 -SLOT="0/20" # subslot = soname major version
38 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
39 -IUSE="+asm cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc static-libs"
40 -
41 -# Build system only has --disable-arm-crypto-support right now
42 -# If changing this, update src_configure logic too.
43 -# ARM CPUs seem to, right now, support all-or-nothing for crypto extensions,
44 -# but this looks like it might change in future. This is just a safety check
45 -# in case people somehow do have a CPU which only supports some. They must
46 -# for now disable them all if that's the case.
47 -REQUIRED_USE="
48 - cpu_flags_arm_aes? ( cpu_flags_arm_sha1 cpu_flags_arm_sha2 )
49 - cpu_flags_arm_sha1? ( cpu_flags_arm_aes cpu_flags_arm_sha2 )
50 - cpu_flags_arm_sha2? ( cpu_flags_arm_aes cpu_flags_arm_sha1 )
51 - cpu_flags_ppc_vsx3? ( cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 )
52 - cpu_flags_ppc_vsx2? ( cpu_flags_ppc_altivec )
53 -"
54 -
55 -RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}]"
56 -DEPEND="${RDEPEND}"
57 -BDEPEND="doc? ( virtual/texi2dvi )
58 - verify-sig? ( sec-keys/openpgp-keys-gnupg )"
59 -
60 -PATCHES=(
61 - "${FILESDIR}"/${PN}-multilib-syspath.patch
62 - "${FILESDIR}"/${PN}-powerpc-darwin.patch
63 - "${FILESDIR}"/${PN}-1.10.1-fix-no-asm-hppa.patch
64 - "${FILESDIR}"/${PN}-1.9.4-no-fgrep-libgcrypt-config.patch
65 -)
66 -
67 -MULTILIB_CHOST_TOOLS=(
68 - /usr/bin/libgcrypt-config
69 -)
70 -
71 -src_prepare() {
72 - default
73 - eautoreconf
74 -}
75 -
76 -multilib_src_configure() {
77 - if [[ ${CHOST} == *86*-solaris* ]] ; then
78 - # ASM code uses GNU ELF syntax, divide in particular, we need to
79 - # allow this via ASFLAGS, since we don't have a flag-o-matic
80 - # function for that, we'll have to abuse cflags for this
81 - append-cflags -Wa,--divide
82 - fi
83 -
84 - if [[ ${CHOST} == powerpc* ]] ; then
85 - # ./configure does a lot of automagic, prevent that
86 - # generic ppc32+ppc64 altivec
87 - use cpu_flags_ppc_altivec || local -x gcry_cv_cc_ppc_altivec=no
88 - use cpu_flags_ppc_altivec || local -x gcry_cv_cc_ppc_altivec_cflags=no
89 - # power8 vector extension, aka arch 2.07 ISA, also checked below via ppc-crypto-support
90 - use cpu_flags_ppc_vsx2 || local -x gcry_cv_gcc_inline_asm_ppc_altivec=no
91 - # power9 vector extension, aka arch 3.00 ISA
92 - use cpu_flags_ppc_vsx3 || local -x gcry_cv_gcc_inline_asm_ppc_arch_3_00=no
93 - fi
94 -
95 - # Workaround for GCC < 11.3 bug
96 - # https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commitdiff;h=0b399721ce9709ae25f9d2050360c5ab2115ae29
97 - # https://dev.gnupg.org/T5581
98 - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102124
99 - if use arm64 && tc-is-gcc && (($(gcc-major-version) == 11)) && (($(gcc-minor-version) <= 2)) && (($(gcc-micro-version) == 0)) ; then
100 - append-flags -fno-tree-loop-vectorize
101 - fi
102 -
103 - local myeconfargs=(
104 - CC_FOR_BUILD="$(tc-getBUILD_CC)"
105 -
106 - --enable-noexecstack
107 - $(use_enable cpu_flags_arm_neon neon-support)
108 - # See REQUIRED_USE comment above
109 - $(use_enable cpu_flags_arm_aes arm-crypto-support)
110 - $(use_enable cpu_flags_ppc_vsx2 ppc-crypto-support)
111 - $(use_enable cpu_flags_x86_aes aesni-support)
112 - $(use_enable cpu_flags_x86_avx avx-support)
113 - $(use_enable cpu_flags_x86_avx2 avx2-support)
114 - $(use_enable cpu_flags_x86_padlock padlock-support)
115 - $(use_enable cpu_flags_x86_sha shaext-support)
116 - $(use_enable cpu_flags_x86_sse4_1 sse41-support)
117 - # required for sys-power/suspend[crypt], bug 751568
118 - $(use_enable static-libs static)
119 -
120 - # Build all "random" modules, allow selection at runtime.
121 - --enable-random=auto
122 -
123 - # disabled due to various applications requiring privileges
124 - # after libgcrypt drops them (bug #468616)
125 - --without-capabilities
126 -
127 - # http://trac.videolan.org/vlc/ticket/620
128 - $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm")
129 - # causes bus-errors on sparc64-solaris
130 - $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm")
131 -
132 - $(use asm || echo "--disable-asm")
133 -
134 - GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
135 - )
136 -
137 - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \
138 - $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
139 -}
140 -
141 -multilib_src_compile() {
142 - default
143 - multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf
144 -}
145 -
146 -multilib_src_install() {
147 - emake DESTDIR="${D}" install
148 - multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf
149 -}
150 -
151 -multilib_src_install_all() {
152 - default
153 - find "${ED}" -type f -name '*.la' -delete || die
154 -}