diff options
-rw-r--r-- | meta/recipes-devtools/perl-cross/files/0001-Makefile-check-the-file-if-patched-or-not.patch | 31 | ||||
-rw-r--r-- | meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl-cross/files/0001-Makefile-check-the-file-if-patched-or-not.patch b/meta/recipes-devtools/perl-cross/files/0001-Makefile-check-the-file-if-patched-or-not.patch new file mode 100644 index 0000000000..fb7b287599 --- /dev/null +++ b/meta/recipes-devtools/perl-cross/files/0001-Makefile-check-the-file-if-patched-or-not.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 24a3e0c48f9ebe473b5f1078663e275c27d0537f Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Fri, 2 Jul 2021 09:08:21 +0000 | ||
4 | Subject: [PATCH] Makefile: check the file if patched or not | ||
5 | |||
6 | Check the file if patched or not to avoid patched more than | ||
7 | one time. | ||
8 | |||
9 | Upstream-Status: Inappropriate (OE-specific) | ||
10 | |||
11 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
12 | --- | ||
13 | Makefile | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/Makefile b/Makefile | ||
17 | index f4a26f5..7bc748e 100644 | ||
18 | --- a/Makefile | ||
19 | +++ b/Makefile | ||
20 | @@ -61,7 +61,7 @@ miniperlmain$O: $(CROSSPATCHED) | ||
21 | # Original versions are not saved anymore; patch generally takes care of this, | ||
22 | # and if that fails, reaching for the source tarball is the safest option. | ||
23 | $(CROSSPATCHED): %.applied: %.patch | ||
24 | - patch -p1 -i $< && touch $@ | ||
25 | + test ! -f $@ && (patch -p1 -i $< && touch $@) | ||
26 | |||
27 | # ---[ common ]----------------------------------------------------------------- | ||
28 | |||
29 | -- | ||
30 | 2.29.2 | ||
31 | |||
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..b19692b2f3 100644 --- a/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb +++ b/meta/recipes-devtools/perl-cross/perlcross_1.3.6.bb | |||
@@ -17,6 +17,7 @@ SRC_URI = "https://github.com/arsv/perl-cross/releases/download/${PV}/perl-cross | |||
17 | file://0001-configure_path.sh-do-not-hardcode-prefix-lib-as-libr.patch \ | 17 | file://0001-configure_path.sh-do-not-hardcode-prefix-lib-as-libr.patch \ |
18 | file://determinism.patch \ | 18 | file://determinism.patch \ |
19 | file://0001-cnf-configure_func_sel.sh-disable-thread_safe_nl_lan.patch \ | 19 | file://0001-cnf-configure_func_sel.sh-disable-thread_safe_nl_lan.patch \ |
20 | file://0001-Makefile-check-the-file-if-patched-or-not.patch \ | ||
20 | " | 21 | " |
21 | UPSTREAM_CHECK_URI = "https://github.com/arsv/perl-cross/releases/" | 22 | UPSTREAM_CHECK_URI = "https://github.com/arsv/perl-cross/releases/" |
22 | 23 | ||