aboutsummaryrefslogtreecommitdiff
path: root/x11/wbar
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2018-07-20 13:11:59 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2018-07-20 13:11:59 +0000
commit33c927b5d02368d7b0c374578ba660b6299e1ca1 (patch)
tree88e0412446de5b408e29e63c50d0fee5e64e438f /x11/wbar
parent9cb860e90a47c15b1013cc122348ba7da4d8a004 (diff)
downloadports-33c927b5d02368d7b0c374578ba660b6299e1ca1.tar.gz
ports-33c927b5d02368d7b0c374578ba660b6299e1ca1.zip
x11/wbar: Unbreak build with Clang 6
./src/core/Main.cc:84:38: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] command = PACKAGE_NAME" "DEFAULT_ARGV; ^ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p474767_s336359/logs/wbar-2.3.4_1.log http://thunderx1.nyi.freebsd.org/data/head-arm64-default/p474481_s336216/logs/wbar-2.3.4_1.log
Notes
Notes: svn path=/head/; revision=475013
Diffstat (limited to 'x11/wbar')
-rw-r--r--x11/wbar/files/patch-src_config_Functions.cc29
-rw-r--r--x11/wbar/files/patch-src_config_Run.cc16
-rw-r--r--x11/wbar/files/patch-src_core_Main.cc15
3 files changed, 60 insertions, 0 deletions
diff --git a/x11/wbar/files/patch-src_config_Functions.cc b/x11/wbar/files/patch-src_config_Functions.cc
new file mode 100644
index 000000000000..d564df6aa63f
--- /dev/null
+++ b/x11/wbar/files/patch-src_config_Functions.cc
@@ -0,0 +1,29 @@
+../src/config/Functions.cc:14:34: error: invalid suffix on literal; C++11 requires a
+ space between literal and identifier [-Wreserved-user-defined-literal]
+#define ICON_DEFAULT PIXMAPDIR"/"PACKAGE_NAME".png"
+ ^
+
+../src/config/Functions.cc:307:38: error: invalid suffix on literal; C++11 requires a
+ space between literal and identifier [-Wreserved-user-defined-literal]
+ command = PACKAGE_NAME" "DEFAULT_ARGV;
+
+--- src/config/Functions.cc.orig 2012-09-19 02:54:53 UTC
++++ src/config/Functions.cc
+@@ -11,7 +11,7 @@
+ #include "Run.h"
+ #include "OptParser.h"
+
+-#define ICON_DEFAULT PIXMAPDIR"/"PACKAGE_NAME".png"
++#define ICON_DEFAULT PIXMAPDIR "/" PACKAGE_NAME ".png"
+
+ static const gchar *authors[] =
+ {
+@@ -304,7 +304,7 @@ void set_config_states(std::string command)
+
+ if (command.empty())
+ {
+- command = PACKAGE_NAME" "DEFAULT_ARGV;
++ command = PACKAGE_NAME " " DEFAULT_ARGV;
+ }
+
+ if (argc <= 1 || tmpoptparser.isSet( OptParser::CONFIG ))
diff --git a/x11/wbar/files/patch-src_config_Run.cc b/x11/wbar/files/patch-src_config_Run.cc
new file mode 100644
index 000000000000..d843b956824c
--- /dev/null
+++ b/x11/wbar/files/patch-src_config_Run.cc
@@ -0,0 +1,16 @@
+../src/config/Run.cc:139:31: error: invalid suffix on literal; C++11 requires a space
+ between literal and identifier [-Wreserved-user-defined-literal]
+ if (system ("killall "PACKAGE_NAME) != 0)
+ ^
+
+--- src/config/Run.cc.orig 2018-07-20 12:53:00 UTC
++++ src/config/Run.cc
+@@ -136,7 +136,7 @@ void Run::stop()
+ {
+ if (Run::getPID() > 0)
+ {
+- if (system ("killall "PACKAGE_NAME) != 0)
++ if (system ("killall " PACKAGE_NAME) != 0)
+ {
+ std::cout << _("Error kill program: ") << PACKAGE_NAME << std::endl;
+ }
diff --git a/x11/wbar/files/patch-src_core_Main.cc b/x11/wbar/files/patch-src_core_Main.cc
new file mode 100644
index 000000000000..af0f6d9660e9
--- /dev/null
+++ b/x11/wbar/files/patch-src_core_Main.cc
@@ -0,0 +1,15 @@
+./src/core/Main.cc:84:38: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
+ command = PACKAGE_NAME" "DEFAULT_ARGV;
+ ^
+
+--- src/core/Main.cc.orig 2018-07-20 12:51:16 UTC
++++ src/core/Main.cc
+@@ -81,7 +81,7 @@ int main(int argc, char **argv)
+
+ if (command.empty())
+ {
+- command = PACKAGE_NAME" "DEFAULT_ARGV;
++ command = PACKAGE_NAME " " DEFAULT_ARGV;
+ }
+
+ if (argc <= 1 || tmpoptparser.isSet( OptParser::CONFIG ))