Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822360 - dev-tex/latex2html-2021.2 may call pnmquant with -norandom option: this requires >=media-libs/netpbm-10.86.24
Summary: dev-tex/latex2html-2021.2 may call pnmquant with -norandom option: this requi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on: 822366
Blocks:
  Show dependency tree
 
Reported: 2021-11-07 22:59 UTC by mehw
Modified: 2021-11-11 22:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mehw 2021-11-07 22:59:17 UTC
Hello,

The dev-tex/latex2html-2021.2's 'pstoimg.pl' and 'latex2html.pl' perl scripts may call media-libs/netpbm's 'pnmquant' with a '-norandom' option:
https://github.com/latex2html/latex2html/commit/d64bdbd5fe28e8f35ad4d263bdbefd5d2f1c78b4

The '-norandom' option is supported in 'pnmquant' starting from the in-tree media-libs/netpbm-10.86.24 package...

To prevent errors, it's best to force the installation of a version of media-libs/netpbm that supports `pnmquant -norandom`.



diff -Nuar latex2html-2021.2.ebuild latex2html-2021.2-r1.ebuild
--- latex2html-2021.2.ebuild	2021-10-18 06:05:36.144352872 +0000
+++ latex2html-2021.2-r1.ebuild	2021-11-07 20:29:09.361760710 +0000
@@ -9,13 +9,13 @@
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
 IUSE="gif png"
 
 DEPEND="
 	app-text/ghostscript-gpl
 	virtual/latex-base
-	media-libs/netpbm
+	>=media-libs/netpbm-10.86.24
 	dev-lang/perl
 	gif? ( media-libs/giflib )
 	png? ( media-libs/libpng:0 )"
Comment 1 Larry the Git Cow gentoo-dev 2021-11-07 23:11:39 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f402bd3bee8ca39820d9908c93ad54b8197b4c5b

commit f402bd3bee8ca39820d9908c93ad54b8197b4c5b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-07 23:11:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-07 23:11:24 +0000

    dev-tex/latex2html: fix netpbm dependency
    
    Bug: https://bugs.gentoo.org/822360
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-tex/latex2html/latex2html-2021.2-r1.ebuild | 81 ++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-07 23:12:06 UTC
Thanks! I suppose we will then need to stable a newer netpbm...
Comment 3 mehw 2021-11-11 22:42:55 UTC
(In reply to Sam James from comment #2)
> Thanks! I suppose we will then need to stable a newer netpbm...

I see that media-libs/netpbm-10.86.24 has been stabilized ;)