Summary: | apache-2.eclass: Proposed enhancement: USE_EXPAND of APACHE2_MODULES should support IUSE-DEFAULTS | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stefan Kuhn <wuodan-gentoo> |
Component: | Eclasses | Assignee: | Apache Team - Bugzilla Reports <apache-bugs> |
Status: | UNCONFIRMED --- | ||
Severity: | enhancement | CC: | mail, patrick, stefan.kuhn |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
apache-2.eclass.patch
apache-2.eclass.MODULE_DEFAULTS.patch apache-2.eclass.MODULE_DEFAULTS.patch |
Description
Stefan Kuhn
2012-07-24 21:28:08 UTC
Created attachment 319136 [details, diff]
apache-2.eclass.patch
I'm sure there are better ways to code this, but it's simple and works in my tests ...
If that is not compliant with definition of USE_EXPAND in the PMS, then I would propose introducing a new variable to the eclass "MODULE_DEFAULTS" with the same effect. Bugzilla says: Assignee: apache-devs@gentoo.org did not match anything --- apache-2.eclass 23 May 2012 03:24:44 -0000 1.29 +++ apache-2.eclass 25 Jul 2012 01:34:01 -0000 @@ -4,7 +4,7 @@ # @ECLASS: apache-2.eclass # @MAINTAINER: -# apache-devs@gentoo.org +# apache-bugs@gentoo.org # @BLURB: Provides a common set of functions for apache-2.x ebuilds # @DESCRIPTION: # This eclass handles apache-2.x ebuild functions such as LoadModule generation Created attachment 319292 [details, diff]
apache-2.eclass.MODULE_DEFAULTS.patch
Other solution: New eclass variable MODULE_DEFAULTS
---------------------------------------------------
The attached diff contains a tested patch to the eclass.
The effect is the same:
=> we can set sane default modules/flags in the ebuild without touching the profile.
Sidenote: EAPI >2 throws QA-notice: ebeep not defined -------------------------------------------- I would also like to use REQUIRED_USE for apache-2.4, thus lifting EAPI from 2 to 4. But imho, the eclass is not completly conform with EAPI >2. This QA-notice shows up in apache-2_pkg_setup(). * QA Notice: ebeep is not defined in EAPI=4, please file a bug at * http://bugs.gentoo.org * Please note that you need SysV IPC support in your kernel. * Make sure CONFIG_SYSVIPC=y is set. Created attachment 319294 [details, diff]
apache-2.eclass.MODULE_DEFAULTS.patch
Wrong file, sorry
I'm willing to test anything. Can we have apache-24.eclass that best suits your thoughts and probably a new slot for 2.4? I think this will isolate 2.4 well enough but I'm not a ebuild dev (reassigning to the current maintainer of the eclass) |