aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2018-09-09 15:18:37 +0800
committertobik <tobik@FreeBSD.org>2018-09-09 15:18:37 +0800
commitcf03470cd5684cc92f11333dfdb5dea6b9c48212 (patch)
tree514a8fc94c63feb1b45bdd89124b2367abb7a759 /net
parentddb8b1c3bcc9bd1fe4fb7687d71579ad17a17ab7 (diff)
downloadfreebsd-ports-gnome-cf03470cd5684cc92f11333dfdb5dea6b9c48212.tar.gz
freebsd-ports-gnome-cf03470cd5684cc92f11333dfdb5dea6b9c48212.tar.zst
freebsd-ports-gnome-cf03470cd5684cc92f11333dfdb5dea6b9c48212.zip
net/tcpreen: Fix build with Clang 6
main.cpp:111:27: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "TCP re-engineering tool "VERSION" ("PACKAGE_HOST")\n" ^ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p479076_s338486/logs/errors/tcpreen-1.4.4_3.log PR: 230895 Submitted by: tobik Approved by: jmohacsi@bsd.hu (maintainer timeout, 2 weeks)
Diffstat (limited to 'net')
-rw-r--r--net/tcpreen/files/patch-src_main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/tcpreen/files/patch-src_main.cpp b/net/tcpreen/files/patch-src_main.cpp
new file mode 100644
index 000000000000..d096e4399091
--- /dev/null
+++ b/net/tcpreen/files/patch-src_main.cpp
@@ -0,0 +1,18 @@
+main.cpp:111:27: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
+"TCP re-engineering tool "VERSION" ("PACKAGE_HOST")\n"
+ ^
+
+Also remove build host and date information to prepare for reproducible builds
+
+--- src/main.cpp.orig 2018-08-25 18:26:34 UTC
++++ src/main.cpp
+@@ -108,8 +108,7 @@ version (void)
+ # define VERSION "unknown version"
+ #endif
+ puts (
+-"TCP re-engineering tool "VERSION" ("PACKAGE_HOST")\n"
+-" built "__DATE__" on "PACKAGE_BUILD_HOSTNAME" ("PACKAGE_BUILD")\n"
++"TCP re-engineering tool " VERSION "\n"
+ "Copyright (C) 2002-2004 Remi Denis-Courmont");
+ puts (_(
+ "This is free software; see the source for copying conditions.\n"