Github messages for voidlinux
 help / color / mirror / Atom feed
From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] build-style/perl-module: prepend not reset PERL5LIB
Date: Fri, 05 Feb 2021 10:46:56 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28513@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 371 bytes --]

There is a new pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages build-style-perl-module-prepend-not-reset-PERL5LIB
https://github.com/void-linux/void-packages/pull/28513

build-style/perl-module: prepend not reset PERL5LIB


A patch file from https://github.com/void-linux/void-packages/pull/28513.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-build-style-perl-module-prepend-not-reset-PERL5LIB-28513.patch --]
[-- Type: text/x-diff, Size: 1841 bytes --]

From 0b038a848f32bf0ea16d88b9c8c0d2281ca89a5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 5 Feb 2021 16:44:07 +0700
Subject: [PATCH 1/2] build-style/perl-module: prepend instead of reset
 PERL5LIB

In the next change, we need to have $wrksrc in PERL5LIB because
'.' is no longer in @INC
---
 common/build-style/perl-module.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/build-style/perl-module.sh b/common/build-style/perl-module.sh
index c2d5b8ddeca..002b9cd53c8 100644
--- a/common/build-style/perl-module.sh
+++ b/common/build-style/perl-module.sh
@@ -27,7 +27,7 @@ do_configure() {
 		cp "/usr/lib/perl5/core_perl/Config"*.p? $perlprefix
 		cp "/usr/lib/perl5/core_perl/Errno.pm" $perlprefix
 	fi
-	export PERL5LIB=$perlprefix
+	export PERL5LIB="$perlprefix${PERL5LIB:+:$PERL5LIB}"
 
 	if [ -f "${wrksrc}/Makefile.PL" ]; then
 		sed -i "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" "${wrksrc}/Makefile.PL"

From 80e3c82dfaac804721dfc04a82e30788110f4d0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Fri, 5 Feb 2021 16:45:10 +0700
Subject: [PATCH 2/2] perl-Crypt-DH: fix ftbfs

---
 srcpkgs/perl-Crypt-DH/template | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/srcpkgs/perl-Crypt-DH/template b/srcpkgs/perl-Crypt-DH/template
index 95fe7e66836..5c9404bb198 100644
--- a/srcpkgs/perl-Crypt-DH/template
+++ b/srcpkgs/perl-Crypt-DH/template
@@ -13,3 +13,7 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
 homepage="https://metacpan.org/release/Crypt-DH"
 distfiles="${CPAN_SITE}/Crypt/Crypt-DH-${version}.tar.gz"
 checksum=c88cf3423b01e6782e8986d7fe5304436ab84b0925c4498c6fdfa17ef9a37f5f
+
+pre_configure() {
+	export PERL5LIB=$wrksrc
+}

             reply	other threads:[~2021-02-05  9:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-05  9:46 sgn [this message]
2021-02-05  9:51 ` [PR PATCH] [Updated] " sgn
2021-02-05  9:58 ` sgn
2021-02-05  9:58 ` sgn
2021-02-05 10:11 ` leahneukirchen
2021-02-05 10:13 ` leahneukirchen
2021-02-05 10:14 ` leahneukirchen
2021-02-05 10:20 ` sgn
2021-02-05 10:23 ` [PR PATCH] [Updated] " sgn
2021-02-06  6:11 ` [PR PATCH] [Merged]: build-style/perl-module: put . into @INC sgn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28513@inbox.vuxu.org \
    --to=sgn@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).