Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928388 - dev-texlive/texlive-latexextra Inkscape dependency not present
Summary: dev-texlive/texlive-latexextra Inkscape dependency not present
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-04-01 15:12 UTC by Lemon Lime
Modified: 2024-04-10 18:02 UTC (History)
3 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 Lemon Lime 2024-04-01 15:12:23 UTC
dev-texlive/texlive-latexextra contains the svg.sty latex package.

Said package requires "Inkscape" in order to run. 
Source: https://texdoc.org/serve/svg/0
Source 2: I got a compilation error from pdflatex that stated: "! Package svg Error: Inkscape version not detected."
Comment 1 Lemon Lime 2024-04-01 15:14:56 UTC
I believe one possible/Gentoo style solution would be adding adding an svg USE flag.

Considering that Inkscape is a pretty heavy dependency, the flag could be "off" by default. This would also not download the svg.sty files.

Just a suggestion.

Have a good week
Comment 2 Florian Schmaus gentoo-dev 2024-04-04 07:19:02 UTC
Thanks for your contribution.

However, I lean towards using optfeature here.

I think I would prefere optfeature because, first, we are not dealing with some sort of dynamic linkage here. Second, the error message clearly points towards it is missing. Furthermore, strictly speaking, if texlive-latexextra grows an svg USE flag, then the svg TexLive packages should potentially not be installed if the flag is disabled.
Comment 3 Lemon Lime 2024-04-04 13:38:37 UTC
(In reply to Florian Schmaus from comment #2)
> Thanks for your contribution.
> 
> However, I lean towards using optfeature here.

Totally. In retrospect, optfeature makes lot of sense.
I'll do a PR with an optfeature message instead of the USE flag.

As a sidenote, the QA bot flagged my PR as broken because it added a new use. 

Is there a way of proposing a new USE flag to a package without having the PR flagged as broken? Am I missing some step?

Thanks in advance
Comment 4 Larry the Git Cow gentoo-dev 2024-04-10 18:02:15 UTC
The bug has been closed via the following commit(s):

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

commit fac3ab92f5b88a3b9674cd76f708aeda67f8803f
Author:     Tomas Fabrizio Orsi <torsi@fi.uba.ar>
AuthorDate: 2024-04-04 13:50:04 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2024-04-10 18:01:50 +0000

    dev-texlive/texlive-latexextra: Added optfeature message for svg support
    
    Closes: https://bugs.gentoo.org/928388
    Closes: https://github.com/gentoo/gentoo/pull/36099
    Signed-off-by: Tomas Fabrizio Orsi <torsi@fi.uba.ar>
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../texlive-latexextra/texlive-latexextra-2023_p69752-r2.ebuild    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)