summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2022-11-20 16:15:46 +0200
committerViorel Munteanu <ceamac@gentoo.org>2022-11-21 08:11:41 +0200
commitf45da0c9f37fb20e37a2a2b218dd154d4f805b48 (patch)
tree6601762b00f262992f4a20a1883d71022597e4c3
parentprofiles: last rite dev-python/glob2 (diff)
downloadgentoo-f45da0c9f37fb20e37a2a2b218dd154d4f805b48.tar.gz
gentoo-f45da0c9f37fb20e37a2a2b218dd154d4f805b48.tar.bz2
gentoo-f45da0c9f37fb20e37a2a2b218dd154d4f805b48.zip
dev-util/kbuild: fix -Wimplicit-function-declaration
Closes: https://bugs.gentoo.org/882143 Closes: https://github.com/gentoo/gentoo/pull/28350 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
-rw-r--r--dev-util/kbuild/files/kbuild-0.1.9998.3499-implicit-function-declaration.patch74
-rw-r--r--dev-util/kbuild/kbuild-0.1.9998.3499.ebuild1
-rw-r--r--dev-util/kbuild/kbuild-0.1.9998.3572.ebuild1
-rw-r--r--dev-util/kbuild/kbuild-9999.ebuild1
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-util/kbuild/files/kbuild-0.1.9998.3499-implicit-function-declaration.patch b/dev-util/kbuild/files/kbuild-0.1.9998.3499-implicit-function-declaration.patch
new file mode 100644
index 000000000000..2d25eacb9826
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-0.1.9998.3499-implicit-function-declaration.patch
@@ -0,0 +1,74 @@
+Add a few includes to fix this warning: -Wimplicit-function-declaration
+Bug: https://bugs.gentoo.org/882143
+
+--- a/src/sed/lib/utils.c
++++ b/src/sed/lib/utils.c
+@@ -27,7 +27,8 @@
+
+ #ifdef HAVE_STRINGS_H
+ # include <strings.h>
+-#else
++#endif
++#ifdef HAVE_STRING_H
+ # include <string.h>
+ #endif /* HAVE_STRINGS_H */
+
+--- a/src/sed/sed/execute.c
++++ b/src/sed/sed/execute.c
+@@ -46,7 +46,8 @@
+
+ #ifdef HAVE_STRINGS_H
+ # include <strings.h>
+-#else
++#endif
++#ifdef HAVE_STRING_H
+ # include <string.h>
+ #endif /*HAVE_STRINGS_H*/
+ #ifdef HAVE_MEMORY_H
+--- a/src/sed/sed/fmt.c
++++ b/src/sed/sed/fmt.c
+@@ -22,6 +22,7 @@
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <sys/types.h>
++#include <string.h>
+
+ #if HAVE_LIMITS_H
+ # include <limits.h>
+--- a/src/sed/sed/mbcs.c
++++ b/src/sed/sed/mbcs.c
+@@ -17,6 +17,7 @@
+
+ #include "sed.h"
+ #include <stdlib.h>
++#include <string.h>
+
+ int mb_cur_max;
+
+--- a/src/sed/sed/regexp.c
++++ b/src/sed/sed/regexp.c
+@@ -22,6 +22,9 @@
+ #ifdef HAVE_STDLIB_H
+ # include <stdlib.h>
+ #endif
++#ifdef HAVE_STRING_H
++# include <string.h>
++#endif
+
+ #ifdef gettext_noop
+ # define N_(String) gettext_noop(String)
+--- a/src/sed/sed/sed.c
++++ b/src/sed/sed/sed.c
+@@ -26,9 +26,10 @@
+ #include <stdio.h>
+ #ifdef HAVE_STRINGS_H
+ # include <strings.h>
+-#else
+-# include <string.h>
+ #endif /*HAVE_STRINGS_H*/
++#ifdef HAVE_STRING_H
++# include <string.h>
++#endif /*HAVE_STRING_H*/
+ #ifdef HAVE_MEMORY_H
+ # include <memory.h>
+ #endif
diff --git a/dev-util/kbuild/kbuild-0.1.9998.3499.ebuild b/dev-util/kbuild/kbuild-0.1.9998.3499.ebuild
index 2954327d377c..26cf9c604e83 100644
--- a/dev-util/kbuild/kbuild-0.1.9998.3499.ebuild
+++ b/dev-util/kbuild/kbuild-0.1.9998.3499.ebuild
@@ -36,6 +36,7 @@ PATCHES=(
"${FILESDIR}/${PN}-0.1.9998.3572-fix-bison.patch"
"${FILESDIR}/${PN}-0.1.9998.3572-fix-lto.patch"
+ "${FILESDIR}/${PN}-0.1.9998.3499-implicit-function-declaration.patch"
)
pkg_setup() {
diff --git a/dev-util/kbuild/kbuild-0.1.9998.3572.ebuild b/dev-util/kbuild/kbuild-0.1.9998.3572.ebuild
index 185af8e39997..37288f1c0a38 100644
--- a/dev-util/kbuild/kbuild-0.1.9998.3572.ebuild
+++ b/dev-util/kbuild/kbuild-0.1.9998.3572.ebuild
@@ -29,6 +29,7 @@ PATCHES=(
"${FILESDIR}/${PN}-0.1.9998_pre20110817-kash-link-pthread.patch"
"${FILESDIR}/${PN}-0.1.9998.3572-fix-bison.patch"
"${FILESDIR}/${PN}-0.1.9998.3572-fix-lto.patch"
+ "${FILESDIR}/${PN}-0.1.9998.3499-implicit-function-declaration.patch"
)
pkg_setup() {
diff --git a/dev-util/kbuild/kbuild-9999.ebuild b/dev-util/kbuild/kbuild-9999.ebuild
index 15625b4196bf..79e18d1b7a14 100644
--- a/dev-util/kbuild/kbuild-9999.ebuild
+++ b/dev-util/kbuild/kbuild-9999.ebuild
@@ -36,6 +36,7 @@ PATCHES=(
#"${FILESDIR}/${PN}-0.1.9998.3407-gold.patch"
"${FILESDIR}/${PN}-0.1.9998.3572-fix-bison.patch"
"${FILESDIR}/${PN}-0.1.9998.3572-fix-lto.patch"
+ "${FILESDIR}/${PN}-0.1.9998.3499-implicit-function-declaration.patch"
)
pkg_setup() {