Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/httrack/
Date: Sun, 31 Jan 2021 20:01:26
Message-Id: 1612123234.a25a763b7acf4ba6a02094ce0696baef94e617ee.sping@gentoo
1 commit: a25a763b7acf4ba6a02094ce0696baef94e617ee
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 31 20:00:34 2021 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 31 20:00:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a25a763b
7
8 www-client/httrack: Fix linking with lld for profile 17.1
9
10 Closes: https://bugs.gentoo.org/732272
11 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
12 Package-Manager: Portage-3.0.14, Repoman-3.0.2
13
14 www-client/httrack/httrack-3.49.2-r2.ebuild | 18 ++++++++++++++++--
15 1 file changed, 16 insertions(+), 2 deletions(-)
16
17 diff --git a/www-client/httrack/httrack-3.49.2-r2.ebuild b/www-client/httrack/httrack-3.49.2-r2.ebuild
18 index 11539e76c33..a6bded23cc6 100644
19 --- a/www-client/httrack/httrack-3.49.2-r2.ebuild
20 +++ b/www-client/httrack/httrack-3.49.2-r2.ebuild
21 @@ -1,9 +1,9 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 +# Copyright 1999-2021 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI="7"
27
28 -inherit eutils xdg-utils
29 +inherit autotools multilib eutils xdg-utils
30
31 DESCRIPTION="HTTrack Website Copier, Open Source Offline Browser"
32 HOMEPAGE="https://www.httrack.com/"
33 @@ -26,6 +26,20 @@ PATCHES=(
34 "${FILESDIR}"/${PN}-3.48.13-minizip.patch
35 )
36
37 +src_prepare() {
38 + default
39 +
40 + # We need to patch use of /usr/lib because it is a problem with
41 + # linker lld with profile 17.1 on amd64 (see https://bugs.gentoo.org/732272).
42 + # The grep sandwich acts as a regression test so that a future
43 + # version bump cannot break patching without noticing.
44 + grep -wq '{ZLIB_HOME}/lib' m4/check_zlib.m4 || die
45 + sed "s,{ZLIB_HOME}/lib,{ZLIB_HOME}/$(get_libdir)," -i m4/check_zlib.m4 || die
46 + grep -w '{ZLIB_HOME}/lib' m4/check_zlib.m4 && die
47 +
48 + eautoreconf
49 +}
50 +
51 src_configure() {
52 econf $(use_enable static-libs static)
53 }