Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91456 - Smeg 0.5 (new ebuild)
Summary: Smeg 0.5 (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-04 09:53 UTC by Tim Heinrich
Modified: 2005-06-12 21:38 UTC (History)
3 users (show)

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


Attachments
Smeg 0.5 ebuild (smeg-0.5.ebuild,513 bytes, text/plain)
2005-05-04 09:54 UTC, Tim Heinrich
Details
smeg-0.5.ebuild (smeg-0.5.ebuild,480 bytes, text/plain)
2005-05-22 16:26 UTC, Ed Catmur
Details
smeg-0.6.2 ebuild (smeg-0.6.2.ebuild,595 bytes, text/plain)
2005-05-26 13:29 UTC, Schricker
Details
smeg-0.6.2 ebuild (smeg-0.6.2.ebuild,619 bytes, text/plain)
2005-05-27 05:24 UTC, Schricker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Heinrich 2005-05-04 09:53:44 UTC
Ebuild for smeg, the simple menu editor for gnome
Homepage: http://www.realistanew.com/projects/smeg/

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Tim Heinrich 2005-05-04 09:54:33 UTC
Created attachment 58045 [details]
Smeg 0.5 ebuild
Comment 2 Ed Catmur 2005-05-22 16:26:46 UTC
Created attachment 59595 [details]
smeg-0.5.ebuild

Use distutils.eclass.

Suggest gnome-extra/smeg.
Comment 3 Schricker 2005-05-26 13:28:59 UTC
smeg-0.6.2 released - copying the ebuild does not work.

 --> needs gnome-python as dep (I chose >=2.6.1 as that's what I have installed)
     (as seen in the forums)
 --> patch fails
 --> does not run! :-(

I have no clue of python (C/C++/Java only :-/) so  maybe someone else can take
on it! 
Running smeg gives:

-----
$ smeg
Traceback (most recent call last):
  File "/usr/bin/smeg", line 399, in on_menus_cursor_changed
    self.getEntries(model.get_value(iter, 3))
  File "/usr/bin/smeg", line 260, in getEntries
    entries.sort(cmp=lambda x,y: cmp(x.DesktopEntry.getName(),
y.DesktopEntry.getName()))
-----

Maybe the patch needs to be redone? Sorry I can't help with python ...


Florian
Comment 4 Schricker 2005-05-26 13:29:23 UTC
Created attachment 59895 [details]
smeg-0.6.2 ebuild
Comment 5 Tim Heinrich 2005-05-27 05:20:47 UTC
Hmm, if I try to start smeg there is a error:

  self.tree = gtk.glade.XML(os.path.join(libdir, 'smeg.glade'))
Traceback (most recent call last):
  File "/usr/bin/smeg", line 481, in ?
    smeg.run()
  File "/usr/bin/smeg", line 476, in run
    self.getMenus()
  File "/usr/lib/smeg/MenuHandler.py", line 181, in loadMenus
    menu = xdg.Menu.parse()
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 557, in parse
    __parse(doc, filename, tmp["Root"])
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 578, in __parse
    __parseMenu(child, filename, parent)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 712, in __parseMenu
    __parse(child, filename, m)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 618, in __parse
    raise ValidationError('MergeFile cannot be empty', filename)
xdg.Exceptions.ValidationError: ValidationError in file
'/home/tim/.config/menus/applications.menu': MergeFile cannot be empty
Comment 6 Schricker 2005-05-27 05:24:36 UTC
Created attachment 59942 [details]
smeg-0.6.2 ebuild

updated DEPEND; added >=dev-lang/python-2.4 since it's needed (smeg fails to
read the applications-list of a given menu-entry with python-2.3).
Comment 7 Schricker 2005-05-27 05:29:17 UTC
(In reply to comment #5)
> Hmm, if I try to start smeg there is a error:
> xdg.Exceptions.ValidationError: ValidationError in file
> '/home/tim/.config/menus/applications.menu': MergeFile cannot be empty

Something's not right with your $HOME/.config/menus/applications.menu file! Try
moving it.

regards,
Florian
Comment 8 Tim Heinrich 2005-05-27 05:34:49 UTC
I tried, but it will be recreated with the same content as before and the same
error.
Comment 9 Harry Kashouli 2005-05-28 15:42:32 UTC
(In reply to comment #5)
> Hmm, if I try to start smeg there is a error:
> 
>   self.tree = gtk.glade.XML(os.path.join(libdir, 'smeg.glade'))
> Traceback (most recent call last):
>   File "/usr/bin/smeg", line 481, in ?
>     smeg.run()
>   File "/usr/bin/smeg", line 476, in run
>     self.getMenus()
>   File "/usr/lib/smeg/MenuHandler.py", line 181, in loadMenus
>     menu = xdg.Menu.parse()
>   File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 557, in parse
>     __parse(doc, filename, tmp["Root"])
>   File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 578, in __parse
>     __parseMenu(child, filename, parent)
>   File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 712, in __parseMenu
>     __parse(child, filename, m)
>   File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 618, in __parse
>     raise ValidationError('MergeFile cannot be empty', filename)
> xdg.Exceptions.ValidationError: ValidationError in file
> '/home/tim/.config/menus/applications.menu': MergeFile cannot be empty

I get this error if I start as root. Perhaps that's the problem?
Comment 10 Harry Kashouli 2005-05-28 15:44:53 UTC
Guys, I just installed smeg from the webpage but my Gnome 2.10 menu is now
empty.... Perhaps this is a problem?

How do I go about fixing this?
Comment 11 Tim Heinrich 2005-05-29 05:40:08 UTC
I get the error always, not only as user but with all users and root...
Comment 12 Heinrich Wendel (RETIRED) gentoo-dev 2005-05-30 09:31:21 UTC
smeg-0.7 now in portage, masked though since it python-2.4 and  
gnome-menus-2.10.1 are masked.  
  
gnome-menus-2.10.1 fixes the empty menu problem  
  
the ValidationError might be fixed as well, but is a problem in pyxdg otherwise  
Comment 13 Tim Heinrich 2005-05-30 12:47:35 UTC
Well, the error remained. I removed the file and now I get this error message:

/usr/bin/smeg:48: GtkWarning: Theme directory scalable/emblems of theme
Flat-Blue has no size field

  self.tree = gtk.glade.XML(os.path.join(libdir, 'smeg.glade'))
Traceback (most recent call last):
  File "/usr/bin/smeg", line 549, in ?
    main()
  File "/usr/bin/smeg", line 545, in main
    smeg = Smeg()
  File "/usr/bin/smeg", line 52, in __init__
    self.handler = MenuHandler(self, self.config)
  File "/usr/lib/smeg/MenuHandler.py", line 47, in __init__
    xdg.MenuEditor.MenuEditor.__init__(self)
  File "/usr/lib/python2.4/site-packages/xdg/MenuEditor.py", line 25, in __init__
    self.parse(menu, filename)
  File "/usr/lib/python2.4/site-packages/xdg/MenuEditor.py", line 36, in parse
    self.menu = parse()
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 503, in parse
    __parse(doc, filename, tmp["Root"])
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 524, in __parse
    __parseMenu(child, filename, parent)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 682, in __parseMenu
    __parse(child, filename, m)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 588, in __parse
    __parseKDELegacyDirs(filename, parent)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 817, in
__parseKDELegacyDirs
    for dir in output[0].split(":"):
IndexError: list index out of range
Comment 14 reisio 2005-06-12 21:38:58 UTC
Aside from what emerge drew in, I also had to emerge dev-python/pygtk before
smeg worked (gave an error about failure to load pygtk or something).

Right now I have it working pretty well with the following:
->  x11-misc/smeg-0.7.5
->  dev-python/pyxdg-0.14
->  gnome-base/gnome-menus-2.10.1
->  dev-lang/python-2.4.1
->  dev-python/pygtk-2.6.1

Using gnome 2.10-r1.

Fwiw the first time I used it, it blanked my menu leaving only the Actions
stuff, but a quick killall gnome-panel fixed it.