summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-09-16 11:33:05 +0200
committerJeroen Roovers <jer@gentoo.org>2020-09-16 11:33:26 +0200
commita4e572995f1367fe4c0e850ec59316066e2f1f1d (patch)
tree4e6142e7b186c939194edc6d9c301e7779f2ad49 /x11-misc
parentnet-analyzer/wireshark: Add python3_8 support (diff)
downloadgentoo-a4e572995f1367fe4c0e850ec59316066e2f1f1d.tar.gz
gentoo-a4e572995f1367fe4c0e850ec59316066e2f1f1d.tar.bz2
gentoo-a4e572995f1367fe4c0e850ec59316066e2f1f1d.zip
x11-misc/gtkdialog: Fix building with CC=clang
Package-Manager: Portage-3.0.7, Repoman-3.0.1 Closes: https://bugs.gentoo.org/742764 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/gtkdialog/files/gtkdialog-0.8.3-do_variables_count_widgets.patch11
-rw-r--r--x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild1
-rw-r--r--x11-misc/gtkdialog/gtkdialog-99999.ebuild1
3 files changed, 13 insertions, 0 deletions
diff --git a/x11-misc/gtkdialog/files/gtkdialog-0.8.3-do_variables_count_widgets.patch b/x11-misc/gtkdialog/files/gtkdialog-0.8.3-do_variables_count_widgets.patch
new file mode 100644
index 000000000000..21697cfc78f7
--- /dev/null
+++ b/x11-misc/gtkdialog/files/gtkdialog-0.8.3-do_variables_count_widgets.patch
@@ -0,0 +1,11 @@
+--- a/src/variables.c
++++ b/src/variables.c
+@@ -1113,7 +1113,7 @@
+ actual = root;
+
+ if (actual == NULL)
+- return;
++ return 0;
+
+ if (actual->left != NULL)
+ n = do_variables_count_widgets(actual->left, n);
diff --git a/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild b/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild
index 5c51b9d790bf..aaa806d08243 100644
--- a/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild
+++ b/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild
@@ -32,6 +32,7 @@ DEPEND="
"
PATCHES=(
"${FILESDIR}"/${PN}-0.8.3-fno-common.patch
+ "${FILESDIR}"/${PN}-0.8.3-do_variables_count_widgets.patch
)
src_prepare() {
diff --git a/x11-misc/gtkdialog/gtkdialog-99999.ebuild b/x11-misc/gtkdialog/gtkdialog-99999.ebuild
index 131519d09a46..bea5590a20b3 100644
--- a/x11-misc/gtkdialog/gtkdialog-99999.ebuild
+++ b/x11-misc/gtkdialog/gtkdialog-99999.ebuild
@@ -32,6 +32,7 @@ DEPEND="
"
PATCHES=(
"${FILESDIR}"/${PN}-0.8.3-fno-common.patch
+ "${FILESDIR}"/${PN}-0.8.3-do_variables_count_widgets.patch
)
src_prepare() {