Date: Tue, 25 Dec 2012 03:20:00 GMT From: Jan Beich <jbeich@tormail.org> To: freebsd-x11@FreeBSD.org Subject: Re: ports/174524: [PATCH] devel/gccmakedep Message-ID: <201212250320.qBP3K0s4041757@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/174524; it has been noted by GNATS.
From: Jan Beich <jbeich@tormail.org>
To: Nikolai Lifanov <lifanov@mail.lifanov.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/174524: [PATCH] devel/gccmakedep
Date: Tue, 25 Dec 2012 13:12:13 +1000
Nikolai Lifanov <lifanov@mail.lifanov.com> writes:
> This has been resolved in some other x11/ ports, notably libX11, xdm,
> etc. by removing this check post patch.
>
> @${REINPLACE_CMD} 's/test.*-traditional.*;/true;/' ...
clang-cpp should be safe with x11/xdm/files/patch-config-Makefile.in.
- only one .cpp file i.e., gccmdep.cpp (the program itself)
- syntax breakage is minimal (ucpp is no better) [1]
- doesn't invoke "cpp" during runtime (unlike imake)
[1] here're a few examples
#! line must be first, see execve(2)
--- gccmdep.cpp47
+++ gccmdep.clang-cpp
@@ -1,3 +1,5 @@
+
+
#!/bin/sh
#
whitespace around `=' is not allowed by sh(1)
--- gccmdep.cpp47
+++ gccmdep.ucpp
@@ -7,10 +8,10 @@
# Based on mdepend.cpp and code supplied by Hongjiu Lu <hjl@nynexst.com>
#
TMP=mdep$$.tmp
-CC=cc
-RM="rm -f"
-LN=ln
-MV=mv
+CC= cc
+RM= "rm -f"
+LN= ln
+MV= mv
${RM} ${TMP}
trap "${RM} ${TMP}*; exit 1" 1 2 15
trap "${RM} ${TMP}*; exit 0" 1 2 13
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212250320.qBP3K0s4041757>
