Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469712 - app-misc/gourmet-0.16.0 version bump
Summary: app-misc/gourmet-0.16.0 version bump
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-13 18:07 UTC by Alastair Murray
Modified: 2013-09-17 04:51 UTC (History)
1 user (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 Alastair Murray 2013-05-13 18:07:15 UTC
A version 0.16.0 of app-misc/gourmet is out [1].

I tried renaming the ebuild, but that didn't work.  It failed with "ImportError: No module named DistUtilsExtra.command", but I didn't look into it at all.

[1] https://launchpad.net/gourmet/main/0.16.0

Reproducible: Always
Comment 1 tastytea 2013-05-17 15:07:32 UTC
Your error is resolved by installing dev-python/python-distutils-extra.

However, version 0.16.0 uses elib.intl (https://github.com/dieterv/elib.intl) which is not in in portage.
Comment 2 m0par 2013-08-13 12:20:58 UTC
I also renamed 0.15.9 to 0.16.0, modifying the depends to pull in python-distutils-extra, add beautifulsoup, etc, and removed "--disable-modules-check" as it wouldn't build with it. Additionally, I made a butchered ebuild for elib.intl.

I still can't get gourmet-0.16.0 to run, but I don't know python.

It can't find the files that were installed to /usr/share/gourmet:

Traceback (most recent call last):
  File "/usr/bin/gourmet-2.7", line 15, in <module>
    from gourmet import GourmetRecipeManager
  File "./gourmet/__init__.py", line 5, in <module>
    import gglobals
  File "./gourmet/gglobals.py", line 269, in <module>
    add_icon(os.path.join(imagedir,filename),stock_id,label,modifier,keyval)
  File "./gourmet/gglobals.py", line 254, in add_icon
    pb = gtk.gdk.pixbuf_new_from_file(file_name)
glib.GError: Failed to open file '../gourmet/data/images/AddToShoppingList.png': No such file or directory


Just a quick look (again, I don't know python) shows the installed settings.py has a comment that "the following lines are modified at installation time by setup.py", but the installed settings.py is no different than the original settings.py. e.g. base_dir = '..', which may be the source of the problem.

(It should be looking for /usr/share/gourmet/data/images/AddToShoppingList.png, instead of ../gourmet/data/images/AddToShoppingList.png)
Comment 3 m0par 2013-08-13 17:09:20 UTC
Just a little additional information.

Again, I don't know python or even the ebuild system very well, which is readily apparent to anyone who does.

I tried changing the 0.15.9 ebuild to use distutils-r1 for 0.16.0 in hopes of creating a functional ebuild for 0.16.0.

For whatever reason, neither ebuild (distutils or distutils-r1) properly updates the installed settings.py.

If I install with the ebuild(s) I created, the installed settings.py remains the same as the original settings.py.

If I build gourmet-0.16.0 from the tarball, and copy it's build/lib/gourmet/settings.py (which does get modified properly) over the emerge-installed settings.py, everything seems to work (reading recipes, importing from web page, printing -- which are all I've tested.).

So somewhere setup.py is failing to update settings.py when build as an ebuild.

Someone with even remedial python and ebuild knowledge could probably whip a functional ebuild out in no time.

Unfortunately, I'm ignorant. Just hoping that this info helps someone qualified to write a functional ebuild a little sooner.

Thanks. (I'm done polluting the report, unless I get something figured out by accident.)
Comment 4 Patrick Lauer gentoo-dev 2013-09-17 04:51:51 UTC
0.16.1 has arrived