summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-03 03:28:54 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-03 03:28:54 +0000
commit75ad34513e7be0eb1877e304e52e9f7ee9229425 (patch)
tree886fd3ffe02ce35dee4ed4b65278b4549f3ee741 /user
parent112b3506f43d44f10ccf6d61dd9c758c4d005dae (diff)
downloadpackages-75ad34513e7be0eb1877e304e52e9f7ee9229425.tar.gz
packages-75ad34513e7be0eb1877e304e52e9f7ee9229425.tar.bz2
packages-75ad34513e7be0eb1877e304e52e9f7ee9229425.tar.xz
packages-75ad34513e7be0eb1877e304e52e9f7ee9229425.zip
user/perl-file-finder: fix test, thanks @smaeul
Diffstat (limited to 'user')
-rw-r--r--user/perl-file-finder/APKBUILD9
-rw-r--r--user/perl-file-finder/fix-test.patch16
2 files changed, 22 insertions, 3 deletions
diff --git a/user/perl-file-finder/APKBUILD b/user/perl-file-finder/APKBUILD
index a28247770..83f2ada97 100644
--- a/user/perl-file-finder/APKBUILD
+++ b/user/perl-file-finder/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-file-finder
pkgver=0.53
-pkgrel=0
+pkgrel=1
pkgdesc="Wrap Perl File::Find"
url="https://metacpan.org/release/File-Finder"
arch="noarch"
@@ -10,7 +10,9 @@ license="Artistic-1.0-Perl"
depends="perl-text-glob"
makedepends="perl-dev"
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/M/ME/MERLYN/File-Finder-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/M/ME/MERLYN/File-Finder-$pkgver.tar.gz
+ fix-test.patch
+ "
builddir="$srcdir/File-Finder-$pkgver"
build() {
@@ -30,4 +32,5 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="abcbc5b5c7ae09eb13e62ab1656e79a25becafb91eeef241fc0803ba0b35ae902c93db2240dfff6342952df7f0ff589350f63fdb1ccead64816f51bf52e366f0 File-Finder-0.53.tar.gz"
+sha512sums="abcbc5b5c7ae09eb13e62ab1656e79a25becafb91eeef241fc0803ba0b35ae902c93db2240dfff6342952df7f0ff589350f63fdb1ccead64816f51bf52e366f0 File-Finder-0.53.tar.gz
+8b96e6adb28e0a26843a3551d5939b9c9f65fbef155e46c155b82263923e1275a6be8c6184bbc831dfff7cc899d7b48df0f21e7005f273c389eff830190be166 fix-test.patch"
diff --git a/user/perl-file-finder/fix-test.patch b/user/perl-file-finder/fix-test.patch
new file mode 100644
index 000000000..6c371f6fc
--- /dev/null
+++ b/user/perl-file-finder/fix-test.patch
@@ -0,0 +1,16 @@
+Thanks @smaeul
+
+--- File-Finder-0.53/t/05-steps.t.old 2004-10-07 01:04:12.000000000 -0500
++++ File-Finder-0.53/t/05-steps.t 2018-10-02 22:27:29.867015209 -0500
+@@ -51,9 +51,9 @@
+ 'mode 755');
+
+ {
+- my $dirperm = (stat ".")[2] & 07777;
++ my $dirperm = (stat ".")[2] & 0777;
+ is_deeply([File::Finder->perm($dirperm)->in(qw(.))],
+- [fin(sub { ((stat($_))[2] & 07777) == $dirperm }, '.')],
++ [fin(sub { ((stat($_))[2] & 0777) == $dirperm }, '.')],
+ 'mode same as current directory');
+ }
+