diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-25 16:26:21 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-25 08:45:03 -0700 |
| commit | 5c0c80437e073b55715c8555c49083713088a211 (patch) | |
| tree | 61191c10b5b070a1acc6acbc9074b5a847487832 /meta-perl/recipes-perl/libconfig/libconfig-autoconf-perl/0001-correct-libperl-regex.patch | |
| parent | 83cf0878924414fc880cdf8791e4b00d4f5a7ffc (diff) | |
| download | meta-openembedded-5c0c80437e073b55715c8555c49083713088a211.tar.gz | |
libconfig-autoconf-perl: fix ptests
Add missing dependencies.
Also, fixing the tests have surfaced an actual bug: the module
expects unversioned perl library to be present on the system
(or at least present in Perl's $Config{libperl}), however the
OE Perl build has a versioned library, which causes final linking
to fail.
A patch to correct this is part of this change, and it has been
submitted upstream also.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-perl/recipes-perl/libconfig/libconfig-autoconf-perl/0001-correct-libperl-regex.patch')
| -rw-r--r-- | meta-perl/recipes-perl/libconfig/libconfig-autoconf-perl/0001-correct-libperl-regex.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-perl/recipes-perl/libconfig/libconfig-autoconf-perl/0001-correct-libperl-regex.patch b/meta-perl/recipes-perl/libconfig/libconfig-autoconf-perl/0001-correct-libperl-regex.patch new file mode 100644 index 0000000000..373f773070 --- /dev/null +++ b/meta-perl/recipes-perl/libconfig/libconfig-autoconf-perl/0001-correct-libperl-regex.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From 5ffd363a7acd4ef794eb265eaf6c42321097cd46 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 3 | Date: Sat, 25 Oct 2025 15:48:51 +0200 | ||
| 4 | Subject: [PATCH] correct libperl regex | ||
| 5 | |||
| 6 | The module expects the libperl library's format (from $Config{libperl}) | ||
| 7 | to be versionless, just simply libperl.so. However this value in the | ||
| 8 | OE builds is versioned, causing some issues. | ||
| 9 | |||
| 10 | The module transforms this value into a linker flag, and tries to link | ||
| 11 | with the library. The transformation is simple: cut off the "lib" from | ||
| 12 | the start, and everything after the last dot. | ||
| 13 | |||
| 14 | With versionless version, the transformation works: libperl.so -> perl | ||
| 15 | |||
| 16 | However with versioned library it looks like this: | ||
| 17 | libperl.so.5.99.9 -> perl.so.5.99 | ||
| 18 | which is just wrong. | ||
| 19 | |||
| 20 | This patch changes this transformation in way that throws away everything | ||
| 21 | after the first dot (instead of the last one). | ||
| 22 | |||
| 23 | Upstream-Status: Submitted [https://github.com/ambs/Config-AutoConf/pull/19] | ||
| 24 | |||
| 25 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 26 | --- | ||
| 27 | lib/Config/AutoConf.pm | 2 +- | ||
| 28 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 29 | |||
| 30 | diff --git a/lib/Config/AutoConf.pm b/lib/Config/AutoConf.pm | ||
| 31 | index 0bba5a4..a2e7099 100644 | ||
| 32 | --- a/lib/Config/AutoConf.pm | ||
| 33 | +++ b/lib/Config/AutoConf.pm | ||
| 34 | @@ -3001,7 +3001,7 @@ sub _check_link_perlapi | ||
| 35 | |||
| 36 | my $libperl = $Config{libperl}; | ||
| 37 | $libperl =~ s/^lib//; | ||
| 38 | - $libperl =~ s/\.[^\.]*$//; | ||
| 39 | + $libperl =~ s/^([^\.]*)\..*$/$1/; | ||
| 40 | |||
| 41 | push @{$self->{extra_link_flags}}, "-L" . File::Spec->catdir($Config{installarchlib}, "CORE"); | ||
| 42 | push @{$self->{extra_libs}}, "$libperl"; | ||
