Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402337 - dev-python/imdbpy installs its locale files in /usr/imdb
Summary: dev-python/imdbpy installs its locale files in /usr/imdb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest normal (vote)
Assignee: MythTV Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-06 03:08 UTC by زياد بن عبدالعزيز الباتلي
Modified: 2012-05-25 16:34 UTC (History)
2 users (show)

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


Attachments
ebuild patch (imdbpy.patch,692 bytes, patch)
2012-02-11 17:15 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description زياد بن عبدالعزيز الباتلي 2012-02-06 03:08:56 UTC
As per the subject: “dev-python/imdbpy” install its locale files in “/usr/imdb/locale” instead of “/usr/share/locale” like the other packages.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-python/imdbpy
Actual Results:  
Locale files installed in “/usr/imdb”.

Expected Results:  
Locale files should be installed in “/usr/share/locale”.
Comment 1 زياد بن عبدالعزيز الباتلي 2012-02-06 03:13:35 UTC
This happens with both “4.7” and “4.7-r1”.

(Sorry for not mentioning it in the original post!)

Thank you.
Ziyad.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-02-11 17:15:06 UTC
Created attachment 301579 [details, diff]
ebuild patch

content of /usr/imdb diverted to /usr/share/locale/

Added shebang converter function to install phase.

archtester dev-python # ls /usr/share/locale/imdb*
/usr/share/locale/imdbpy-en.po  /usr/share/locale/imdbpy.pot
/usr/share/locale/imdbpy-it.po  /usr/share/locale/imdbpy-tr.po
Comment 3 زياد بن عبدالعزيز الباتلي 2012-02-11 18:12:42 UTC
I just applied the attached patch and created a new “dev-python/imdbpy-4.7-r2.ebuild” inside “/usr/local/portage”; but, sadly, it didn’t fix the problem!

zamb /tmp $ fgrep /usr/imdb /var/db/pkg/dev-python/imdbpy-4.7-r2/CONTENTS
dir /usr/imdb
dir /usr/imdb/locale
dir /usr/imdb/locale/en
dir /usr/imdb/locale/en/LC_MESSAGES
obj /usr/imdb/locale/en/LC_MESSAGES/imdbpy.mo d3d5…85bf 1328983268
obj /usr/imdb/locale/imdbpy.pot a945…3481 1295783175
obj /usr/imdb/locale/imdbpy-it.po 8900…a2a6 1295783175
obj /usr/imdb/locale/imdbpy-tr.po a152…9fe2 1295783175
obj /usr/imdb/locale/imdbpy-en.po 515b…e2cf 1295783175
dir /usr/imdb/locale/tr
dir /usr/imdb/locale/tr/LC_MESSAGES
obj /usr/imdb/locale/tr/LC_MESSAGES/imdbpy.mo 7ca9…cc11 1328983268
dir /usr/imdb/locale/it
dir /usr/imdb/locale/it/LC_MESSAGES
obj /usr/imdb/locale/it/LC_MESSAGES/imdbpy.mo 93ea…bfed 1328983268

(Hashes has been truncated in above quote, obviously.)

Thank you for your hard work.
Ziyad.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2012-02-12 08:23:29 UTC
wrong fix, will do another soon
Comment 5 Arfrever Frehtes Taifersar Arahesis 2012-02-13 01:16:20 UTC
Please test dev-python/imdbpy-4.8.2 from Progress Overlay. Upstream now installs locale files in a different place...
Comment 6 زياد بن عبدالعزيز الباتلي 2012-02-14 01:42:45 UTC
(Rant: Sorry for the late reply.  Why the heck do I need to emerge “dev-lang/python-3.2.3_per20120212” and “dev-python/setuptools-0.6.24” just to test “dev-python/imdbpy-4.8.2”?  It installed most of its files inside “/usr/lib/python2.7/site-packages/imdb/” anyway which had nothing to do with “python-3.2.3_pre20120212”!)

Okay, glad to report that “/usr/imdb” no longer exist!  (However, I don’t see the locale files anywhere else.  Does “4.8.2” no longer use any locale files like it did in “4.7”?)

Kudos to everyone for the excellent work.  And a special “Thank You” to both of you (and anyone else who contributed to this fix).

Thank you.
Ziyad.
Comment 7 زياد بن عبدالعزيز الباتلي 2012-05-05 21:45:50 UTC
Just installed “dev-python/imdbpy-4.8.2::gentoo” and everything is okay.

Locale files are installed in “/usr/lib/python2.7/site-packages/imdb/locale/” (which seems fine, since other Python packages do the same thing).

Thanks for your hard work.
Ziyad.

(P.S. Should I close this bug as Resolved or something?)
Comment 8 زياد بن عبدالعزيز الباتلي 2012-05-25 16:34:16 UTC
Closing as Resolved/Fixed.

“Thank you” to all Gentoo contributers.