Mingli Yu
dd5ebf4fdd
perlcross: not break build if already patched
Currently the build will break if the patch already applied
as the return value of "test ! -f $@" is not 0, so make sure
to return 0 if the patch already applied.
Fixes:
$ bitbake perl-native
Make a change as below
$ git diff
diff --git a/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb b/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb
index b77bbd1fd4..4c5e35ab80 100644
--- a/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb
+++ b/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb
@@ -33,6 +33,7 @@ do_compile () {
do_install_class-native() {
mkdir -p ${D}/${datadir}/perl-cross/
cp -rf ${S}/* ${D}/${datadir}/perl-cross/
+ echo "test" > ${D}/${datadir}/perl-cross/testfile
}
$ bitbake perl-native
NOTE: make -j 40
make crosspatch
make[1]: Entering directory '/build/tmp-glibc/work/x86_64-linux/perl-native/5.34.0-r0/perl-5.34.0'
test ! -f cnf/diffs/perl5-5.34.0/posix-makefile.applied && (patch -p1 -i cnf/diffs/perl5-5.34.0/posix-makefile.patch && touch cnf/diffs/perl5-5.34.0/posix-makefile.applied)
test ! -f cnf/diffs/perl5-5.34.0/dynaloader.applied && (patch -p1 -i cnf/diffs/perl5-5.34.0/dynaloader.patch && touch cnf/diffs/perl5-5.34.0/dynaloader.applied)
make[1]: *** [Makefile:64: cnf/diffs/perl5-5.34.0/posix-makefile.applied] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:64: cnf/diffs/perl5-5.34.0/dynaloader.applied] Error 1
make[1]: Leaving directory '/build/tmp-glibc/work/x86_64-linux/perl-native/5.34.0-r0/perl-5.34.0'
make: *** [Makefile:78: all] Error 2
(From OE-Core rev: 354163db5588d87941f53a2763be62b2430cc1fc)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-07-29 22:33:51 +01:00
..
2021-06-17 00:07:05 +01:00
2021-02-13 17:01:12 +00:00
2021-04-20 13:56:48 +01:00
2021-03-20 18:54:56 +00:00
2021-07-24 16:33:46 +01:00
2021-05-25 10:05:19 +01:00
2021-02-27 22:40:42 +00:00
2021-07-20 08:51:06 +01:00
2021-05-11 11:54:26 +01:00
2021-02-26 15:21:21 +00:00
2020-10-30 13:22:48 +00:00
2021-07-28 23:47:00 +01:00
2021-07-16 21:23:43 +01:00
2021-06-26 11:27:16 +01:00
2021-02-26 15:21:21 +00:00
2021-02-26 15:21:21 +00:00
2021-01-20 22:46:18 +00:00
2021-05-21 15:18:23 +01:00
2021-02-26 15:21:21 +00:00
2021-06-26 11:27:16 +01:00
2019-07-11 09:32:50 +01:00
2021-03-02 20:39:35 +00:00
2021-06-27 08:38:34 +01:00
2021-07-07 11:39:42 +01:00
2021-05-09 23:30:15 +01:00
2021-06-06 23:16:51 +01:00
2021-06-17 00:07:05 +01:00
2019-09-27 13:02:16 +01:00
2021-06-17 00:07:05 +01:00
2021-04-18 11:37:25 +01:00
2021-05-28 06:41:03 +01:00
2021-06-22 15:18:11 +01:00
2021-06-17 13:42:31 +01:00
2021-06-12 22:54:14 +01:00
2021-02-26 15:21:21 +00:00
2021-07-24 16:33:47 +01:00
2021-06-12 22:54:14 +01:00
2021-04-18 11:37:25 +01:00
2021-02-26 15:21:21 +00:00
2021-05-28 06:41:02 +01:00
2021-02-26 15:21:21 +00:00
2021-02-26 15:21:21 +00:00
2021-05-11 11:54:26 +01:00
2020-07-27 19:58:09 +01:00
2021-06-17 22:20:44 +01:00
2021-06-26 11:27:16 +01:00
2021-05-28 06:41:03 +01:00
2021-07-16 21:23:43 +01:00
2021-06-17 22:20:44 +01:00
2021-04-18 11:37:26 +01:00
2021-07-24 16:33:47 +01:00
2021-03-02 20:39:35 +00:00
2021-06-17 00:07:05 +01:00
2020-03-08 08:21:11 +00:00
2021-02-26 15:21:21 +00:00
2021-06-17 00:07:05 +01:00
2021-05-25 22:36:08 +01:00
2021-07-28 23:47:00 +01:00
2021-07-16 21:23:44 +01:00
2021-02-26 15:21:21 +00:00
2021-02-26 15:21:21 +00:00
2021-06-11 23:50:58 +01:00
2021-06-11 23:50:58 +01:00
2021-02-26 15:21:21 +00:00
2021-01-01 23:15:13 +00:00
2021-05-02 23:20:12 +01:00
2021-07-07 11:39:42 +01:00
2021-07-29 22:33:51 +01:00
2021-05-09 23:30:16 +01:00
2021-05-31 14:31:01 +01:00
2020-01-19 13:24:38 +00:00
2021-07-11 23:00:52 +01:00
2021-07-24 16:33:47 +01:00
2021-06-26 11:27:17 +01:00
2021-06-27 08:38:34 +01:00
2021-02-16 11:28:17 +00:00
2021-05-20 12:32:28 +01:00
2021-04-26 14:14:42 +01:00
2021-07-16 21:23:44 +01:00
2021-03-23 22:51:25 +00:00
2021-05-27 13:21:38 +01:00
2021-05-06 08:41:26 +01:00
2021-02-26 15:21:21 +00:00
2021-05-11 11:54:26 +01:00
2021-03-01 11:12:16 +00:00
2021-03-01 11:12:16 +00:00
2021-06-12 22:54:14 +01:00
2021-07-16 21:23:44 +01:00
2021-05-25 22:36:08 +01:00
2021-02-26 15:21:21 +00:00
2021-06-11 23:50:59 +01:00
2021-07-16 21:23:44 +01:00
2021-02-26 15:21:21 +00:00