diff options
author | Sam James <sam@gentoo.org> | 2024-09-25 12:12:12 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-25 12:12:12 +0100 |
commit | 4c3f798d2394f8c4b6e7e8fc5e8cc4a35c0f8ed5 (patch) | |
tree | c79c394757e41c43a113ae51e366f55663330a48 /eclass | |
parent | guile.eclass: fix EclassExportFuncsBeforeInherit (diff) | |
download | gentoo-4c3f798d2394f8c4b6e7e8fc5e8cc4a35c0f8ed5.tar.gz gentoo-4c3f798d2394f8c4b6e7e8fc5e8cc4a35c0f8ed5.tar.bz2 gentoo-4c3f798d2394f8c4b6e7e8fc5e8cc4a35c0f8ed5.zip |
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/xdg.eclass | 10 |
1 files 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 |