summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/perl/libdbd-mysql-perl/0001-Makefile.PL-avoid-running-assert_lib-at-configure.patch40
-rw-r--r--meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb4
2 files changed, 43 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/perl/libdbd-mysql-perl/0001-Makefile.PL-avoid-running-assert_lib-at-configure.patch b/meta-oe/recipes-devtools/perl/libdbd-mysql-perl/0001-Makefile.PL-avoid-running-assert_lib-at-configure.patch
new file mode 100644
index 0000000000..2e010931d6
--- /dev/null
+++ b/meta-oe/recipes-devtools/perl/libdbd-mysql-perl/0001-Makefile.PL-avoid-running-assert_lib-at-configure.patch
@@ -0,0 +1,40 @@
1From 577cdd6a571cfed506ec902b9021e60a2b854e4a Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Sun, 7 Jul 2024 22:32:30 -0700
4Subject: [PATCH] Makefile.PL: avoid running assert_lib at configure
5
6The assert_lib will run the generated binary. When cross compiling,
7e.g., for qemuarm64, we'll see error like below:
8
9 /usr/lib64/ld-linux-aarch64.so.1: No such file or directory
10
11We should just skip library checking, because in OE, if these libs are
12not available, the do_compile process will fail anyway.
13
14Upstream-Status: Inappropriate [OE Specific]
15
16Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
17---
18 Makefile.PL | 6 +-----
19 1 file changed, 1 insertion(+), 5 deletions(-)
20
21diff --git a/Makefile.PL b/Makefile.PL
22index a1b38f6..939cadc 100644
23--- a/Makefile.PL
24+++ b/Makefile.PL
25@@ -206,11 +206,7 @@ To change these settings, see 'perl Makefile.PL --help' and
26 MSG
27
28 print "Checking if libs are available for compiling...\n";
29-
30-assert_lib(
31- LIBS => ($opt->{'embedded'} ? $opt->{'embedded'} : $opt->{libs}),
32-);
33-
34+print "Skip checking libs at configure stage as we are cross compiling.\n";
35 print "Looks good.\n\n";
36
37 sleep 1;
38--
392.25.1
40
diff --git a/meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb b/meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb
index fc505fe1e8..99a9fcf628 100644
--- a/meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb
+++ b/meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb
@@ -15,7 +15,9 @@ DEPENDS += "libdev-checklib-perl-native libdbi-perl-native libmysqlclient"
15LIC_FILES_CHKSUM = "file://LICENSE;md5=d0a06964340e5c0cde88b7af611f755c" 15LIC_FILES_CHKSUM = "file://LICENSE;md5=d0a06964340e5c0cde88b7af611f755c"
16 16
17SRCREV = "9b5b70ea372f49fe9bc9e592dae3870596d1e3d6" 17SRCREV = "9b5b70ea372f49fe9bc9e592dae3870596d1e3d6"
18SRC_URI = "git://github.com/perl5-dbi/DBD-mysql.git;protocol=https;branch=master" 18SRC_URI = "git://github.com/perl5-dbi/DBD-mysql.git;protocol=https;branch=master \
19 file://0001-Makefile.PL-avoid-running-assert_lib-at-configure.patch \
20 "
19 21
20S = "${WORKDIR}/git" 22S = "${WORKDIR}/git"
21 23