mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
perl: update perl-cross to 1.2.2
This allows us to drop the build race fixes. (From OE-Core rev: c869560c25223dd336ce84847ddbdbe44e4c391c) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e63e5b2e18
commit
d715262149
@@ -1,31 +0,0 @@
|
||||
From 9c68cdd1a89f9b944edc804d7c5d000c45de7b85 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Mon, 14 Jan 2019 11:45:20 +0100
|
||||
Subject: [PATCH] Also build dynaloader separately as race failures have been
|
||||
observed in Yocto.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/arsv/perl-cross/issues/72]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
Makefile | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 7846406..cd8d75f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -74,10 +74,13 @@ $(CROSSPATCHED): %.applied: %.patch
|
||||
# Force full patching before any building starts. Als, force early building
|
||||
# of miniperl -- not really necessary, but makes the build process more logical.
|
||||
# No reason to try CC if HOSTCC fails.
|
||||
+#
|
||||
+# Dynaloader is also built separately as race failures have been observed.
|
||||
all:
|
||||
$(MAKE) crosspatch
|
||||
$(MAKE) miniperl$X
|
||||
- $(MAKE) dynaloader perl$x nonxs_ext utilities extensions pods
|
||||
+ $(MAKE) dynaloader
|
||||
+ $(MAKE) perl$x nonxs_ext utilities extensions pods
|
||||
|
||||
config.h: config.sh config_h.SH
|
||||
CONFIG_H=$@ CONFIG_SH=$< ./config_h.SH
|
||||
@@ -1,27 +0,0 @@
|
||||
From 965adc80636e24e9608ca983c18c95cae08de021 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Mon, 21 Jan 2019 12:09:13 +0100
|
||||
Subject: [PATCH] Make sure install.perl runs before install.man
|
||||
|
||||
Otherwise, install.man may attempt to write to non-existing directory:
|
||||
| Can't open file /home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/perl/5.28.1-r0/image/usr/libx32/perl5/5.28.1/x86_64-linux/.packlist: No such file or directory at installman line 183.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/arsv/perl-cross/issues/72]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index cd8d75f..82bdc1d 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -410,7 +410,7 @@ install.perl: installperl | miniperl$X
|
||||
./miniperl_top installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
|
||||
-@test ! -s extras.lst || $(MAKE) extras.install
|
||||
|
||||
-install.man: installman pod/perltoc.pod | miniperl$X
|
||||
+install.man: install.perl installman pod/perltoc.pod | miniperl$X
|
||||
./miniperl_top installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
|
||||
|
||||
ifneq ($(perlname),perl)
|
||||
@@ -1,32 +0,0 @@
|
||||
From a0a2fcac3735ca90017976d2b87f550d051a969b Mon Sep 17 00:00:00 2001
|
||||
From: Robert Yang <liezhi.yang@windriver.com>
|
||||
Date: Tue, 22 Jan 2019 19:21:27 -0800
|
||||
Subject: [PATCH] Makefile: Make install.perl depend on install.sym
|
||||
|
||||
Fix a race issue when install, there might be no
|
||||
$(installbin)/$(perlname)$(version) when install.sym runs after install.perl
|
||||
since install.sym removes it.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/arsv/perl-cross/pull/73]
|
||||
|
||||
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index cd8d75f..1aa8ef2 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -406,7 +406,7 @@ META.yml: Porting/makemeta Porting/Maintainers.pl Porting/Maintainers.pm miniper
|
||||
|
||||
install: install.perl install.sym install.man
|
||||
|
||||
-install.perl: installperl | miniperl$X
|
||||
+install.perl: installperl install.sym | miniperl$X
|
||||
./miniperl_top installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
|
||||
-@test ! -s extras.lst || $(MAKE) extras.install
|
||||
|
||||
--
|
||||
2.10.2
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
From e1e159a189247af1557fe400ca861714e5ed5af4 Mon Sep 17 00:00:00 2001
|
||||
From: Alex Suykov <alex.suykov@gmail.com>
|
||||
Date: Thu, 3 Jan 2019 22:03:20 +0200
|
||||
Subject: [PATCH] force crosspatch before any CC/HOSTCC rules
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/arsv/perl-cross/issues/72]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
|
||||
---
|
||||
Makefile | 10 +++++++---
|
||||
1 file changed, 7 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 01644cd..62bfc8c 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -71,9 +71,13 @@ $(CROSSPATCHED): %.applied: %.patch
|
||||
# (mostly Makefile.PLs, but others can be annoying too)
|
||||
.SECONDARY:
|
||||
|
||||
-# Force early building of miniperl -- not really necessary, but makes
|
||||
-# the build process more logical. No reason to try CC if HOSTCC fails.
|
||||
-all: crosspatch miniperl$X dynaloader perl$x nonxs_ext utilities extensions pods
|
||||
+# Force full patching before any building starts. Als, force early building
|
||||
+# of miniperl -- not really necessary, but makes the build process more logical.
|
||||
+# No reason to try CC if HOSTCC fails.
|
||||
+all:
|
||||
+ $(MAKE) crosspatch
|
||||
+ $(MAKE) miniperl$X
|
||||
+ $(MAKE) dynaloader perl$x nonxs_ext utilities extensions pods
|
||||
|
||||
config.h: config.sh config_h.SH
|
||||
CONFIG_H=$@ CONFIG_SH=$< ./config_h.SH
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
From 3e2c1ddd06be97ba75104b1be4b6fdbd08e16bbe Mon Sep 17 00:00:00 2001
|
||||
From: Alex Suykov <alex.suykov@gmail.com>
|
||||
Date: Wed, 2 Jan 2019 20:37:47 +0200
|
||||
Subject: [PATCH] fix Yocto intermittent failures with modules
|
||||
|
||||
Having -Ilib/ above -Idist/... in miniperl_top means miniperl may
|
||||
attempt to switch from dist/ to lib/ while the modules are being
|
||||
built, possibly picking incompletely-written files there.
|
||||
|
||||
Any module available via -Idist/* should only be loaded from dist/
|
||||
and never from lib/ even if it gets installed into lib/ at some point.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/arsv/perl-cross/issues/72]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
miniperl_top | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/miniperl_top b/miniperl_top
|
||||
index 96ab1a2..a0426b9 100755
|
||||
--- a/miniperl_top
|
||||
+++ b/miniperl_top
|
||||
@@ -25,7 +25,6 @@ top=$(cd $top; pwd)
|
||||
exec $top/miniperl\
|
||||
-I$top/cnf/stub\
|
||||
-I$top/cnf/cpan\
|
||||
- -I$top/lib\
|
||||
-I$top/cpan/AutoLoader/lib\
|
||||
-I$top/dist/Exporter/lib\
|
||||
-I$top/dist/Cwd\
|
||||
@@ -50,4 +49,5 @@ exec $top/miniperl\
|
||||
-I$top/cpan/parent/lib\
|
||||
-I$top/cpan/version/lib\
|
||||
-I$top/dist/Pod-Simple/lib\
|
||||
+ -I$top/lib\
|
||||
"$@"
|
||||
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \
|
||||
|
||||
|
||||
SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \
|
||||
https://github.com/arsv/perl-cross/releases/download/1.2.1/perl-cross-1.2.1.tar.gz;name=perl-cross \
|
||||
https://github.com/arsv/perl-cross/releases/download/1.2.2/perl-cross-1.2.2.tar.gz;name=perl-cross \
|
||||
file://perl-rdepends.txt \
|
||||
file://0001-configure_tool.sh-do-not-quote-the-argument-to-comma.patch \
|
||||
file://0001-ExtUtils-MakeMaker-add-LDFLAGS-when-linking-binary-m.patch \
|
||||
@@ -19,17 +19,14 @@ SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \
|
||||
file://0001-perl-cross-add-LDFLAGS-when-linking-libperl.patch \
|
||||
file://perl-dynloader.patch \
|
||||
file://0001-configure_path.sh-do-not-hardcode-prefix-lib-as-libr.patch \
|
||||
file://fix-race-failures.patch \
|
||||
file://fix-race-failures-2.patch \
|
||||
file://0001-Also-build-dynaloader-separately-as-race-failures-ha.patch \
|
||||
file://0001-Make-sure-install.perl-runs-before-install.man.patch \
|
||||
file://0001-Makefile-Make-install.perl-depend-on-install.sym.patch \
|
||||
"
|
||||
|
||||
SRC_URI[perl.md5sum] = "838198c43d4f39d7af797e2f59c2bee5"
|
||||
SRC_URI[perl.sha256sum] = "3ebf85fe65df2ee165b22596540b7d5d42f84d4b72d84834f74e2e0b8956c347"
|
||||
SRC_URI[perl-cross.md5sum] = "c5cdc8b7ebc449ee57fe18fc1ac60c80"
|
||||
SRC_URI[perl-cross.sha256sum] = "8b706bc688ddf71b62d649bde72f648669f18b37fe0c54ec6201142ca3943498"
|
||||
SRC_URI[perl-cross.md5sum] = "9a6c05497bdde9a3106e3be9246f4da1"
|
||||
SRC_URI[perl-cross.sha256sum] = "e6987838f27d8cd3368ea68fc56a68cc52371505950927b8b7c5cb76e3a94caa"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
S = "${WORKDIR}/perl-${PV}"
|
||||
|
||||
@@ -127,7 +124,6 @@ do_install_append_class-native () {
|
||||
# path location) works and that in the nativesdk case, the SDK can be
|
||||
# installed to a different location from the one it was built for.
|
||||
create_wrapper ${D}${bindir}/perl-native/perl PERL5LIB='$PERL5LIB:${STAGING_LIBDIR}/perl5/site_perl/${PV}:${STAGING_LIBDIR}/perl5/vendor_perl/${PV}:${STAGING_LIBDIR}/perl5/${PV}'
|
||||
create_wrapper ${D}${bindir}/perl-native/perl${PV} PERL5LIB='$PERL5LIB:${STAGING_LIBDIR}/perl5/site_perl/${PV}:${STAGING_LIBDIR}/perl5/vendor_perl/${PV}:${STAGING_LIBDIR}/perl5/${PV}'
|
||||
|
||||
# Use /usr/bin/env nativeperl for the perl script.
|
||||
for f in `grep -Il '#! *${bindir}/perl' ${D}/${bindir}/*`; do
|
||||
|
||||
Reference in New Issue
Block a user