summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-01-13 20:54:20 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-15 08:49:08 +0000
commit8790d0bdbd93bfe05a462d5a8461d8707803190f (patch)
tree5ebe8bf63b40aeeaabd0cab42d4173264ad2227d
parent384743c89751facd2afc1e8c4049ec58b95c962c (diff)
downloadpoky-8790d0bdbd93bfe05a462d5a8461d8707803190f.tar.gz
createrepo-c: Include missing rpm/rpmstring.h
(From OE-Core rev: b122f4ab5d8750dd64814da0ae7c9035b7620e4c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/createrepo-c/createrepo-c/0001-include-rpm-rpmstring.h.patch27
-rw-r--r--meta/recipes-devtools/createrepo-c/createrepo-c_0.20.1.bb1
2 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/createrepo-c/createrepo-c/0001-include-rpm-rpmstring.h.patch b/meta/recipes-devtools/createrepo-c/createrepo-c/0001-include-rpm-rpmstring.h.patch
new file mode 100644
index 0000000000..a249eaf5a1
--- /dev/null
+++ b/meta/recipes-devtools/createrepo-c/createrepo-c/0001-include-rpm-rpmstring.h.patch
@@ -0,0 +1,27 @@
1From 8defe6aaf91613c3fcb540df65a94cd56d377367 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 13 Jan 2023 13:21:51 -0800
4Subject: [PATCH 1/2] include rpm/rpmstring.h
5
6Its needed for rasprintf declaration
7
8Fixes
9src/xml_file.c:341:36: error: call to undeclared functi
10on 'rasprintf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
11
12Upstream-Status: Submitted [https://github.com/rpm-software-management/createrepo_c/pull/340]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/xml_file.c | 1 +
16 1 file changed, 1 insertion(+)
17
18--- a/src/xml_file.c
19+++ b/src/xml_file.c
20@@ -19,6 +19,7 @@
21
22 #include <glib.h>
23 #include <glib/gstdio.h>
24+#include <rpm/rpmstring.h>
25 #include <assert.h>
26 #include "xml_file.h"
27 #include <errno.h>
diff --git a/meta/recipes-devtools/createrepo-c/createrepo-c_0.20.1.bb b/meta/recipes-devtools/createrepo-c/createrepo-c_0.20.1.bb
index d309bb895f..053198ca5e 100644
--- a/meta/recipes-devtools/createrepo-c/createrepo-c_0.20.1.bb
+++ b/meta/recipes-devtools/createrepo-c/createrepo-c_0.20.1.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6 6
7SRC_URI = "git://github.com/rpm-software-management/createrepo_c;branch=master;protocol=https \ 7SRC_URI = "git://github.com/rpm-software-management/createrepo_c;branch=master;protocol=https \
8 file://0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \ 8 file://0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \
9 file://0001-include-rpm-rpmstring.h.patch \
9 " 10 "
10 11
11SRCREV = "af14e164a3e4ab9dfaef1212e852b9ecebc326a2" 12SRCREV = "af14e164a3e4ab9dfaef1212e852b9ecebc326a2"