ports/174524: [PATCH] devel/gccmakedep
Jan Beich
jbeich at tormail.org
Tue Dec 25 03:20:01 UTC 2012
The following reply was made to PR ports/174524; it has been noted by GNATS.
From: Jan Beich <jbeich at tormail.org>
To: Nikolai Lifanov <lifanov at mail.lifanov.com>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/174524: [PATCH] devel/gccmakedep
Date: Tue, 25 Dec 2012 13:12:13 +1000
Nikolai Lifanov <lifanov at 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 at 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
More information about the freebsd-x11
mailing list