Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205203 - New ebuild: gnome2-globalmenu-applet
Summary: New ebuild: gnome2-globalmenu-applet
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Low enhancement with 2 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://code.google.com/p/gnome2-globa...
Whiteboard:
Keywords: EBUILD
: 262888 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-10 13:14 UTC by Serhij S. Stasyuk
Modified: 2020-12-06 04:25 UTC (History)
9 users (show)

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


Attachments
ebuilds for gnome2-globalmenu-applet and gtk+-2.12.1-r2 (gnome2-globalmenu.ebuilds.tar.bz2,13.75 KB, application/x-bzip-compressed-tar)
2008-01-10 13:22 UTC, Serhij S. Stasyuk
Details
gnome-globalmenu-0.7.6.ebuild (gnome-globalmenu-0.7.6.ebuild,883 bytes, text/plain)
2009-07-04 04:39 UTC, Dan
Details
gnome-extra/gnome-globalmenu-0.7.6.ebuild (gnome-globalmenu-0.7.6.ebuild,839 bytes, text/plain)
2009-07-21 19:45 UTC, Christoph Brill (egore) (RESIGNED)
Details
gnome-globalmenu-0.7.6.ebuild (gnome-globalmenu-0.7.6.ebuild,910 bytes, text/plain)
2009-08-02 18:00 UTC, Gilles Dartiguelongue (RETIRED)
Details
gnome-extra/gnome-globalmenu-0.7.8.ebuild (gnome-globalmenu-0.7.8.ebuild,1.16 KB, text/plain)
2009-11-12 18:30 UTC, Olexandr Shalakhin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serhij S. Stasyuk 2008-01-10 13:14:47 UTC
This is ebuild for Global Menu Bar for Gnome.

It is quite disputable feature, but rather wanted by users. Referring to the homepage of the project, I can quote its purpose:
[quote]
The purpose of this project is to introduce document orientated concepts into gnome, and improve gnome respecting to Fitter's law.

Although users can obtain more mac-like experience via our project, this particular using should not be considered as our original goal.

In fact, sharing a global menu bar for various windows is also part of GNUStep, Etoile, and perhaps other projects that I haven't discovered yet. 
[/quote]

Here is:
- gnome-extra/gnome2-globalmenu-applet - svn trunk;
- x11-libs/gtk+ - slightly modified 2.12.1-r2 ebuild with patch from svn.

Later I'll add ebuild for 0.3 version of this package - when source files would be downloadable from the project page (developer noticed).

As you can see this package (applet) needs for normal functioning patched gtk+. But if gtk+ is not patched, there is no harm, just nothing would appear in applet. For configurablity I've added globalmenu use flag to gtk+ ebuild.   

I see 2 ways:
1. Notify user more aggressively about purpose and needs of this applet.
2. Disallow user to compile applet if gtk+ is built w/o globalmenu use flag.

I'll change this ebuild as you'd advise me here.
Comment 1 Serhij S. Stasyuk 2008-01-10 13:22:47 UTC
Created attachment 140603 [details]
ebuilds for gnome2-globalmenu-applet and gtk+-2.12.1-r2

x11-libs/gtk+/files contains all needed patches from the original portage tree.

patch for global menu is from current trunk, it may be replaced by users who want to compile by the next steps:

fetch svn version of gtk2-aqd patch from
http://gnome2-globalmenu.googlecode.com/svn/trunk/gtk2-aqd
put gtkmenubar.patch from fetched directory to
x11-libs/gtk+/files/gtk+-2.12.1-gtkmenubar.patch
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-01-10 13:40:42 UTC
Personnaly, I dislike the idea of patching gtk+ for this purpose and I'm pretty sure most other devs of the herd will agree.

One idea to fix/change this is that the menubar could probably be retrieved via the gnome accessibility framework which would be less intrusive wrt to gtk+ and still work with all gtk application (afaik). This would be a great way to test performance of the accessibility framework too but that's just an idea off the top of my head, maybe it's not doable.
Comment 3 Serhij S. Stasyuk 2008-01-10 14:20:30 UTC
> Personnaly, I dislike the idea of patching gtk+ for this purpose and I'm pretty
> sure most other devs of the herd will agree.

