Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190798 - app-text/gnome-doc-utils incorrectly stores .pyc files in /usr/share/
Summary: app-text/gnome-doc-utils incorrectly stores .pyc files in /usr/share/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-30 17:18 UTC by SpanKY
Modified: 2009-05-03 17:10 UTC (History)
2 users (show)

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


Attachments
patch to install xml2po modes to /usr/lib/python-x.y/site-packages (gnome-doc-utils-0.12.2-install-xml2po-modes-to-usr-lib.patch,1.73 KB, patch)
2008-04-14 20:09 UTC, Arun Raghavan (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2007-08-30 17:18:28 UTC
it is a FHS violation for non-portable binary files to be stored in /usr/share/

app-text/gnome-doc-utils sticks .pyc/.pyo files in there which causes problems obviously when upgrading python versions

$ qfile /usr/share/xml2po/ -v
app-text/gnome-doc-utils-0.10.3 (/usr/share/xml2po)
$ ls /usr/share/xml2po/*.pyc
/usr/share/xml2po/docbook.pyc  /usr/share/xml2po/empty.pyc  /usr/share/xml2po/gs.pyc  /usr/share/xml2po/ubuntu.pyc  /usr/share/xml2po/xhtml.pyc
Comment 1 Joe Peterson (RETIRED) gentoo-dev 2007-10-01 06:38:18 UTC
This also causes gnome-desktop to have access violations (sandbox) on FreeBSD if python is upgraded since last installing this package.
Comment 2 SpanKY gentoo-dev 2007-10-01 07:41:11 UTC
not a BSD-specific problem ... it's hit plenty of people on Linux as well
Comment 3 Arun Raghavan (RETIRED) gentoo-dev 2008-04-14 20:09:01 UTC
Created attachment 149744 [details, diff]
patch to install xml2po modes to /usr/lib/python-x.y/site-packages

This patch should fix the problem. Also filed upstream at http://bugzilla.gnome.org/show_bug.cgi?id=528099
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2008-05-28 06:57:33 UTC
So this is safe to go in? Upstream has yet to comment on it but Gilles pinged them a week ago...

Thanks
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-06-01 22:33:32 UTC
looks fine, commited to the tree in -r1
Comment 6 hirakendu 2009-05-03 17:07:33 UTC
The current ebuild in portage, gnome-doc-utils-0.16.1, will fail to emerge due to the trivial reason that the patch file doesn't exist. Either rename the file gnome-doc-utils-0.16.1-fhs.patch in files/ directory to 0.16.0 or update the ebuild from ${PN}-0.16.0-fhs.patch to ${P}-fhs.patch.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-03 17:10:57 UTC
fixed, next time please open a new bug though as it's a different issue.