Files
poky/meta/recipes-devtools
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-07-24 16:33:46 +01:00
2021-05-11 11:54:26 +01:00
2021-07-28 23:47:00 +01:00
2021-06-26 11:27:16 +01:00
2021-01-20 22:46:18 +00:00
2021-05-21 15:18:23 +01:00
2021-06-26 11:27:16 +01:00
2021-06-27 08:38:34 +01:00
2021-06-06 23:16:51 +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-17 13:42:31 +01:00
2021-06-12 22:54:14 +01:00
2021-06-12 22:54:14 +01:00
2020-07-27 19:58:09 +01:00
2021-06-26 11:27:16 +01:00
2021-06-17 22:20:44 +01:00
2021-07-24 16:33:47 +01:00
2021-06-17 00:07:05 +01:00
2020-03-08 08:21:11 +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-01-01 23:15:13 +00:00
2021-05-02 23:20:12 +01:00
2021-07-07 11:39:42 +01:00
2021-05-09 23:30:16 +01:00
2021-05-31 14:31:01 +01:00
2021-06-27 08:38:34 +01:00
2021-04-26 14:14:42 +01:00
2021-07-16 21:23:44 +01:00
2021-05-06 08:41:26 +01:00
2021-05-11 11:54:26 +01:00
2021-07-16 21:23:44 +01:00
2021-05-25 22:36:08 +01:00
2021-06-11 23:50:59 +01:00