I also dislike idea of huge patches and I have added this issue here mostly as a place where most of people would look into before other sources.

> One idea to fix/change this is that the menubar could probably be retrieved via
> the gnome accessibility framework which would be less intrusive wrt to gtk+ and
> still work with all gtk application (afaik). This would be a great way to test
performance of the accessibility framework too but that's just an idea off the 
> top of my head, maybe it's not doable.

I don't think that it would be implemented in that way. There is a project Gtk+ for Mac OS X (http://developer.imendio.com/projects/gtk-macosx/). Seems it would have much more influence (i.e. proposed void gtk_quartz_set_global_menu_bar (GtkMenuBar *menubar);)

Better to look at project roadmap http://code.google.com/p/gnome2-globalmenu/wiki/DevelopmentHome#Roadmap

They planned to integrate it with gnome and gtk+ (due to much voted gnome and blocking gtk+ bugs IMO they have a great chance :) )

Currently developing version (just started, previous was released 2007-01-07 - 3 days ago) should introduce GtkGlobalMenuBar object and, AFAIK, better integration with Gtk+ for Mac OS X.

So, applet may be added to the main portage tree with the huge warning what and how to enable it or just holded on here for future releases.

But it would be cool :) if it would be added to main portage tree.

Thanks.

In any case applet can be built w/o gtk+ patch and it does not depend on it in any case.
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2008-01-11 13:49:00 UTC
Waaay too experimental, this is good stuff for an overlay though.
Comment 5 Serhij S. Stasyuk 2008-01-15 14:08:23 UTC
Yes, overlay is the best place for now.

Complete merge instructions for Gentoo are here: http://code.google.com/p/gnome2-globalmenu/wiki/InstallOnGentoo

Overlay created here: http://gnome2-globalmenu.googlecode.com/svn/gentoo-overlay/

