Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223067 - media-gfx/inkscape-0.47: Move .py extensions from datadir to libdir and byte-compile them
Summary: media-gfx/inkscape-0.47: Move .py extensions from datadir to libdir and byte-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 270670 (view as bug list)
Depends on:
Blocks: 313503
  Show dependency tree
 
Reported: 2008-05-21 14:18 UTC by Freddie Witherden
Modified: 2017-11-21 17:29 UTC (History)
3 users (show)

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


Attachments
Normal user (trace.log.gz,120.57 KB, application/x-gzip)
2008-05-21 14:19 UTC, Freddie Witherden
Details
As root. (trace_root.log.gz,110.05 KB, application/x-gzip)
2008-05-21 14:19 UTC, Freddie Witherden
Details
emerge --info (emerge_info.txt,3.69 KB, text/plain)
2008-05-21 14:21 UTC, Freddie Witherden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Freddie Witherden 2008-05-21 14:18:16 UTC
Recently inkscape has taken a very long time to launch if it is started by a regular user (~25 seconds compared with < 10).

Reproducible: Always

Steps to Reproduce:
1. Attempt to start media-gfx/inkscape-0.46-r2 using a ~AMD64 system as a regular user.


Expected Results:  
Inkscape should (and used to) have similar times for both regular users and root.

Using an ~AMD64 system. In order to 'solve' the problem I have emerge -e world. GTK theme is the same for both root and normal user, preferences (~/.inkscape) have been deleted to ensure that they are not the problem.

Attached are strace -tt logs of normal and root users starting inkscape. Exact cause is unknow.
Comment 1 Freddie Witherden 2008-05-21 14:19:14 UTC
Created attachment 153845 [details]
Normal user
Comment 2 Freddie Witherden 2008-05-21 14:19:42 UTC
Created attachment 153847 [details]
As root.
Comment 3 Freddie Witherden 2008-05-21 14:21:58 UTC
Created attachment 153849 [details]
emerge --info
Comment 4 Markus Meier gentoo-dev 2008-05-24 09:54:13 UTC
This is not reproducible on my systems. Maybe you'll have more luck when you report this upstream.
- Is this a regression compared to inkscape-0.45?
- Could you paste your emerge -pv inkscape output here?
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2008-05-24 10:54:25 UTC
because inkscape doesn't use python.eclass to byte-compile and optimize the plugins into .pyc and .pyo and as non-root you won't have write permission
to the plugins directory.

solution, 

restore functionality -> convert to python.eclass, python_mod_optimize, python_mod_cleanup..

/usr/share is wrong place for python since it's getting byte-compiled,
should convince upstream to change it to libdir. patch welcome.
Comment 6 Markus Meier gentoo-dev 2009-05-23 11:54:19 UTC
*** Bug 270670 has been marked as a duplicate of this bug. ***
Comment 7 Nikoli 2014-07-20 20:06:32 UTC
This is fixed long time ago:

*inkscape-0.48.4-r1 (01 May 2013)

  01 May 2013; Julian Ospald <hasufell@gentoo.org> +inkscape-0.48.4-r1.ebuild,
  +files/inkscape-0.48.4-automake-1.3.patch,
  +files/inkscape-0.48.4-epython.patch:
  convert to python-single-r1 wrt #467234 and fix build with automake-1.13 wrt
  #467228
Comment 8 Jonas Stein gentoo-dev 2017-11-21 17:29:24 UTC
Thank you for pointing there, Nikoli.