aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-04-04 17:43:37 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-04-04 18:08:13 +0000
commitbbd8e62fc0d44e31004768342a5c4648a96afb26 (patch)
tree0705fc6234f254c021df50e2c3aca67d047389b1
parent306919e60b6b56d993e32ee84782f68521b935aa (diff)
downloadaports-bbd8e62fc0d44e31004768342a5c4648a96afb26.tar.gz
aports-bbd8e62fc0d44e31004768342a5c4648a96afb26.tar.bz2
aports-bbd8e62fc0d44e31004768342a5c4648a96afb26.tar.xz
community/perl-berkeleydb: modernize and remove redundant rpath
-rw-r--r--community/perl-berkeleydb/APKBUILD14
-rw-r--r--community/perl-berkeleydb/fix-rpath.patch16
2 files changed, 25 insertions, 5 deletions
diff --git a/community/perl-berkeleydb/APKBUILD b/community/perl-berkeleydb/APKBUILD
index 57a767e7be..fa7e15a25b 100644
--- a/community/perl-berkeleydb/APKBUILD
+++ b/community/perl-berkeleydb/APKBUILD
@@ -1,17 +1,20 @@
-# Automatically generated by apkbuild-cpan, template 2
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-berkeleydb
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=BerkeleyDB
pkgver=0.63
-pkgrel=0
-pkgdesc="Perl extension for Berkeley DB version 2, 3, 4 or 5"
+pkgrel=1
+pkgdesc="Perl extension for Berkeley DB version 2, 3, 4, 5 or 6"
url="https://metacpan.org/release/BerkeleyDB/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl"
makedepends="perl-dev db-dev"
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/P/PM/PMQS/BerkeleyDB-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/P/PM/PMQS/BerkeleyDB-$pkgver.tar.gz
+ fix-rpath.patch"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
@@ -30,4 +33,5 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="43edf4eb3650e7b03dfc45ead834ea766d458cf3bc9b6405646142ad0ab223bdb3267815be5a92ddbf3958e5507d39f193d749d9ff6fe83a3beb9e02e8f6c66b BerkeleyDB-0.63.tar.gz"
+sha512sums="43edf4eb3650e7b03dfc45ead834ea766d458cf3bc9b6405646142ad0ab223bdb3267815be5a92ddbf3958e5507d39f193d749d9ff6fe83a3beb9e02e8f6c66b BerkeleyDB-0.63.tar.gz
+3e7e75484ed8739e9b84bde2c1daa79ae6760a1570a30257504c80b4f0f6132553362040584c262f2775a2ab176c455b3b678e5d6aecbe5b3779cc7ad43a7679 fix-rpath.patch"
diff --git a/community/perl-berkeleydb/fix-rpath.patch b/community/perl-berkeleydb/fix-rpath.patch
new file mode 100644
index 0000000000..b48497571f
--- /dev/null
+++ b/community/perl-berkeleydb/fix-rpath.patch
@@ -0,0 +1,16 @@
+Submitter: Timothy Legge <timlegge@gmail.com>
+Date: 2020-04-04
+Specify rpath in Makefile.PL to avoid redundant rpath
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -57,6 +57,9 @@
+ #MAN3PODS => {}, # Pods will be built by installman.
+ INC => "-I$INC_DIR",
+ VERSION_FROM => 'BerkeleyDB.pm',
++ dynamic_lib => {
++ OTHERLDFLAGS => "-Wl,-rpath,/usr/lib/perl5/core_perl/CORE"
++ },
+ XSPROTOARG => '-noprototypes',
+ DEFINE => "$OS2 $WALL $TRACE",
+ #'macro' => { INSTALLDIRS => 'perl' },