Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575252 - depend.apache.eclass incompatible with EAPI >= 6
Summary: depend.apache.eclass incompatible with EAPI >= 6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-20 21:39 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2016-12-10 19:14 UTC (History)
2 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 Arfrever Frehtes Taifersar Arahesis 2016-02-20 21:39:52 UTC
$(get_libdir) is used _init_apache2, which is used by other functions called in global scope of ebuilds.

get_libdir is not defined in global scope in EAPI >= 6.


For e.g. www-apache/mpm_itk-2.4.7_p4 the following occurs in global scope (e.g. `emerge --regen`):

${gentoo_repository_location}/eclass/depend.apache.eclass: line 129: get_libdir: command not found

It can be reproduced for single ebuild in this way:
# ebuild mpm_itk-2.4.7_p4.ebuild depend
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-02-20 23:11:45 UTC
Patches are welcome. I have no idea how this can be fixed for EAPI-6.
Comment 2 Pacho Ramos gentoo-dev 2016-08-18 16:58:03 UTC
We need help for this as I see some people is wrongly relying on this eclass even on eapi6, probably because the eclass is not checking for eapi compat (I was near to commit another ebuild with eapi6 but I was lucky enough to see warnings about get_libdir)
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2016-09-30 22:23:25 UTC
commit 1434d8dc853a9cc4dd67eef51a63b9641955f9f4 (HEAD -> master, origin/master, origin/HEAD)
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sat Oct 1 00:21:46 2016 +0200

    depend.apache.eclass: output a fat warning if used with EAPI=6
    
    We would really need a PMS-supplied eqawarn here...

 eclass/depend.apache.eclass | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
Comment 4 jospezial 2016-09-30 22:47:29 UTC
The warning does not show the package name.

* EAPI=6 is not supported by depend.apache.eclass.
 * This means that app-eselect/0.9.1 is most likely buggy.
 * Please file a report on https://bugs.gentoo.org/
 * 
 * 
 * EAPI=6 is not supported by depend.apache.eclass.
 * This means that net-analyzer/2.4.10-r1 is most likely buggy.
 * Please file a report on https://bugs.gentoo.org/
 * 
 * 
 * EAPI=6 is not supported by depend.apache.eclass.
 * This means that net-analyzer/0.6.25-r3 is most likely buggy.
 * Please file a report on https://bugs.gentoo.org/
 * 
 * 
 * EAPI=6 is not supported by depend.apache.eclass.
 * This means that www-apache/0.24-r2 is most likely buggy.
 * Please file a report on https://bugs.gentoo.org/
 * 
/usr/portage/eclass/depend.apache.eclass: line 144: get_libdir: command not found
 * 
 * EAPI=6 is not supported by depend.apache.eclass.
 * This means that www-apache/1.0.12-r1 is most likely buggy.
 * Please file a report on https://bugs.gentoo.org/
 * 
/usr/portage/eclass/depend.apache.eclass: line 144: get_libdir: command not found
 * 
 * EAPI=6 is not supported by depend.apache.eclass.
 * This means that www-apps/4.4.12 is most likely buggy.
 * Please file a report on https://bugs.gentoo.org/
 * 
 * 
 * EAPI=6 is not supported by depend.apache.eclass.
 * This means that www-apps/5.0.3 is most likely buggy.
 * Please file a report on https://bugs.gentoo.org/
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2016-10-01 14:31:51 UTC
(In reply to jospezial from comment #4)
> The warning does not show the package name.
> 
> * EAPI=6 is not supported by depend.apache.eclass.
>  * This means that app-eselect/0.9.1 is most likely buggy.
>  * Please file a report on https://bugs.gentoo.org/

The warning is fixed as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116c153858bee6f176d051b7bb3dc1dde0139e11
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2016-12-10 19:14:42 UTC
Eclass updated, should be fine for EAPI=6 now (minor interface changes apply)