summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-05-09 19:23:31 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-22 10:53:47 +0100
commitd1c2e5a9297e8e62e7b6b6bbdc6893c55629277a (patch)
tree2b402e18e6da7d49d03ecb3333d0eb9fa8577b03 /meta/recipes-devtools/rpm
parent588201e3d01ce8a3d0a4706390821f37a904e8e2 (diff)
downloadpoky-d1c2e5a9297e8e62e7b6b6bbdc6893c55629277a.tar.gz
rpm: update 4.18.0 -> 4.18.1
Drop: 0001-docs-do-not-build-manpages-requires-pandoc.patch (pandoc is now detected from $PATH) fifofix.patch (upstream fixed the issue) (From OE-Core rev: d8d673b2dc86e04cc278dc111b36d52d60bc25f7) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm')
-rw-r--r--meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch26
-rw-r--r--meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch30
-rw-r--r--meta/recipes-devtools/rpm/files/0001-docs-do-not-build-manpages-requires-pandoc.patch23
-rw-r--r--meta/recipes-devtools/rpm/files/fifofix.patch22
-rw-r--r--meta/recipes-devtools/rpm/files/fix-declaration.patch39
-rw-r--r--meta/recipes-devtools/rpm/rpm_4.18.1.bb (renamed from meta/recipes-devtools/rpm/rpm_4.18.0.bb)7
6 files changed, 70 insertions, 77 deletions
diff --git a/meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch b/meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch
index 9f5dde0720..9fa486dfd3 100644
--- a/meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch
+++ b/meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch
@@ -1,4 +1,4 @@
1From 5492ac3c716020a27a25253bbffe810db43202bf Mon Sep 17 00:00:00 2001 1From 93f219df68f3741ff63a294a16bcbe8deba1112f Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 9 Mar 2017 18:54:02 +0200 3Date: Thu, 9 Mar 2017 18:54:02 +0200
4Subject: [PATCH] Add a color setting for mips64_n32 binaries 4Subject: [PATCH] Add a color setting for mips64_n32 binaries
@@ -11,11 +11,11 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11 rpmrc.in | 2 ++ 11 rpmrc.in | 2 ++
12 2 files changed, 6 insertions(+) 12 2 files changed, 6 insertions(+)
13 13
14Index: git/build/rpmfc.c 14diff --git a/build/rpmfc.c b/build/rpmfc.c
15=================================================================== 15index 26606378f..a16e3f4e9 100644
16--- git.orig/build/rpmfc.c 16--- a/build/rpmfc.c
17+++ git/build/rpmfc.c 17+++ b/build/rpmfc.c
18@@ -645,6 +645,7 @@ exit: 18@@ -646,6 +646,7 @@ exit:
19 static const struct rpmfcTokens_s rpmfcTokens[] = { 19 static const struct rpmfcTokens_s rpmfcTokens[] = {
20 { "directory", RPMFC_INCLUDE }, 20 { "directory", RPMFC_INCLUDE },
21 21
@@ -23,20 +23,20 @@ Index: git/build/rpmfc.c
23 { "ELF 32-bit", RPMFC_ELF32|RPMFC_INCLUDE }, 23 { "ELF 32-bit", RPMFC_ELF32|RPMFC_INCLUDE },
24 { "ELF 64-bit", RPMFC_ELF64|RPMFC_INCLUDE }, 24 { "ELF 64-bit", RPMFC_ELF64|RPMFC_INCLUDE },
25 25
26@@ -1150,6 +1151,9 @@ static uint32_t getElfColor(const char * 26@@ -1151,6 +1152,9 @@ static uint32_t getElfColor(const char *fn)
27 color = RPMFC_ELF32; 27 color = RPMFC_ELF32;
28 break; 28 break;
29 } 29 }
30+ if (ehdr.e_machine == EM_MIPS || ehdr.e_machine == EM_MIPS_RS3_LE) 30+ if (ehdr.e_machine == EM_MIPS || ehdr.e_machine == EM_MIPS_RS3_LE)
31+ if (ehdr.e_flags & EF_MIPS_ABI2) 31+ if (ehdr.e_flags & EF_MIPS_ABI2)
32+ color = RPMFC_ELFMIPSN32; 32+ color = RPMFC_ELFMIPSN32;
33 elf_end(elf);
34 } 33 }
35 close(fd); 34 if (elf)
36Index: git/rpmrc.in 35 elf_end(elf);
37=================================================================== 36diff --git a/rpmrc.in b/rpmrc.in
38--- git.orig/rpmrc.in 37index 2975a3a0e..c7232b48b 100644
39+++ git/rpmrc.in 38--- a/rpmrc.in
39+++ b/rpmrc.in
40@@ -139,6 +139,8 @@ archcolor: mipsr6el 1 40@@ -139,6 +139,8 @@ archcolor: mipsr6el 1
41 archcolor: mips64r6 2 41 archcolor: mips64r6 2
42 archcolor: mips64r6el 2 42 archcolor: mips64r6el 2
diff --git a/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch b/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch
index 6f613d0a7d..8fdc5edb10 100644
--- a/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch
+++ b/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch
@@ -1,4 +1,4 @@
1From 4ab6a4c5bbad65c3401016bb26b87214cdd0c59b Mon Sep 17 00:00:00 2001 1From 5fc560aaf1184d35d161f7d50dbb6323c90cc02d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 27 Feb 2017 09:43:30 +0200 3Date: Mon, 27 Feb 2017 09:43:30 +0200
4Subject: [PATCH] Do not hardcode "lib/rpm" as the installation path for 4Subject: [PATCH] Do not hardcode "lib/rpm" as the installation path for
@@ -13,10 +13,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
13 rpm.am | 4 ++-- 13 rpm.am | 4 ++--
14 3 files changed, 4 insertions(+), 4 deletions(-) 14 3 files changed, 4 insertions(+), 4 deletions(-)
15 15
16Index: git/configure.ac 16diff --git a/configure.ac b/configure.ac
17=================================================================== 17index e6676c581..ec28db9b6 100644
18--- git.orig/configure.ac 18--- a/configure.ac
19+++ git/configure.ac 19+++ b/configure.ac
20@@ -942,7 +942,7 @@ else 20@@ -942,7 +942,7 @@ else
21 usrprefix=$prefix 21 usrprefix=$prefix
22 fi 22 fi
@@ -26,11 +26,11 @@ Index: git/configure.ac
26 AC_SUBST(RPMCONFIGDIR) 26 AC_SUBST(RPMCONFIGDIR)
27 27
28 AC_SUBST(OBJDUMP) 28 AC_SUBST(OBJDUMP)
29Index: git/macros.in 29diff --git a/macros.in b/macros.in
30=================================================================== 30index a2411d784..735b74d99 100644
31--- git.orig/macros.in 31--- a/macros.in
32+++ git/macros.in 32+++ b/macros.in
33@@ -911,7 +911,7 @@ package or when debugging this package.\ 33@@ -930,7 +930,7 @@ package or when debugging this package.\
34 %_sharedstatedir %{_prefix}/com 34 %_sharedstatedir %{_prefix}/com
35 %_localstatedir %{_prefix}/var 35 %_localstatedir %{_prefix}/var
36 %_lib lib 36 %_lib lib
@@ -39,10 +39,10 @@ Index: git/macros.in
39 %_includedir %{_prefix}/include 39 %_includedir %{_prefix}/include
40 %_infodir %{_datadir}/info 40 %_infodir %{_datadir}/info
41 %_mandir %{_datadir}/man 41 %_mandir %{_datadir}/man
42Index: git/rpm.am 42diff --git a/rpm.am b/rpm.am
43=================================================================== 43index 55b5b3935..5a51f102b 100644
44--- git.orig/rpm.am 44--- a/rpm.am
45+++ git/rpm.am 45+++ b/rpm.am
46@@ -1,10 +1,10 @@ 46@@ -1,10 +1,10 @@
47 # Internal binaries 47 # Internal binaries
48 ## HACK: It probably should be $(libexecdir)/rpm or $(libdir)/rpm 48 ## HACK: It probably should be $(libexecdir)/rpm or $(libdir)/rpm
@@ -55,4 +55,4 @@ Index: git/rpm.am
55+rpmconfigdir = $(libdir)/rpm 55+rpmconfigdir = $(libdir)/rpm
56 56
57 # Libtool version (current-revision-age) for all our libraries 57 # Libtool version (current-revision-age) for all our libraries
58 rpm_version_info = 12:0:3 58 rpm_version_info = 13:0:4
diff --git a/meta/recipes-devtools/rpm/files/0001-docs-do-not-build-manpages-requires-pandoc.patch b/meta/recipes-devtools/rpm/files/0001-docs-do-not-build-manpages-requires-pandoc.patch
deleted file mode 100644
index d7137f1d10..0000000000
--- a/meta/recipes-devtools/rpm/files/0001-docs-do-not-build-manpages-requires-pandoc.patch
+++ /dev/null
@@ -1,23 +0,0 @@
1From 9bf1693092385eba9841614613313010221ca01f Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 29 Jun 2021 20:11:26 +0200
4Subject: [PATCH] docs: do not build manpages (requires pandoc)
5
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 docs/Makefile.am | 2 --
10 1 file changed, 2 deletions(-)
11
12Index: git/docs/Makefile.am
13===================================================================
14--- git.orig/docs/Makefile.am
15+++ git/docs/Makefile.am
16@@ -1,7 +1,5 @@
17 ## Process this file with automake to produce Makefile.in
18
19-SUBDIRS = man
20-
21 EXTRA_DIST =
22
23 EXTRA_DIST += \
diff --git a/meta/recipes-devtools/rpm/files/fifofix.patch b/meta/recipes-devtools/rpm/files/fifofix.patch
deleted file mode 100644
index 71703d7f0c..0000000000
--- a/meta/recipes-devtools/rpm/files/fifofix.patch
+++ /dev/null
@@ -1,22 +0,0 @@
1Calling openat() on a fifo causes a pseudo hang for us (e.g. the fifo in psplash).
2Avoid calling openat for fifos.
3
4Introduced upstream with:
5
6https://github.com/rpm-software-management/rpm/commit/96ec957e281220f8e137a2d5eb23b83a6377d556
7
8Upstream-Status: Submitted [https://github.com/rpm-software-management/rpm/issues/2195]
9
10Index: git/lib/fsm.c
11===================================================================
12--- git.orig/lib/fsm.c
13+++ git/lib/fsm.c
14@@ -1010,7 +1010,7 @@ int rpmPackageFilesInstall(rpmts ts, rpm
15 rc = RPMERR_UNKNOWN_FILETYPE;
16 }
17
18- if (!rc && fd == -1 && !S_ISLNK(fp->sb.st_mode)) {
19+ if (!rc && fd == -1 && !S_ISLNK(fp->sb.st_mode) && !S_ISFIFO(fp->sb.st_mode)) {
20 /* Only follow safe symlinks, and never on temporary files */
21 fd = fsmOpenat(di.dirfd, fp->fpath,
22 fp->suffix ? AT_SYMLINK_NOFOLLOW : 0, 0);
diff --git a/meta/recipes-devtools/rpm/files/fix-declaration.patch b/meta/recipes-devtools/rpm/files/fix-declaration.patch
new file mode 100644
index 0000000000..e5c84ebd49
--- /dev/null
+++ b/meta/recipes-devtools/rpm/files/fix-declaration.patch
@@ -0,0 +1,39 @@
1From b960c0b43a080287a7c13533eeb2d9f288db1414 Mon Sep 17 00:00:00 2001
2From: Florian Festi <ffesti@redhat.com>
3Date: Thu, 16 Mar 2023 19:05:04 +0100
4Subject: [PATCH] Fix compiler error on clang
5
6Turns out variable declarations are not allowed after a label, even in
7C99. And while some compilers don't seem to care others do.
8
9Moving the declaration of mayopen to the start of the function to avoid
10this problem.
11
12Resolves: #2435
13Upstream-Status: Backport [https://github.com/rpm-software-management/rpm/commit/b960c0b43a080287a7c13533eeb2d9f288db1414]
14Signed-off-by: Alexander Kanavin <alex@linutronix.de>
15---
16 lib/fsm.c | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
18
19diff --git a/lib/fsm.c b/lib/fsm.c
20index 5671ac642d..183293edb0 100644
21--- a/lib/fsm.c
22+++ b/lib/fsm.c
23@@ -879,6 +879,7 @@ int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files,
24 int nodigest = (rpmtsFlags(ts) & RPMTRANS_FLAG_NOFILEDIGEST) ? 1 : 0;
25 int nofcaps = (rpmtsFlags(ts) & RPMTRANS_FLAG_NOCAPS) ? 1 : 0;
26 int firstlinkfile = -1;
27+ int mayopen = 0;
28 char *tid = NULL;
29 struct filedata_s *fdata = xcalloc(fc, sizeof(*fdata));
30 struct filedata_s *firstlink = NULL;
31@@ -1016,7 +1017,7 @@ int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files,
32
33 setmeta:
34 /* Special files require path-based ops */
35- int mayopen = S_ISREG(fp->sb.st_mode) || S_ISDIR(fp->sb.st_mode);
36+ mayopen = S_ISREG(fp->sb.st_mode) || S_ISDIR(fp->sb.st_mode);
37 if (!rc && fd == -1 && mayopen) {
38 int flags = O_RDONLY;
39 /* Only follow safe symlinks, and never on temporary files */
diff --git a/meta/recipes-devtools/rpm/rpm_4.18.0.bb b/meta/recipes-devtools/rpm/rpm_4.18.1.bb
index 7790db8b5a..6da2edddf3 100644
--- a/meta/recipes-devtools/rpm/rpm_4.18.0.bb
+++ b/meta/recipes-devtools/rpm/rpm_4.18.1.bb
@@ -35,15 +35,14 @@ SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.18.x;protoc
35 file://0001-perl-disable-auto-reqs.patch \ 35 file://0001-perl-disable-auto-reqs.patch \
36 file://0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch \ 36 file://0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch \
37 file://0001-lib-transaction.c-fix-file-conflicts-for-MIPS64-N32.patch \ 37 file://0001-lib-transaction.c-fix-file-conflicts-for-MIPS64-N32.patch \
38 file://0001-docs-do-not-build-manpages-requires-pandoc.patch \
39 file://0001-build-pack.c-do-not-insert-payloadflags-into-.rpm-me.patch \ 38 file://0001-build-pack.c-do-not-insert-payloadflags-into-.rpm-me.patch \
40 file://0001-configure.ac-add-linux-gnux32-variant-to-triplet-han.patch \ 39 file://0001-configure.ac-add-linux-gnux32-variant-to-triplet-han.patch \
41 file://fifofix.patch \
42 file://0001-python-Use-Py_hash_t-instead-of-long-in-hdr_hash.patch \ 40 file://0001-python-Use-Py_hash_t-instead-of-long-in-hdr_hash.patch \
41 file://fix-declaration.patch \
43 " 42 "
44 43
45PE = "1" 44PE = "1"
46SRCREV = "ea0d77c52e176e2876fdb1d07ad41e9e2635a93e" 45SRCREV = "4588bc3f994338502d2770ad24cbfcdaa6c335ec"
47 46
48S = "${WORKDIR}/git" 47S = "${WORKDIR}/git"
49 48
@@ -187,7 +186,7 @@ FILES:${PN}-archive = "\
187 186
188PACKAGES += "python3-rpm" 187PACKAGES += "python3-rpm"
189PROVIDES += "python3-rpm" 188PROVIDES += "python3-rpm"
190FILES:python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*" 189FILES:python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/* ${PYTHON_SITEPACKAGES_DIR}/rpm-*.egg-info"
191 190
192RDEPENDS:${PN}-build = "bash perl python3-core debugedit" 191RDEPENDS:${PN}-build = "bash perl python3-core debugedit"
193 192