$(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
Patches are welcome. I have no idea how this can be fixed for EAPI-6.
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)
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(+)
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/
(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
Eclass updated, should be fine for EAPI=6 now (minor interface changes apply)