Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212830 - app-admin/gamin always installs python bindings
Summary: app-admin/gamin always installs python bindings
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-09 15:15 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2008-04-06 22:48 UTC (History)
3 users (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 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-03-09 15:15:46 UTC
I suppose a python USE flag linked to --with/--without-python would be a good idea there.

Also, it does not use the usual postinst/postrm functions for python code so pyc/pyo files are orphaned after removal.
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-03-09 15:24:05 UTC
Is there a reason to make the bindings optional?  It's not like you can have a system without python...
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-03-09 15:24:27 UTC
(the postinst/postrm need to be fixed, tho)
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-03-09 16:18:44 UTC
When you build for ROOT you _can_ have a system without Python. Think embedded systems.
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-03-09 16:55:40 UTC
Sure, and such a system won't install the bindings, because it doesn't have python.  I'm against adding use flags if they don't change the deps.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-03-09 17:09:53 UTC
No such a system _will_ install the bindings because there _is_ python on ROOT=/ .

It's an automagic dep right now, add a python? ( dev-lang/python ) dependency like almost any other package with optional python bindings has and it will be fine.

Also, why should I install python bindings I'm not ever going to use? This is what we do already for almost everything else on the tree by the way.
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2008-03-10 09:02:27 UTC
If nothing in the tree uses the python bindings to gamin, we might as well use --without-python and be done with it.

What say you?
Comment 7 Tiziano Müller (RETIRED) gentoo-dev 2008-03-10 13:31:31 UTC
what about users having developing something using those bindings?
Or using an overlay with a package depending on it?
Insert that python USE-flag and dependency like everyone else!
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-04-05 16:09:18 UTC
fixed in -r1.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-04-05 16:11:15 UTC
and in case anyone wonder why there is no postrm/postinst, it is because gamin doesn't install .py, just bindings
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-04-05 19:50:23 UTC
correction, I didn't see the .py so it's now fixed.
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-04-06 14:15:30 UTC
"${ROOT}" probably should be used also for python_mod_cleanup in pkg_postrm().
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-04-06 22:48:57 UTC
(In reply to comment #11)
> "${ROOT}" probably should be used also for python_mod_cleanup in pkg_postrm().
> 

no there is no need to in pkg_postrm.