Overlay description file for layman: http://gnome2-globalmenu.googlecode.com/svn/gentoo-overlay/layman-globalmenu.xml
Comment 6 Serhij S. Stasyuk 2008-01-15 14:11:13 UTC
Sorry for reopening, but seems that issue is not searchable when closed :(
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2008-01-15 14:16:02 UTC
Yes it is, you need to prepend "ALL" to your search, like instructed on the front page of bugs.gentoo.org.

Thanks
Comment 8 Serkan Kaba (RETIRED) gentoo-dev 2009-03-18 11:11:25 UTC
I guess it doesn't need a patched gtk nowadays.
Comment 9 Serkan Kaba (RETIRED) gentoo-dev 2009-03-18 11:11:41 UTC
*** Bug 262888 has been marked as a duplicate of this bug. ***
Comment 10 Serkan Kaba (RETIRED) gentoo-dev 2009-03-18 12:31:46 UTC
(In reply to comment #9)
> *** Bug 262888 has been marked as a duplicate of this bug. ***
> 

See Attachment #185388 [details] in the duplicate.
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-19 23:11:00 UTC
(In reply to comment #8)
> I guess it doesn't need a patched gtk nowadays.
> 

erm, guessing isn't exactly good enough for reopening this bug, I guess...
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-22 22:58:34 UTC
ok, looks like it's using gobject-introspection and GTK_MODULES/GtkSettings to avoid patch anything anymore so looks ok. Moving with the rest of the requests.
Comment 13 Dan 2009-07-04 04:39:24 UTC
Created attachment 196578 [details]
gnome-globalmenu-0.7.6.ebuild

Uploaded from official overlay.
Comment 14 Christoph Brill (egore) (RESIGNED) 2009-07-21 19:45:23 UTC
Created attachment 198732 [details]
gnome-extra/gnome-globalmenu-0.7.6.ebuild

This is a muched clean up version of the given ebuild. It uses the gnome2 eclass and fixes the completely broken DEPEND/RDEPEND stuff. It also uses the actual version numbers from the configure.ac.

I removed the ~x86 as I cannot test on that arch. Also the xfce4 part is untested.
Comment 15 Andrew Cowie 2009-08-02 08:40:01 UTC
Just tried the .ebuild at comment #14. Built fine on amd64.

Adding the applet worked fine. Looks beautiful. All my major apps (Evolution, Epiphany, gnome-terminal) worked great... except one: I tried Eclipse and it crashed. Damn.

Do you want the stack trace?

AfC
Comment 16 Serhij S. Stasyuk 2009-08-02 15:02:02 UTC
(In reply to comment #15)

> Just tried the .ebuild at comment #14. Built fine on amd64.

Thanks for testing.

> Adding the applet worked fine. Looks beautiful. All my major apps (Evolution,
> Epiphany, gnome-terminal) worked great... except one: I tried Eclipse and it
> crashed. Damn.
>
> Do you want the stack trace?

It is known issue:
http://code.google.com/p/gnome2-globalmenu/issues/detail?id=408

Better to ask help there, this is application problem, not packaging.



Comment 17 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-02 18:00:16 UTC
Created attachment 199950 [details]
gnome-globalmenu-0.7.6.ebuild

Changes to actually match what's written in configure.ac:
 * gconf and gnome-menus are unconditionaly needed
 * libnotify is conditional on gnome
 * gettext is most often unneeded when intltool is already in DEPEND
 * forced --without-gir since it might hit portage one day and that would make an automagic dependency which is really bad.

Side notes:
 * package does not pass its testsuite
 * package build some libs with ../something.la, this is wrong and will cause parallel make failures, just use $(top_srcdir) or $(top_buildir) as appropriate
Comment 18 Andrew Cowie 2009-08-03 03:09:39 UTC
(In reply to comment #16)
> 
> > Do you want the stack trace?
> 
> It is known issue:

I checked the bug you linked to and indeed my crash traces are the same. Thanks. I'll keep an eye out, and re-test when upstream releases again.

Cheers,

AfC

Comment 19 Serhij S. Stasyuk 2009-09-12 14:05:52 UTC
Thanks, Gilles.

Updated ebuild to 0.7.7, partially based on your attachment.

I've modified it according to my experience of submitting ebuilds to sunrise overlay - removed unneeded package versions - there are no ebuilds of lower versions in portage.
Comment 20 Olexandr Shalakhin 2009-11-12 18:30:11 UTC
Created attachment 210045 [details]
gnome-extra/gnome-globalmenu-0.7.8.ebuild

Ebuild with support for gnome, xfce (not tested) for gnome-globalmenu 0.7.8. Should be start with disabled sandbox.
Comment 21 Serhij S. Stasyuk 2009-11-12 18:55:03 UTC
(In reply to comment #20)
> Created an attachment (id=210045) [details]
> ebuld to install gnome-globalmenu 0.7.8

Please, take a look at comment #5. Have you checked ebuild that is in overlay?
Are you sure that ">=x11-libs/libX11-1.1.0" is required?

> Ebuild with support for gnome, xfce (not tested) for gnome-globalmenu 0.7.8.
> Should be start with disabled sandbox.

Strange, but I can install it with enabled sandbox.

Comment 22 Olexandr Shalakhin 2009-11-12 23:22:09 UTC
(In reply to comment #21)
> (In reply to comment #20)
> > Created an attachment (id=210045) [details] [details]
> > ebuld to install gnome-globalmenu 0.7.8
> 
> Please, take a look at comment #5. Have you checked ebuild that is in overlay?
> Are you sure that ">=x11-libs/libX11-1.1.0" is required?
> 
> > Ebuild with support for gnome, xfce (not tested) for gnome-globalmenu 0.7.8.
> > Should be start with disabled sandbox.
> 
> Strange, but I can install it with enabled sandbox.
> 

Then I think I have something missed. :) Besides, thanks for link to the overlay.
Comment 23 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-04-13 22:04:00 UTC
I've commited the ebuild as gnome-extra/gnome-globalmenu-0.7.9 into the Sunrise overlay [1]. After the review, it will be available through layman and the Trac SVN browser [2].

[1] http://overlays.gentoo.org/proj/sunrise
[2] http://overlays.gentoo.org/proj/sunrise/browser/reviewed/gnome-extra/gnome-globalmenu
Comment 24 Alex Rodionov 2010-12-01 18:23:31 UTC
There is a new version 0.7.10. How can it be updated in sunrise overlay?
Comment 25 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-08 16:05:58 UTC
It seems that this package is no longer in Sunrise.