Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/pngquant/files/, media-gfx/pngquant/
Date: Thu, 01 Sep 2022 01:23:39
Message-Id: 1661995406.250b40499fe9dc1e9a327cb9ec42ffe2b2330b47.sam@gentoo
1 commit: 250b40499fe9dc1e9a327cb9ec42ffe2b2330b47
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 01:18:58 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 01:23:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=250b4049
7
8 media-gfx/pngquant: fix tests with newer libimagequant
9
10 Closes: https://bugs.gentoo.org/867760
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../pngquant/files/pngquant-2.17.0-fix-test-version.patch | 14 ++++++++++++++
14 media-gfx/pngquant/pngquant-2.17.0.ebuild | 5 ++++-
15 2 files changed, 18 insertions(+), 1 deletion(-)
16
17 diff --git a/media-gfx/pngquant/files/pngquant-2.17.0-fix-test-version.patch b/media-gfx/pngquant/files/pngquant-2.17.0-fix-test-version.patch
18 new file mode 100644
19 index 000000000000..6b7fe013e5dc
20 --- /dev/null
21 +++ b/media-gfx/pngquant/files/pngquant-2.17.0-fix-test-version.patch
22 @@ -0,0 +1,14 @@
23 +https://bugs.gentoo.org/867760
24 +
25 +Drop check which looks at version as with newer libimagequant,
26 +it becomes 4.0.0.
27 +--- a/test/test.sh
28 ++++ b/test/test.sh
29 +@@ -9,7 +9,6 @@ BIN=$2
30 + TESTBIN=$3
31 + PATH=.:$PATH # Required, since BIN may be just 'pngquant'
32 +
33 +-$BIN --version 2>&1 | fgrep 2.
34 + $BIN --help | fgrep -q "usage:"
35 +
36 + $BIN 2>/dev/null && { echo "should fail without args"; exit 1; } || true
37
38 diff --git a/media-gfx/pngquant/pngquant-2.17.0.ebuild b/media-gfx/pngquant/pngquant-2.17.0.ebuild
39 index 39b969796e38..95adcc0f4890 100644
40 --- a/media-gfx/pngquant/pngquant-2.17.0.ebuild
41 +++ b/media-gfx/pngquant/pngquant-2.17.0.ebuild
42 @@ -27,7 +27,10 @@ BDEPEND="virtual/pkgconfig"
43
44 RESTRICT="!test? ( test )"
45
46 -PATCHES=( "${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch )
47 +PATCHES=(
48 + "${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch
49 + "${FILESDIR}"/${PN}-2.17.0-fix-test-version.patch
50 +)
51
52 pkg_pretend() {
53 [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp