aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortcberner <tcberner@FreeBSD.org>2017-01-22 06:14:23 +0800
committertcberner <tcberner@FreeBSD.org>2017-01-22 06:14:23 +0800
commite121ff4940541c0a193a3abc03ae4e80745a6c19 (patch)
treebbb43129f867b64107ce8d649a7d3fe2669c0375
parent62dd05c68c0d5e89234394f80c7af16800823a0f (diff)
downloadfreebsd-ports-gnome-e121ff4940541c0a193a3abc03ae4e80745a6c19.tar.gz
freebsd-ports-gnome-e121ff4940541c0a193a3abc03ae4e80745a6c19.tar.zst
freebsd-ports-gnome-e121ff4940541c0a193a3abc03ae4e80745a6c19.zip
Fix graphics/py-poppler-qt4: fails to build with clang 4.0
Import upstream commit http://git.fluxbox.org/fluxbox.git/commit/util/fluxbox-remote.cc?id=22866c4d30f5b289c429c5ca88d800200db4fc4f for issue https://sourceforge.net/p/fluxbox/bugs/1138/ PR: 216176 Approved by: portmgr blanket, rakuco (mentor) MFH: 2017Q1
-rw-r--r--x11-wm/fluxbox/files/patch-util_fluxbox-remote.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11-wm/fluxbox/files/patch-util_fluxbox-remote.cc b/x11-wm/fluxbox/files/patch-util_fluxbox-remote.cc
new file mode 100644
index 000000000000..d8bd9bce6a6e
--- /dev/null
+++ b/x11-wm/fluxbox/files/patch-util_fluxbox-remote.cc
@@ -0,0 +1,15 @@
+Upstream fix for bogus pointer comparison:
+Issue: https://sourceforge.net/p/fluxbox/bugs/1138/
+Commit: http://git.fluxbox.org/fluxbox.git/commit/util/fluxbox-remote.cc?id=22866c4d30f5b289c429c5ca88d800200db4fc4f
+
+--- util/fluxbox-remote.cc.orig 2015-02-08 10:44:45 UTC
++++ util/fluxbox-remote.cc
+@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
+ if (strcmp(cmd, "result") == 0) {
+ XTextProperty text_prop;
+ if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
+- && text_prop.value > 0
++ && text_prop.value != 0
+ && text_prop.nitems > 0) {
+
+ printf("%s", text_prop.value);