commit:     01927fc69d4c7a056d1886c1451416535480405f
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 30 16:41:44 2023 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Sat Dec 30 16:56:06 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01927fc6

app-arch/pdv: resolve implicit function declaration issue

The issue is fixed with a patch which adds function prototype to a
common header file.

Closes: https://bugs.gentoo.org/882157
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 app-arch/pdv/files/pdv-1.5.1-missing-prototype.patch  | 19 +++++++++++++++++++
 .../pdv/{pdv-1.5.1-r4.ebuild => pdv-1.5.1-r5.ebuild}  |  2 ++
 2 files changed, 21 insertions(+)

diff --git a/app-arch/pdv/files/pdv-1.5.1-missing-prototype.patch 
b/app-arch/pdv/files/pdv-1.5.1-missing-prototype.patch
new file mode 100644
index 000000000000..d35ddedfda74
--- /dev/null
+++ b/app-arch/pdv/files/pdv-1.5.1-missing-prototype.patch
@@ -0,0 +1,19 @@
+Add missing prototype to a common header file.
+
+Bug: https://bugs.gentoo.org/882157
+
+diff --git a/X11/xmpdvmkpkg.h b/X11/xmpdvmkpkg.h
+index abaaa47..fd6c6f5 100644
+--- a/X11/xmpdvmkpkg.h
++++ b/X11/xmpdvmkpkg.h
+@@ -76,6 +76,7 @@ extern Widget g_statusw;
+ void spectowidgets(void);
+ void widgetstospec(struct pdvspec_st *spec);
+ int  cmpspecandwidgets(void);
++void statusmsg(char *fmt, ...);
+ void xu_SetMainTitle(const char *newtitle, const char *newprefix
+  , Widget topshell);
+ 
+-- 
+2.41.0
+

diff --git a/app-arch/pdv/pdv-1.5.1-r4.ebuild b/app-arch/pdv/pdv-1.5.1-r5.ebuild
similarity index 93%
rename from app-arch/pdv/pdv-1.5.1-r4.ebuild
rename to app-arch/pdv/pdv-1.5.1-r5.ebuild
index d77acc17e472..25fb97f0c2bc 100644
--- a/app-arch/pdv/pdv-1.5.1-r4.ebuild
+++ b/app-arch/pdv/pdv-1.5.1-r5.ebuild
@@ -34,6 +34,8 @@ PATCHES=(
        "${FILESDIR}"/${P}-default-args.patch
        # prevent pre-stripped binaries
        "${FILESDIR}"/${P}-no-strip.patch
+       # missing function prototype, see bug #882157
+       "${FILESDIR}"/${P}-missing-prototype.patch
 )
 
 src_prepare() {

Reply via email to