Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wget2/
Date: Fri, 05 Nov 2021 22:47:54
Message-Id: 1636152371.23632b956c384bb0442cd7d078a9376f1f013f49.floppym@gentoo
1 commit: 23632b956c384bb0442cd7d078a9376f1f013f49
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 5 18:53:41 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 5 22:46:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23632b95
7
8 net-misc/wget2: avoid eautoreconf
9
10 Instead of patching Makefile.am, stub-out LDCONFIG in configure.
11
12 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
13
14 net-misc/wget2/wget2-2.0.0.ebuild | 14 +++-----------
15 net-misc/wget2/wget2-9999.ebuild | 17 ++++++-----------
16 2 files changed, 9 insertions(+), 22 deletions(-)
17
18 diff --git a/net-misc/wget2/wget2-2.0.0.ebuild b/net-misc/wget2/wget2-2.0.0.ebuild
19 index 2926f483723..36048689f29 100644
20 --- a/net-misc/wget2/wget2-2.0.0.ebuild
21 +++ b/net-misc/wget2/wget2-2.0.0.ebuild
22 @@ -48,17 +48,6 @@ BDEPEND="
23
24 RESTRICT="!test? ( test )"
25
26 -PATCHES=(
27 - # Upstream attempts to be "smart" by calling ldconfig in
28 - # install-exec-hook
29 - "${FILESDIR}"/${PN}-1.99.2-remove_ldconfig_call.patch
30 -)
31 -
32 -src_prepare() {
33 - default
34 - eautoreconf
35 -}
36 -
37 src_configure() {
38 local myeconfargs=(
39 --disable-static
40 @@ -79,6 +68,9 @@ src_configure() {
41 $(use_with pcre libpcre2)
42 $(use_with psl libpsl)
43 $(use_with zlib)
44 +
45 + # Avoid calling ldconfig
46 + LDCONFIG=:
47 )
48 econf "${myeconfargs[@]}"
49 }
50
51 diff --git a/net-misc/wget2/wget2-9999.ebuild b/net-misc/wget2/wget2-9999.ebuild
52 index b757baf1343..c35c06da76f 100644
53 --- a/net-misc/wget2/wget2-9999.ebuild
54 +++ b/net-misc/wget2/wget2-9999.ebuild
55 @@ -3,12 +3,10 @@
56
57 EAPI=7
58
59 -inherit autotools
60 -
61 DESCRIPTION="GNU Wget2 is a file and recursive website downloader"
62 HOMEPAGE="https://gitlab.com/gnuwget/wget2"
63 if [[ "${PV}" == *9999 ]] ; then
64 - inherit git-r3
65 + inherit autotools git-r3
66 EGIT_REPO_URI="https://gitlab.com/gnuwget/wget2.git"
67 else
68 SRC_URI="mirror://gnu/wget/${P}.tar.gz"
69 @@ -51,12 +49,6 @@ BDEPEND="
70
71 RESTRICT="!test? ( test )"
72
73 -PATCHES=(
74 - # Upstream attempts to be "smart" by calling ldconfig in
75 - # install-exec-hook
76 - "${FILESDIR}"/${PN}-1.99.2-remove_ldconfig_call.patch
77 -)
78 -
79 src_unpack() {
80 if [[ "${PV}" == *9999 ]] ; then
81 git-r3_src_unpack
82 @@ -71,6 +63,7 @@ src_unpack() {
83 }
84
85 src_prepare() {
86 + default
87 if [[ "${PV}" == *9999 ]] ; then
88 local bootstrap_opts=(
89 --gnulib-srcdir=../gnulib
90 @@ -82,9 +75,8 @@ src_prepare() {
91 AUTORECONF="/bin/true" \
92 LIBTOOLIZE="/bin/true" \
93 sh ./bootstrap "${bootstrap_opts[@]}" || die
94 + eautoreconf
95 fi
96 - default
97 - eautoreconf
98 }
99
100 src_configure() {
101 @@ -106,6 +98,9 @@ src_configure() {
102 $(use_with pcre libpcre2)
103 $(use_with psl libpsl)
104 $(use_with zlib)
105 +
106 + # Avoid calling ldconfig
107 + LDCONFIG=:
108 )
109 econf "${myeconfargs[@]}"
110 }