Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448670 - media-gfx/inkscape should not/optionally depend on dev-python/lxml dev-python/numpy media-gfx/uniconvertor app-text/libwpg media-gfx/imagemagick
Summary: media-gfx/inkscape should not/optionally depend on dev-python/lxml dev-python...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major with 4 votes (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
: 472822 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-26 15:00 UTC by Cedric Sodhi
Modified: 2020-08-20 19:11 UTC (History)
6 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 Cedric Sodhi 2012-12-26 15:00:36 UTC
Inkscape 0.48.4 compiles fine without the following of its current dependencies

dev-python/lxml
dev-python/numpy
media-gfx/uniconvertor
app-text/libwpg
media-gfx/imagemagick

These dependencies should be subjected to USE Flags as much as possible (or possibly removed alltogether?)
Comment 1 LE GARREC Vincent 2012-12-26 23:01:19 UTC
From memories, uniconvertor is used to wmf export. I don't know if it's used for others things.
I don't know for the rest.
Comment 2 Nikoli 2014-07-20 21:11:03 UTC
Please make at least uniconvertor optional.
Comment 3 Jonas Stein gentoo-dev 2017-10-28 19:09:43 UTC
media-gfx/inkscape-0.48.4 is not in the tree anymore. 

Does this apply to media-gfx/inkscape-0.91 and later too, or should we close the ticket?
Comment 4 Jonas Stein gentoo-dev 2017-11-21 17:36:14 UTC
this is still in 0.9x and needs a careful review.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-12 09:01:56 UTC
*** Bug 472822 has been marked as a duplicate of this bug. ***
Comment 6 Franz Brauße 2018-06-30 12:58:37 UTC
I just checked the media-gfx/uniconvertor dependency and it's used only in share/extensions:

	share/extensions/plt_input.inx
	share/extensions/sk1_input.inx
	share/extensions/ai_input.inx
	share/extensions/ccx_input.inx
	share/extensions/cdr_input.inx
	share/extensions/cdt_input.inx
	share/extensions/cgm_input.inx
	share/extensions/cmx_input.inx
	share/extensions/hpgl_input.inx
	share/extensions/wmf_input.inx
	share/extensions/wmf_output.py
	share/extensions/plt_output.py
	share/extensions/sk1_output.py

all by referring to

	share/extensions/uniconv_output.py
	share/extensions/uniconv-ext.py

which themselves check for existence of a 'uniconvertor' or 'uniconv' executable on the current PATH or availability of a python module 'uniconvertor'. Otherwise a localized message is output to the user (as I confirmed by installing inkscape w/o uniconvertor and .plt output):

	You need to install the UniConvertor software.
	For GNU/Linux: install the package python-uniconvertor.
	For Windows: download it from
	https://sk1project.net/modules.php?name=Products&product=uniconvertor&op=download
	and install into your Inkscape's Python location

Thus, at least media-gfx/uniconverter does not have to be a hard dependency.
Comment 7 Franz Brauße 2018-06-30 13:03:52 UTC
PS: I forgot to add this is for inkscape-0.92.3, sorry.
Comment 8 Matt Whitlock 2020-02-11 03:55:16 UTC
Inkscape's unnecessary hard dependency on media-gfx/uniconvertor is now blocking the upgrade to dev-python/pillow-7.0.0, which no longer supports Python 2.7.

Please drop the hard dependency on media-gfx/uniconvertor, and let users install it themselves if they want to use the extra file formats that it enables.
Comment 9 Larry the Git Cow gentoo-dev 2020-03-31 01:11:32 UTC
The bug has been referenced in the following commit(s):

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

commit 628f97b8ed238770a787c3d0824cf9efb33dd8e1
Author:     Jonas Stein <jstein@gentoo.org>
AuthorDate: 2020-03-31 01:10:02 +0000
Commit:     Jonas Stein <jstein@gentoo.org>
CommitDate: 2020-03-31 01:11:18 +0000

    media-gfx/inkscape: make uniconvertor optional
    
    media-gfx/uniconvertor supports only Python 2.
    The dependency on uniconvertor is now optional to support the transition
    to Python 3.
    Bug: https://bugs.gentoo.org/448670
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Jonas Stein <jstein@gentoo.org>

 media-gfx/inkscape/inkscape-0.92.4-r3.ebuild | 165 +++++++++++++++++++++++++++
 media-gfx/inkscape/metadata.xml              |  11 +-
 2 files changed, 171 insertions(+), 5 deletions(-)
Comment 10 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-08-20 19:11:54 UTC
I think everything has been sorted now.