commit:     4c3f798d2394f8c4b6e7e8fc5e8cc4a35c0f8ed5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 25 11:12:12 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 25 11:12:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c3f798d

xdg.eclass: fix EclassExportFuncsBeforeInherit

Bug: https://github.com/pkgcore/pkgcheck/issues/702
Bug: https://github.com/pkgcore/pkgcheck/issues/703
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/xdg.eclass | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/eclass/xdg.eclass b/eclass/xdg.eclass
index 6af4b91875fc..2e16a438d840 100644
--- a/eclass/xdg.eclass
+++ b/eclass/xdg.eclass
@@ -45,8 +45,6 @@ case ${EAPI} in
                        default
                }
 
-               EXPORT_FUNCTIONS src_prepare
-
                DEPEND="${_XDG_DEPEND}"
                ;;
        *)
@@ -131,4 +129,12 @@ xdg_pkg_postrm() {
 
 fi
 
+case ${EAPI} in
+       6|7)
+               EXPORT_FUNCTIONS src_prepare
+               ;;
+       *)
+               ;;
+esac
+
 EXPORT_FUNCTIONS pkg_preinst pkg_postinst pkg_postrm

Reply via email to