Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262588 - gnome-extra/gnome-user-share-0.41 should use EAPI=2
Summary: gnome-extra/gnome-user-share-0.41 should use EAPI=2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-15 19:06 UTC by Kobboi
Modified: 2009-11-07 23:31 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 Kobboi 2009-03-15 19:06:20 UTC
Recent portage versions allow automatic recompilation with different USE flags. This ebuild should also make use of this property.

* You need to build www-servers/apache with APACHE2_MODULES='dav dav_fs authn_file auth_digest authz_groupfile'
 * 
 * ERROR: gnome-extra/gnome-user-share-0.41 failed.
 * Call stack:
 *                      ebuild.sh, line   48:  Called pkg_setup
 *   gnome-user-share-0.41.ebuild, line   44:  Called die
 * The specific snippet of code:
 *   		die "re-emerge www-servers/apache with APACHE2_MODULES='dav dav_fs authn_file auth_digest authz_groupfile'"
 *  The die message:
 *   re-emerge www-servers/apache with APACHE2_MODULES='dav dav_fs authn_file auth_digest authz_groupfile'
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/gnome-extra/gnome-user-share-0.41/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/gnome-user-share-0.41/temp/die.env'.


Reproducible: Always
Comment 1 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-03-15 19:50:01 UTC
You mean EAPI=2 use-deps? It's not as simple as it seems. Will be fixed for 2.26.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-15 21:06:21 UTC
gnome-user-share is in the tree. If you tell me that you have a patch that is tested and works, I'm fine with including it. I'm not sure (pretty sure of the opposite in fact) EAPI=2 allows us to use IUSE_EXPANDed use flags in USE dependencies.
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-03-15 22:25:34 UTC
(In reply to comment #2)
> gnome-user-share is in the tree. If you tell me that you have a patch that is
> tested and works, I'm fine with including it. I'm not sure (pretty sure of the
> opposite in fact) EAPI=2 allows us to use IUSE_EXPANDed use flags in USE
> dependencies.
> 

That's not the only problem. Even if it works, portage will tell the user to enable the USE flags instead of the modules. Which is plain wrong.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-22 14:47:12 UTC
alright, IUSE_DEFAULTS not IUSE_EXPAND aware, maybe we should forward this to portage devs ?
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-06-17 22:43:46 UTC
Hi Zack, could you comment on comment #4 ? Is this a simple wontfix or is it possible that portage will support this in the future ?
Comment 6 Zac Medico gentoo-dev 2009-06-17 22:55:30 UTC
I guess we're talking about bug #258371. For now, the best you can do is EAPI=2 USE deps and either set the flags via IUSE="+flag" or in profile package.use.
Comment 7 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-06-18 05:33:59 UTC
(In reply to comment #6)
> I guess we're talking about bug #258371. For now, the best you can do is EAPI=2
> USE deps and either set the flags via IUSE="+flag" or in profile package.use.
> 

That bug would be useful too, but this problem is about the message portage will give to enable IUSE_EXPAND stuff -- the appropriate make.conf variable, or the expanded USE flags.
Comment 8 Zac Medico gentoo-dev 2009-06-18 17:51:44 UTC
(In reply to comment #7)
> That's not the only problem. Even if it works, portage will tell the user to
> enable the USE flags instead of the modules. Which is plain wrong.

It wouldn't say that it's entirely "wrong", because it will work enable the corresponding USE flags such as USE="apache2_modules_dav". Portage will correctly generate the APACHE2_MODULES value to be consistent with USE settings. Moving forward, it's not a bad idea to add support to portage to generate special output for USE_EXPAND flags.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-07 23:31:56 UTC
gnome-user-share 2.28 ebuilds uses EAPI 2 for that now. Probably not the most elegant way of writing such deps but it seems to work just fine.