Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages-i486-stage1
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-01 10:05:54 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-01 10:05:54 +0100
commit01b9f1fb2e19f0d587bdbe77d9861d62de4dcd8f (patch)
treedb7f681ce0fe4969e85e9627a919cacb64a5d42a /packages-i486-stage1
parent96306251769086a8e9ff933d2d7d1560bf55df7b (diff)
made perl work in parallel build
Diffstat (limited to 'packages-i486-stage1')
-rw-r--r--packages-i486-stage1/perl8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages-i486-stage1/perl b/packages-i486-stage1/perl
index 6626e6b..80032bf 100644
--- a/packages-i486-stage1/perl
+++ b/packages-i486-stage1/perl
@@ -1,6 +1,3 @@
-# cross-compiling perl doesn't work in parallel
-NOPARALLEL_BUILD=1
-
# the official cross-compilation support in Perl is weird and needs a
# running remote SSH access to the real machine:
# https://stackoverflow.com/questions/5464538/cross-compile-perl-for-arm
@@ -11,6 +8,11 @@ sed -i "/md5sums=/ a\ 'SKIP'" PKGBUILD
sed -i '1!N; /prepare() *{\n *cd/ a \ tar --strip-components=1 -zxf ${srcdir}/perl-cross-1.1.8.tar.gz' PKGBUILD
sed -i "s@./Configure -des@./configure --target=$TARGET_ARCH@" PKGBUILD
+# ./miniperl_top: no ./miniperl found; build it before using miniperl_top
+# we can build in parallel with this small trick: there is a dependency
+# missing from miniperl_top to miniperl it seems
+sed -i 's/^ \+make$/make miniperl; make/' PKGBUILD
+
# rm: cannot remove '/home/cross/build/perl/pkg/perl/usr/bin/perl5.26.1': No such file or directory
sed -i 's@\(rm "$pkgdir/usr/bin/perl$pkgver\)@#\1@g' PKGBUILD