rpm: Remove -Wimplicit-function-declaration warnings
PATCH v3 1/1 rpm: Remove -Wimplicit-function-declaration warnings
Signed-off-by Khem Raj <[email protected]>
---
v2: Squash the patch into another patch which introduced it
v3: Delete now unused patch from metadata
...lling-execute-package-scriptlets-wit.patch | 18 ++++++++----- ...ude-lib-rpmchroot.h-for-rpmChrootOut.patch | 26 ------------------- meta/recipes-devtools/rpm/rpm_4.17.1.bb | 1 - 3 files changed, 11 insertions(+), 34 deletions(-) delete mode 100644 meta/recipes-devtools/rpm/files/0001-rpmscript-Include-lib-rpmchroot.h-for-rpmChrootOut.patch
meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch +11 -7
@@ -28,11 +28,18 @@ Signed-off-by: Alexander Kanavin <[email protected]> lib/rpmscript.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -diff --git a/lib/rpmscript.c b/lib/rpmscript.c -index cc98c4885..f8bd3df04 100644 --- a/lib/rpmscript.c +++ b/lib/rpmscript.c -@@ -394,8 +394,7 @@ exit: +@@ -17,7 +17,7 @@ + #include "rpmio/rpmio_internal.h" + + #include "lib/rpmplugins.h" /* rpm plugins hooks */ +- ++#include "lib/rpmchroot.h" /* rpmChrootOut */ + #include "debug.h" + + struct scriptNextFileFunc_s { +@@ -391,8 +391,7 @@ exit: Fclose(out); /* XXX dup'd STDOUT_FILENO */ if (fn) {
@@ -42,7 +49,7 @@ index cc98c4885..f8bd3df04 100644 free(fn); } free(mline); -@@ -428,7 +427,13 @@ rpmRC rpmScriptRun(rpmScript script, int arg1, int arg2, FD_t scriptFd, +@@ -426,7 +425,13 @@ rpmRC rpmScriptRun(rpmScript script, int if (rc != RPMRC_FAIL) { if (script_type & RPMSCRIPTLET_EXEC) {
@@ -57,6 +64,3 @@ index cc98c4885..f8bd3df04 100644 } else { rc = runLuaScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, &script->nextFileFunc); } --- -2.11.0 -
meta/recipes-devtools/rpm/files/0001-rpmscript-Include-lib-rpmchroot.h-for-rpmChrootOut.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From fee6dd39e7223700cc4f7e073924b18409b645b6 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Mon, 15 Aug 2022 22:45:23 -0700 -Subject: [PATCH] rpmscript: Include lib/rpmchroot.h for rpmChrootOut() - -This fixes implicit function declarations warning - -Upstream-Status: Submitted [https://github.com/rpm-software-management/rpm/pull/2152] -Signed-off-by: Khem Raj <[email protected]> ---- - lib/rpmscript.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lib/rpmscript.c b/lib/rpmscript.c -index 3e3a0027a..6d6d4c507 100644 ---- a/lib/rpmscript.c -+++ b/lib/rpmscript.c -@@ -17,7 +17,7 @@ - #include "rpmio/rpmio_internal.h" - - #include "lib/rpmplugins.h" /* rpm plugins hooks */ -- -+#include "lib/rpmchroot.h" /* rpmChrootOut */ - #include "debug.h" - - struct scriptNextFileFunc_s {
meta/recipes-devtools/rpm/rpm_4.17.1.bb +0 -1
@@ -40,7 +40,6 @@ SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.17.x;protoc file://0001-docs-do-not-build-manpages-requires-pandoc.patch \ file://0001-build-pack.c-do-not-insert-payloadflags-into-.rpm-me.patch \ file://0001-configure.ac-add-linux-gnux32-variant-to-triplet-han.patch \ - file://0001-rpmscript-Include-lib-rpmchroot.h-for-rpmChrootOut.patch \ " PE = "1"
Signature · 1 line
2.37.2