Bug 107887 - gnome-menus-2.12.0 misusing the global python use flag
Bug#: 107887 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gnome@gentoo.org Reported By: blubb@gentoo.org
Component: GNOME
URL: 
Summary: gnome-menus-2.12.0 misusing the global python use flag
Keywords:  
Status Whiteboard: 
Opened: 2005-10-02 06:02 0000
Description:   Opened: 2005-10-02 06:02 0000
gnome-menus-2.12.0 mis-uses the global python use flag: 

$ grep python /usr/portage/profiles/use.desc
python - Adds support/bindings for the Python language

but without the python use flag, i don't get the menu editor, because it's
written in python

i suggest you either hard-code the python-dependency or introduce a new, local,
more evident use flag, e.g. 'menu-editor'

------- Comment #1 From John N. Laliberte (RETIRED) 2005-10-07 05:22:49 0000 -------
it doesn't really misuse it, in the configure.in it does say:

              [AC_HELP_STRING([--enable-python],
                              [build python bindings [default=auto]])],

which *enable* bindings, but I guess the menu-editor also relies on this:

if HAVE_PYTHON
PYTHON_SUBDIRS = python simple-editor
endif

------- Comment #2 From Simon Stelling (RETIRED) 2005-10-07 06:52:04 0000 -------
right, didn't check that. in that case the use flag should completely get
removed, IMHO, but that's just my opinion. :)

------- Comment #3 From John N. Laliberte (RETIRED) 2005-10-27 13:53:15 0000 -------
removed python useflag, in CVS.

Thanks!

------- Comment #4 From Thomas Kirchner 2005-10-28 05:52:09 0000 -------
I don't think this is a very good solution until we have a USE flag for the
editor.  gnome-menus is a dep of other packages that don't imply gnome itself,
and I don't want pygtk and all its deps.  Standard Gentoo theory - don't force it.

How about simply changing the "python" USE flag from the pre-r1 ebuild to
"editor" and letting configure do the rest?

------- Comment #5 From Thomas Kirchner 2005-10-28 05:53:24 0000 -------
I don't think this is a very good solution until we have a USE flag for the
editor.  gnome-menus is a dep of other packages that don't imply gnome itself,
and I don't want pygtk and all its deps.  Standard Gentoo theory - don't force it.

How about simply changing the "python" USE flag from the pre-r1 ebuild to
"editor" and letting configure do the rest?

------- Comment #6 From Nikolai Weibull 2005-10-28 06:02:19 0000 -------
(In reply to comment #5)
> I don't think this is a very good solution until we have a USE flag for the
> editor.  gnome-menus is a dep of other packages that don't imply gnome itself,
> and I don't want pygtk and all its deps.  Standard Gentoo theory - don't force it.
> 
> How about simply changing the "python" USE flag from the pre-r1 ebuild to
> "editor" and letting configure do the rest?

I totally agree with this.  I don't want to pull in

[ebuild  N    ] dev-python/pyopengl-2.0.0.44  0 kB 
[ebuild  N    ] x11-libs/gtkglarea-1.99.0  +debug 0 kB 
[ebuild  N    ] dev-python/pygtk-2.6.1  -doc +gnome +opengl 0 kB 

just because I must have gnome-menus installed to get gnome-base installed (I
actually only want the libraries for a few programs, as I don't even use the
panel, but that's another story).  I still don't understand quite why we're
misusing the python flag here, but you know better than me.  Perhaps upstream
should separate the editor from gnome-menus and create a gnome-menu-editor
package instead.  I guess we could do that as well, kind of like how we do with
gst-plugins-*.