commit:     9923973f58e7f5af1b1b53d9077b210224fc81b0
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 10:18:43 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 10 17:27:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9923973f

perl-module.eclass: stop using ${D} for Module::Build in src_configure

See 
https://github.com/Perl-Toolchain-Gang/Module-Build/blob/a2ecdf98c25af7dfc7070280232513e8ccec4986/lib/Module/Build/Cookbook.pm#L122.

Bug: https://bugs.gentoo.org/778806
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/perl-module.eclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index fd1af4f945b1..9e3cfab16f94 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -272,7 +272,6 @@ perl-module_src_configure() {
                set -- \
                        --installdirs=vendor \
                        --libdoc= \
-                       --destdir="${D}" \
                        --create_packlist=1 \
                        --config ar="$(tc-getAR)" \
                        --config cc="$(tc-getCC)" \
@@ -439,7 +438,7 @@ perl-module_src_install() {
 
        if [[ -f Build ]]; then
                mytargets="${mytargets:-install}"
-               mbparams="${mbparams:---pure}"
+               mbparams="${mbparams:---destdir="${D}" --pure}"
                einfo "./Build ${mytargets} ${mbparams}"
                ./Build ${mytargets} ${mbparams} \
                        || die "./Build ${mytargets} ${mbparams} failed"

Reply via email to