summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-11-02 09:43:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-05 11:41:00 +0000
commitd96c3dd1c427db1eddae85b71508ff63558507bf (patch)
tree1284d31e5f8df01ba43f03316d95d9170db4e45a /meta
parentbc2e9475a99ae3cd84f1d68fdc164b7cefe9191b (diff)
downloadpoky-d96c3dd1c427db1eddae85b71508ff63558507bf.tar.gz
perl: backport gdbm 1.2x compatibility fixes
(From OE-Core rev: 2ac647ca63e240f982d08a8b538648f602071cd9) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/perl/files/5bc1e5fdd87aa205011512cd1e6cc655bcf677fd.patch31
-rw-r--r--meta/recipes-devtools/perl/files/aacd2398e766500cb5d83c4d76b642fcf31d997a.patch40
-rw-r--r--meta/recipes-devtools/perl/files/ea57297a58b8f10ab885c19eec48ea076116cc1f.patch25
-rw-r--r--meta/recipes-devtools/perl/perl_5.34.0.bb3
4 files changed, 99 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/files/5bc1e5fdd87aa205011512cd1e6cc655bcf677fd.patch b/meta/recipes-devtools/perl/files/5bc1e5fdd87aa205011512cd1e6cc655bcf677fd.patch
new file mode 100644
index 0000000000..1cb65d932c
--- /dev/null
+++ b/meta/recipes-devtools/perl/files/5bc1e5fdd87aa205011512cd1e6cc655bcf677fd.patch
@@ -0,0 +1,31 @@
1From 5bc1e5fdd87aa205011512cd1e6cc655bcf677fd Mon Sep 17 00:00:00 2001
2From: Sergey Poznyakoff <gray@gnu.org>
3Date: Wed, 23 Jun 2021 15:31:42 +0300
4Subject: [PATCH] Fix definition of ITEM_NOT_FOUND for pre-1.13 versions.
5
6Upstream-Status: Backport
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 ext/GDBM_File/GDBM_File.xs | 9 +++++----
10 1 file changed, 5 insertions(+), 4 deletions(-)
11
12diff --git a/ext/GDBM_File/GDBM_File.xs b/ext/GDBM_File/GDBM_File.xs
13index 494c2889ca89..0125b5dcac4d 100644
14--- a/ext/GDBM_File/GDBM_File.xs
15+++ b/ext/GDBM_File/GDBM_File.xs
16@@ -145,10 +145,11 @@ output_datum(pTHX_ SV *arg, char *str, int size)
17 #define gdbm_setopt(db,optflag,optval,optlen) not_here("gdbm_setopt")
18 #endif
19
20-#if GDBM_VERSION_MAJOR == 1 && GDBM_VERSION_MINOR < 13
21-/* Prior to 1.13, gdbm_fetch family functions set gdbm_errno to GDBM_NO_ERROR
22- if the requested key did not exist */
23-# define ITEM_NOT_FOUND() (gdbm_errno == GDBM_NO_ERROR)
24+#if GDBM_VERSION_MAJOR == 1 && GDBM_VERSION_MINOR < 13
25+/* Prior to 1.13, only gdbm_fetch set GDBM_ITEM_NOT_FOUND if the requested
26+ key did not exist. Other similar function wouls set GDBM_NO_ERROR instead.
27+ The GDBM_ITEM_NOT_FOUND existeds as early as in 1.7.3 */
28+# define ITEM_NOT_FOUND() (gdbm_errno == GDBM_NO_ERROR || gdbm_errno == GDBM_ITEM_NOT_FOUND)
29 #else
30 # define ITEM_NOT_FOUND() (gdbm_errno == GDBM_ITEM_NOT_FOUND)
31 #endif
diff --git a/meta/recipes-devtools/perl/files/aacd2398e766500cb5d83c4d76b642fcf31d997a.patch b/meta/recipes-devtools/perl/files/aacd2398e766500cb5d83c4d76b642fcf31d997a.patch
new file mode 100644
index 0000000000..628903f41c
--- /dev/null
+++ b/meta/recipes-devtools/perl/files/aacd2398e766500cb5d83c4d76b642fcf31d997a.patch
@@ -0,0 +1,40 @@
1From aacd2398e766500cb5d83c4d76b642fcf31d997a Mon Sep 17 00:00:00 2001
2From: Sergey Poznyakoff <gray@gnu.org>
3Date: Wed, 23 Jun 2021 10:26:50 +0300
4Subject: [PATCH] Fix GDBM_File to compile with version 1.20 and earlier
5
6* ext/GDBM_File/GDBM_File.xs (ITEM_NOT_FOUND): Define conditionally,
7depending on the GDBM_VERSION_MAJOR and GDBM_VERSION_MINOR.
8Don't assume GDBM_ITEM_NOT_FOUND is a define (it isn't since
9gdbm commit d3e27957).
10
11Upstream-Status: Backport
12Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
13---
14 ext/GDBM_File/GDBM_File.xs | 11 +++++------
15 1 file changed, 5 insertions(+), 6 deletions(-)
16
17diff --git a/ext/GDBM_File/GDBM_File.xs b/ext/GDBM_File/GDBM_File.xs
18index cd0bb6f26ffa..494c2889ca89 100644
19--- a/ext/GDBM_File/GDBM_File.xs
20+++ b/ext/GDBM_File/GDBM_File.xs
21@@ -145,14 +145,13 @@ output_datum(pTHX_ SV *arg, char *str, int size)
22 #define gdbm_setopt(db,optflag,optval,optlen) not_here("gdbm_setopt")
23 #endif
24
25-#ifndef GDBM_ITEM_NOT_FOUND
26-# define GDBM_ITEM_NOT_FOUND GDBM_NO_ERROR
27-#endif
28-
29+#if GDBM_VERSION_MAJOR == 1 && GDBM_VERSION_MINOR < 13
30 /* Prior to 1.13, gdbm_fetch family functions set gdbm_errno to GDBM_NO_ERROR
31 if the requested key did not exist */
32-#define ITEM_NOT_FOUND() \
33- (gdbm_errno == GDBM_ITEM_NOT_FOUND || gdbm_errno == GDBM_NO_ERROR)
34+# define ITEM_NOT_FOUND() (gdbm_errno == GDBM_NO_ERROR)
35+#else
36+# define ITEM_NOT_FOUND() (gdbm_errno == GDBM_ITEM_NOT_FOUND)
37+#endif
38
39 #define CHECKDB(db) do { \
40 if (!db->dbp) { \
diff --git a/meta/recipes-devtools/perl/files/ea57297a58b8f10ab885c19eec48ea076116cc1f.patch b/meta/recipes-devtools/perl/files/ea57297a58b8f10ab885c19eec48ea076116cc1f.patch
new file mode 100644
index 0000000000..3864f1a121
--- /dev/null
+++ b/meta/recipes-devtools/perl/files/ea57297a58b8f10ab885c19eec48ea076116cc1f.patch
@@ -0,0 +1,25 @@
1From ea57297a58b8f10ab885c19eec48ea076116cc1f Mon Sep 17 00:00:00 2001
2From: Sergey Poznyakoff <gray@gnu.org>
3Date: Wed, 23 Jun 2021 14:24:47 +0300
4Subject: [PATCH] Raise version number in ext/GDBM_File/GDBM_File.pm
5
6Upstream-Status: Backport
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8
9---
10 ext/GDBM_File/GDBM_File.pm | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/ext/GDBM_File/GDBM_File.pm b/ext/GDBM_File/GDBM_File.pm
14index d837536f804c..cb08d091b829 100644
15--- a/ext/GDBM_File/GDBM_File.pm
16+++ b/ext/GDBM_File/GDBM_File.pm
17@@ -363,7 +363,7 @@ require XSLoader;
18 );
19
20 # This module isn't dual life, so no need for dev version numbers.
21-$VERSION = '1.19';
22+$VERSION = '1.20';
23
24 XSLoader::load();
25
diff --git a/meta/recipes-devtools/perl/perl_5.34.0.bb b/meta/recipes-devtools/perl/perl_5.34.0.bb
index 89de558979..16d45ccff3 100644
--- a/meta/recipes-devtools/perl/perl_5.34.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.34.0.bb
@@ -18,6 +18,9 @@ SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \
18 file://0002-Constant-Fix-up-shebang.patch \ 18 file://0002-Constant-Fix-up-shebang.patch \
19 file://determinism.patch \ 19 file://determinism.patch \
20 file://CVE-2021-36770.patch \ 20 file://CVE-2021-36770.patch \
21 file://aacd2398e766500cb5d83c4d76b642fcf31d997a.patch \
22 file://ea57297a58b8f10ab885c19eec48ea076116cc1f.patch \
23 file://5bc1e5fdd87aa205011512cd1e6cc655bcf677fd.patch \
21 " 24 "
22SRC_URI:append:class-native = " \ 25SRC_URI:append:class-native = " \
23 file://perl-configpm-switch.patch \ 26 file://perl-configpm-switch.patch \