diff options
Diffstat (limited to 'media-libs/netpbm')
-rw-r--r-- | media-libs/netpbm/Manifest | 6 | ||||
-rw-r--r-- | media-libs/netpbm/files/netpbm-11.2.7-fix-pnmcolormap2-test.patch | 213 | ||||
-rw-r--r-- | media-libs/netpbm/files/netpbm-11.5.2-fix-tests-musl.patch | 157 | ||||
-rw-r--r-- | media-libs/netpbm/netpbm-11.2.7.ebuild | 6 | ||||
-rw-r--r-- | media-libs/netpbm/netpbm-11.5.2.ebuild | 5 |
5 files changed, 384 insertions, 3 deletions
diff --git a/media-libs/netpbm/Manifest b/media-libs/netpbm/Manifest index 25a0e138ea0d..27bc1ad96a72 100644 --- a/media-libs/netpbm/Manifest +++ b/media-libs/netpbm/Manifest @@ -2,8 +2,10 @@ AUX make-tarball.sh 1895 BLAKE2B d6311e862d8b2fb10d88a90263f7187c04bde49ff0ecb78 AUX netpbm-10.86.21-build.patch 2319 BLAKE2B b22150c8683790c9ac31abc00b8f3f5b55cc6e990186f506c67496fce774fdfef1ba23843129fd493f8aa3e4ad5f74cfcf1d2388da95225ac2ef19f0c949f425 SHA512 459c54dac19067f2185a02ef812932e8fcb6a73d6267c32578bd3b7d3b12494052e929b24663407ad919e1e98aa2df58ed8e27be3f18eeb2fbe2402e4ff9e629 AUX netpbm-11.0.0-misc-deps.patch 1446 BLAKE2B 721e926a83d50d04d4a407051ee077db5e5bf8fb1ae9aff1ff1d7859cf1bb0d5f74fa1143681b451d36323f93d5e7fa3876e485d6538958e30779cac081df5b8 SHA512 7135533660b15a113df5a38298725f895e8cbd6ac4695eb5f2d40bd214c43cb9d1c261063e0cea162a6ca6071cda5f4e0380d29eefa6af57e7d67ce319fe2216 AUX netpbm-11.1.0-fix-clang-O2.patch 773 BLAKE2B a8d2bef659d384b0f94560fec847d37731315f5cdb67e5474efb596672d146446c6d545caa816d74f9d4c32fe486ce49f8cb55f38e9706bae6b0ba79c0dbbb5e SHA512 0a0049415d5c252603c47325d69ae582bec76ac15f442682ef0a2ff8c5a8cd19e28543644883bde891f2a376a401f43ed923b184112f49c67d295b9215d519de +AUX netpbm-11.2.7-fix-pnmcolormap2-test.patch 7051 BLAKE2B 741d4943b2e9eab1fb0061d6265271df8e25e458c1eb39f50aed8a392edf8369c9f0f3c43fc6ca0b940dd376166c9419c5039ddeaf10487859a7ea9bec4e6075 SHA512 4c7be95b582db27e3ce542b8f53bfdad2e6882b22ccc383aa7ca480cb5ba2a6aa000724dae3c5107efd1071bb87fac0648061dd46b0b75f1072ef05b7e128a68 +AUX netpbm-11.5.2-fix-tests-musl.patch 4779 BLAKE2B 049b20cecdaf40e77c37ad01cfe4e17b8006c3788f47971319e553bfbab760e7e0bb3a970060e74860a7c3326945f5505680519efe7c2feee5fa6ee08ba45202 SHA512 260f4282dcfd6dd0922b62e4c3f217e33d159ab2df779ec0c1df27f16c8075fb77927ce2aadd34c20475d38b7482506758e38b7571df7c3d5a92de9c5cc496d6 DIST netpbm-11.2.7.tar.xz 3780372 BLAKE2B 8a6a75bd0358acf21faa3defd2b3ca886aacd38a28a1f8b65280a9d6c1667102a47efb734fe2ff2dfae38a5d0995b5efaa4b3ec70138bac7ad07e3e6e79c6063 SHA512 3fb00524b958d97304066749d4117b11ce5e23b7c8e08e68bfb5109575cc40a52dbe0f44559e6c0832a4397298efbea50a8ed0b9d2b57e41a09275729574bace DIST netpbm-11.5.2.tar.xz 3781780 BLAKE2B 8d73e6424709f08687c784af88ccefca1f2f7dde256d69fa132005a56ecd30af13abccd5a3a73edf62ae7d302e52ac36201aa0d2490cd8ed759dd3071e1b052a SHA512 2da209e0dd4bb482cc48828fab0297810b152fde7245666a940b74eab713c082eef8e03aacd9c6cb5770e047d96386ad2dbc88f4bdb6d660e333f5eb4cabda4a -EBUILD netpbm-11.2.7.ebuild 6836 BLAKE2B ee8ce8774917ae49808eb5ee8b70f46289f7feac05e9ef304ffe492474d26bb35b0a5d7413293eb25da15c91645b2b49b2aa2c6a90cc164dc6956e0262bf2f11 SHA512 e405ebd3d0a44c96de0b25f8a99f355a49044740159d977d0734946b4ed9f47a660c4977bfd00b996b37f983f4616ce94d19486a0881cb495c714f128d8ea0e3 -EBUILD netpbm-11.5.2.ebuild 6724 BLAKE2B a1fe436c072b05af84091d2964e321372f363d158c639fd345f497b24e3a993b77c63fcbdd0c07a8960f971d17c1e56f80dd082d4a56deefa185ae6c4e95f374 SHA512 9cd9826b92945ed3d6a67e4a9dceeb35f49acac3d4f7e3a1f9052bce3887bcf6dd475fe78037501d320b3d1ff5ade49c034e31b65c9eab6dc76ab9b358acfa1a +EBUILD netpbm-11.2.7.ebuild 6976 BLAKE2B 18225d4d04fe229802a170d569d297f9231b1c0d46c05239ec4221a10da0e4934b01c6ac294e8d972333e0ab90b8b71c5334ea5a4c85fac006c3fe87060f99f7 SHA512 4da684cb71c45de8b76bae5c7f79269bb25fb4b3fac9cc71cde5707923bdddb7e52e527c1e47755df7185e7fd18c1a19ebbbbc94f9e6a171583415735602de2c +EBUILD netpbm-11.5.2.ebuild 6893 BLAKE2B 51e08ff2753647d36c2bf8bafbbc26ab256e94a3bfe83c4c1690f8ab79ef4eae7246b44fa267abba3393b7617f802598e63ca73a0de6158c668bda1440b8d3d7 SHA512 350e2ceb608be231931cfd4044b8b6f7b570e3c212a45cc27a2c91e6991a977ef3bbbb35b5971a793d260ca11dd28365ef1808dd52b0a6bcc3edf331dcf2f14d MISC metadata.xml 424 BLAKE2B 9ccc907d6c15cb1a7d6cfe4679d6fa9f488642948897ca34958a06b439ebcfb912cfb18fa9d93f15f19573aed4bd7083d277151c477410a59cd64b4c9c0446d4 SHA512 a987be2134a44cc916d5a026068219b8ccaa149e577eaf2a53a7802321793129777cc79b069df95ec9320f15279249a5f9d8a61509452ef02effcb6c66cf9e80 diff --git a/media-libs/netpbm/files/netpbm-11.2.7-fix-pnmcolormap2-test.patch b/media-libs/netpbm/files/netpbm-11.2.7-fix-pnmcolormap2-test.patch new file mode 100644 index 000000000000..a3af51371767 --- /dev/null +++ b/media-libs/netpbm/files/netpbm-11.2.7-fix-pnmcolormap2-test.patch @@ -0,0 +1,213 @@ +Backport pnmcolormap2 test from 11.5.x to 11.2.x + +See also https://bugs.gentoo.org/907295 + +--- a/test/pnmcolormap2.test ++++ b/test/pnmcolormap2.test +@@ -5,51 +5,143 @@ + tmpdir=${tmpdir:-/tmp} + map=${tmpdir}/map.ppm + +-echo "Test. Should print 'match' eight times." +-# Threshold values (targetN=xx.xx) here were produced by calculating +-# the S/N ratio with reduced colors. ++echo "Test. Should print 'match' eighteen times." ++ ++# Threshold values (tgtN=xx.xx) were produced by calculating ++# the S/N ratio when the original image is compared against a ++# reference image with fewer colors than the target output image. + + # colors in following tests / colors for calculating threshold +-# 100 / 90 +-# 200 / 180 +-# 30 / 25 ++# 256 / 224 ++# 128 / 96 -splitspread ++# 128 / 108 other ++# 64 / 44 -center (default) ++# 64 / 48 -splitspread ++# 64 / 56 other ++ ++# -center ++echo pnmcolormap 256 ++tgt1=37.19; tgt2=37.86; tgt3=37.77 ++pnmcolormap 256 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} ++ ++echo pnmcolormap 128 ++tgt1=34.46; tgt2=35.61; tgt3=34.97 ++pnmcolormap 128 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} ++ ++echo pnmcolormap 64 ++tgt1=30.30; tgt2=33.10; tgt3=31.74 ++pnmcolormap 64 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} ++ ++echo pnmcolormap -meancolor 256 ++tgt1=38.36; tgt2=38.63; tgt3=38.95 ++pnmcolormap -meancolor 256 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} ++ ++echo pnmcolormap -meancolor 128 ++tgt1=35.86; tgt2=37.17; tgt3=36.65 ++pnmcolormap -meancolor 128 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} ++ ++echo pnmcolormap -meancolor 64 ++tgt1=33.64; tgt2=34.92; tgt3=34.44 ++pnmcolormap -meancolor 64 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} ++ ++echo pnmcolormap -meanpixel 256 ++tgt1=38.40; tgt2=38.65; tgt3=38.90 ++pnmcolormap -meanpixel 256 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} ++ ++echo pnmcolormap -meanpixel 128 ++tgt1=35.75; tgt2=37.13; tgt3=36.69 ++pnmcolormap -meanpixel 128 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} ++ ++echo pnmcolormap -meanpixel 64 ++tgt1=33.75; tgt2=34.79; tgt3=34.53 ++pnmcolormap -meanpixel 64 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} ++ ++echo pnmcolormap -spreadluminosity 256 ++tgt1=36.82; tgt2=36.87; tgt3=37.25 ++pnmcolormap -spreadluminosity 256 testimg.ppm > ${map} ++pnmremap -mapfile=${map} testimg.ppm |\ ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - ++rm ${map} + +-pnmcolormap 100 testimg.ppm > ${map} ++echo pnmcolormap -spreadluminosity 128 ++tgt1=34.61; tgt2=33.40; tgt3=34.66 ++pnmcolormap -spreadluminosity 128 testimg.ppm > ${map} + pnmremap -mapfile=${map} testimg.ppm |\ +- pnmpsnr -target1=33.42 -target2=35.14 -target3=34.35 testimg.ppm - ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - + rm ${map} + +-pnmcolormap -meancolor 100 testimg.ppm > ${map} ++echo pnmcolormap -spreadluminosity 64 ++tgt1=32.35; tgt2=30.23; tgt3=32.35 ++pnmcolormap -spreadluminosity 64 testimg.ppm > ${map} + pnmremap -mapfile=${map} testimg.ppm |\ +- pnmpsnr -target1=34.91 -target2=36.86 -target3=35.84 testimg.ppm - ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - + rm ${map} + +-pnmcolormap -meanpixel 100 testimg.ppm > ${map} ++echo pnmcolormap -splitcolorct 256 ++tgt1=37.55; tgt2=38.37; tgt3=38.04 ++pnmcolormap -splitcolorct 256 testimg.ppm > ${map} + pnmremap -mapfile=${map} testimg.ppm |\ +- pnmpsnr -target1=34.95 -target2=36.77 -target3=35.81 testimg.ppm - ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - + rm ${map} + +-pnmcolormap -spreadluminosity 100 testimg.ppm > ${map} ++echo pnmcolormap -splitcolorct 128 ++tgt1=34.84; tgt2=35.72; tgt3=34.64 ++pnmcolormap -splitcolorct 128 testimg.ppm > ${map} + pnmremap -mapfile=${map} testimg.ppm |\ +- pnmpsnr -target1=33.71 -target2=32.91 -target3=33.93 testimg.ppm - ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - + rm ${map} + +-pnmcolormap -splitcolorct 100 testimg.ppm > ${map} ++echo pnmcolormap -splitcolorct 64 ++tgt1=31.56; tgt2=33.74; tgt3=32.93 ++pnmcolormap -splitcolorct 64 testimg.ppm > ${map} + pnmremap -mapfile=${map} testimg.ppm |\ +- pnmpsnr -target1=33.97 -target2=35.34 -target3=34.23 testimg.ppm - ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - + rm ${map} + +-pnmcolormap -splitspread 100 testimg.ppm > ${map} ++echo pnmcolormap -splitspread 256 ++tgt1=35.18; tgt2=37.26; tgt3=36.17 ++pnmcolormap -splitspread 256 testimg.ppm > ${map} + pnmremap -mapfile=${map} testimg.ppm |\ +- pnmpsnr -target1=32.98 -target2=35.06 -target3=33.19 testimg.ppm - ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - + rm ${map} + +-pnmcolormap 200 testimg.ppm > ${map} ++echo pnmcolormap -splitspread 128 ++tgt1=33.18; tgt2=35.58; tgt3=33.71 ++pnmcolormap -splitspread 128 testimg.ppm > ${map} + pnmremap -mapfile=${map} testimg.ppm |\ +- pnmpsnr -target1=36.14 -target2=36.87 -target3=36.79 testimg.ppm - ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - + rm ${map} + +-pnmcolormap 30 testimg.ppm > ${map} ++echo pnmcolormap -splitspread 64 ++tgt1=31.27; tgt2=33.03; tgt3=30.97 ++pnmcolormap -splitspread 64 testimg.ppm > ${map} + pnmremap -mapfile=${map} testimg.ppm |\ +- pnmpsnr -target1=28.53 -target2=31.62 -target3=29.99 testimg.ppm - ++pnmpsnr -target1=${tgt1} -target2=${tgt2} -target3=${tgt3} testimg.ppm - + rm ${map} +--- a/test/pnmcolormap2.ok ++++ b/test/pnmcolormap2.ok +@@ -1,9 +1,37 @@ +-Test. Should print 'match' eight times. ++Test. Should print 'match' eighteen times. ++pnmcolormap 256 + match ++pnmcolormap 128 + match ++pnmcolormap 64 + match ++pnmcolormap -meancolor 256 + match ++pnmcolormap -meancolor 128 + match ++pnmcolormap -meancolor 64 + match ++pnmcolormap -meanpixel 256 + match ++pnmcolormap -meanpixel 128 ++match ++pnmcolormap -meanpixel 64 ++match ++pnmcolormap -spreadluminosity 256 ++match ++pnmcolormap -spreadluminosity 128 ++match ++pnmcolormap -spreadluminosity 64 ++match ++pnmcolormap -splitcolorct 256 ++match ++pnmcolormap -splitcolorct 128 ++match ++pnmcolormap -splitcolorct 64 ++match ++pnmcolormap -splitspread 256 ++match ++pnmcolormap -splitspread 128 ++match ++pnmcolormap -splitspread 64 + match diff --git a/media-libs/netpbm/files/netpbm-11.5.2-fix-tests-musl.patch b/media-libs/netpbm/files/netpbm-11.5.2-fix-tests-musl.patch new file mode 100644 index 000000000000..4d8bd6c3b74d --- /dev/null +++ b/media-libs/netpbm/files/netpbm-11.5.2-fix-tests-musl.patch @@ -0,0 +1,157 @@ +Some tests are broken on musl. + +https://sourceforge.net/p/netpbm/code/4843/ +pnmindex, ppmtomitsu tests that don't use pnmcolormap + +So far, this only fixed ppmtomitsu. + +See also https://bugs.gentoo.org/907295 + +--- a/test/pnmindex.ok ++++ b/test/pnmindex.ok +@@ -7,12 +7,18 @@ + 3099638253 5290 + Test 4. Should print 1397700642 3160 + 1397700642 3160 +-Test 5. Should print 2303488589 28514 +-2303488589 28514 +-Test 6. Should print 1706277976 100455 +-1706277976 100455 +-Test 7. Should print 801388440 100455 ++Test 5. Should print 243472565 28514 ++243472565 28514 ++Test 6. Should print 801388440 100455 + 801388440 100455 ++Test 7. Should print 256 twice ++256 ++256 ++Test 8. Should print 100 twice ++100 ++100 ++Test 9. Should print match ++match + Test Invalid + Expected failure 1 (no output) + Expected failure 2 (no output) +--- a/test/pnmindex.test ++++ b/test/pnmindex.test +@@ -3,6 +3,9 @@ + # Also requires: pamcat pamscale pbmtext pnmcolormap pnmindex + # Also requires: pnminvert pnmquant pnmremap + ++tmpdir=${tmpdir:-/tmp} ++pnmindex256_ppm=${tmpdir}/pnmindex256.ppm ++ + echo "Test 1. Should print 3391481002 889" + pnmindex maze.pbm | cksum + +@@ -17,18 +20,28 @@ + pnmindex -size 20 -across=3 testgrid.pbm testgrid.pbm testgrid.pbm \ + testgrid.pbm testgrid.pbm testgrid.pbm | cksum + +-echo "Test 5. Should print 2303488589 28514" +-pnmindex testimg.ppm | cksum ++echo "Test 5. Should print 243472565 28514" ++pnmindex -noquant testimg.ppm | cksum + +-echo "Test 6. Should print 1706277976 100455" +-pnmindex -size 50 -across=2 testimg.ppm testimg.ppm testimg.ppm \ +- testimg.ppm testimg.ppm testimg.ppm | cksum +- +-echo "Test 7. Should print 801388440 100455" ++echo "Test 6. Should print 801388440 100455" + pnmindex -size 50 -across=2 -noquant testimg.ppm testimg.ppm testimg.ppm \ +- testimg.ppm testimg.ppm testimg.ppm | cksum ++ testimg.ppm testimg.ppm testimg.ppm | tee ${pnmindex256_ppm} | cksum + ++echo "Test 7. Should print 256 twice" ++pnmindex testimg.ppm | ppmhist -nomap -noheader | wc -l ++pnmindex -colors 256 testimg.ppm | ppmhist -nomap -noheader | wc -l + ++echo "Test 8. Should print 100 twice" ++pnmindex -colors 100 testimg.ppm | ppmhist -nomap -noheader | wc -l ++pnmindex -colors 100 testimg.ppm testimg.ppm | ppmhist -nomap -noheader | wc -l ++ ++ ++echo "Test 9. Should print match" ++pnmindex -size 50 -across=2 -quant -colors=256 testimg.ppm testimg.ppm testimg.ppm \ ++ testimg.ppm testimg.ppm testimg.ppm |\ ++ pnmpsnr -rgb -target1=41.31 -target2=40.76 -target3=40.71 ${pnmindex256_ppm} - ++ ++ + echo "Test Invalid" + + . ${srcdir}/test-invalid.inc +--- a/test/ppmtomitsu.ok ++++ b/test/ppmtomitsu.ok +@@ -1,9 +1,9 @@ +-Test 0. Should print 458455366 101484 +-458455366 101484 ++Test 0. Should print 668243897 101532 ++668243897 101532 + Test 1. Should print 3110813682 101562 + 3110813682 101562 +-Test 2. Should print 4168174994 34399 +-4168174994 34399 ++Test 2. Should print 825518840 34209 ++825518840 34209 + Test 3. Should print 3201293405 310 + 3201293405 310 + Test 4. Should print 3354679572 752 +@@ -10,5 +10,5 @@ + 3354679572 752 + Test 5. Should print 3999654426 101549 + 3999654426 101549 +-Test 6. Should print 4201246884 101549 +-4201246884 101549 ++Test 6. Should print 3103038403 101549 ++3103038403 101549 +--- a/test/ppmtomitsu.test ++++ b/test/ppmtomitsu.test +@@ -1,31 +1,31 @@ + #! /bin/sh + # This script tests: ppmtomitsu +-# Also requires: pnmcolormap pnmremap ++# Also requires: pamseq pamdepth + + tmpdir=${tmpdir:-/tmp} +-testimg100_ppm=${tmpdir}/testimg100.ppm ++testimg216_ppm=${tmpdir}/testimg216.ppm + +-echo "Test 0. Should print 458455366 101484" +-# equivalent to: Pnmquant 100 testimg.ppm +-pnmcolormap 100 testimg.ppm | pnmremap -nofloyd -mapfile=- testimg.ppm |\ +- tee ${testimg100_ppm} | cksum ++echo "Test 0. Should print 668243897 101532" + ++pamseq 3 5 -tupletype=RGB | pamdepth 255 | pnmremap -nofloyd -mapfile=- testimg.ppm |\ ++ tee ${testimg216_ppm} | cksum ++ + echo "Test 1. Should print 3110813682 101562" +-ppmtomitsu testimg.ppm | cksum ++ppmtomitsu testimg.ppm | cksum + +-echo "Test 2. Should print 4168174994 34399" +-ppmtomitsu ${testimg100_ppm} | cksum ++echo "Test 2. Should print 825518840 34209" ++ppmtomitsu ${testimg216_ppm} | cksum + + echo "Test 3. Should print 3201293405 310" +-ppmtomitsu testgrid.pbm | cksum ++ppmtomitsu testgrid.pbm | cksum + + echo "Test 4. Should print 3354679572 752" +-ppmtomitsu -tiny testgrid.pbm | cksum ++ppmtomitsu -tiny testgrid.pbm | cksum + + echo "Test 5. Should print 3999654426 101549" +-ppmtomitsu -tiny testimg.ppm | cksum ++ppmtomitsu -tiny testimg.ppm | cksum + +-echo "Test 6. Should print 4201246884 101549" +-ppmtomitsu -tiny ${testimg100_ppm} | cksum ++echo "Test 6. Should print 3103038403 101549" ++ppmtomitsu -tiny ${testimg216_ppm} | cksum + +-rm ${testimg100_ppm} ++rm ${testimg216_ppm} diff --git a/media-libs/netpbm/netpbm-11.2.7.ebuild b/media-libs/netpbm/netpbm-11.2.7.ebuild index 3afe4523512a..df9c2909f438 100644 --- a/media-libs/netpbm/netpbm-11.2.7.ebuild +++ b/media-libs/netpbm/netpbm-11.2.7.ebuild @@ -57,6 +57,7 @@ PATCHES=( "${FILESDIR}"/netpbm-10.86.21-build.patch "${FILESDIR}"/netpbm-11.0.0-misc-deps.patch "${FILESDIR}"/netpbm-11.1.0-fix-clang-O2.patch + "${FILESDIR}"/netpbm-11.2.7-fix-pnmcolormap2-test.patch ) netpbm_libtype() { @@ -160,10 +161,13 @@ src_prepare() { fi # this test requires LC_ALL=en_US.iso88591, not available on musl + # ppmpat-random is broken on musl + # bug #907295 if use elibc_musl; then sed -i \ -e 's:pbmtext-iso88591.*::' \ - test/Test-Order || die + -e 's:ppmpat-random.*::' \ + -i test/Test-Order || die fi } diff --git a/media-libs/netpbm/netpbm-11.5.2.ebuild b/media-libs/netpbm/netpbm-11.5.2.ebuild index 742eedc19d7d..0a74a2fd9cea 100644 --- a/media-libs/netpbm/netpbm-11.5.2.ebuild +++ b/media-libs/netpbm/netpbm-11.5.2.ebuild @@ -57,6 +57,7 @@ PATCHES=( "${FILESDIR}"/netpbm-10.86.21-build.patch "${FILESDIR}"/netpbm-11.0.0-misc-deps.patch "${FILESDIR}"/netpbm-11.1.0-fix-clang-O2.patch + "${FILESDIR}"/netpbm-11.5.2-fix-tests-musl.patch ) netpbm_libtype() { @@ -155,9 +156,13 @@ src_prepare() { fi # this test requires LC_ALL=en_US.iso88591, not available on musl + # ppmpat-random and pnmindex are broken on musl + # bug #907295 if use elibc_musl; then sed \ -e 's:pbmtext-iso88591.*::' \ + -e 's:ppmpat-random.*::' \ + -e 's:pnmindex.*::' \ -i test/Test-Order || die fi } |