Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Install PCC cpp as libexec/pcpp to avoid name conflicts with...



details:   https://anonhg.NetBSD.org/src/rev/4bbf5189bb1d
branches:  trunk
changeset: 752805:4bbf5189bb1d
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sun Mar 07 16:27:17 2010 +0000

description:
Install PCC cpp as libexec/pcpp to avoid name conflicts with other
compilers (eg GCC), and to match the manpage which is already installed
as pcpp.1

(Gregory McGarry: "I think it's a good idea")

diffstat:

 distrib/sets/lists/comp/mi            |   8 +++++---
 external/bsd/pcc/include/config.h     |   2 +-
 external/bsd/pcc/libexec/cpp/Makefile |  13 +++++++++----
 3 files changed, 15 insertions(+), 8 deletions(-)

diffs (86 lines):

diff -r a3089e7fd7a9 -r 4bbf5189bb1d distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Sun Mar 07 12:05:09 2010 +0000
+++ b/distrib/sets/lists/comp/mi        Sun Mar 07 16:27:17 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.1403 2010/03/06 16:42:55 dsieger Exp $
+#      $NetBSD: mi,v 1.1404 2010/03/07 16:27:17 plunky Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -3343,7 +3343,7 @@
 ./usr/libdata/debug/usr/libexec/ching/castching.debug  comp-games-debug        debug
 ./usr/libdata/debug/usr/libexec/ching/printching.debug comp-games-debug        debug
 ./usr/libdata/debug/usr/libexec/comsat.debug   comp-mail-debug         debug
-./usr/libdata/debug/usr/libexec/cpp.debug      comp-c-debug            pcccmds,debug
+./usr/libdata/debug/usr/libexec/cpp.debug      comp-obsolete           pcccmds,obsolete
 ./usr/libdata/debug/usr/libexec/f771.debug     comp-fortran-debug      gcc=3,gcccmds,debug
 ./usr/libdata/debug/usr/libexec/f771.debug     comp-obsolete           gcc=4,obsolete
 ./usr/libdata/debug/usr/libexec/fingerd.debug  comp-netutil-debug      debug
@@ -3368,6 +3368,7 @@
 ./usr/libdata/debug/usr/libexec/makekey.debug  comp-crypto-debug       debug
 ./usr/libdata/debug/usr/libexec/makewhatis.debug       comp-man-debug          debug
 ./usr/libdata/debug/usr/libexec/ntalkd.debug   comp-netutil-debug      debug
+./usr/libdata/debug/usr/libexec/pcpp.debug     comp-c-debug            pcccmds,debug
 ./usr/libdata/debug/usr/libexec/postfix/anvil.debug    comp-postfix-debug      postfix,debug
 ./usr/libdata/debug/usr/libexec/postfix/bounce.debug   comp-postfix-debug      postfix,debug
 ./usr/libdata/debug/usr/libexec/postfix/cleanup.debug  comp-postfix-debug      postfix,debug
@@ -3771,11 +3772,12 @@
 ./usr/libexec/cc1plus                          comp-cxx-bin            gcccmds
 ./usr/libexec/ccom                             comp-c-bin              pcccmds
 ./usr/libexec/collect2                         comp-obsolete           obsolete
-./usr/libexec/cpp                              comp-c-bin              pcccmds
+./usr/libexec/cpp                              comp-obsolete           pcccmds,obsolete
 ./usr/libexec/f771                             comp-fortran-bin        gcc=3,gcccmds
 ./usr/libexec/f771                             comp-obsolete           gcc=4,obsolete
 ./usr/libexec/lint1                            comp-c-bin
 ./usr/libexec/lint2                            comp-c-bin
+./usr/libexec/pcpp                             comp-c-bin              pcccmds
 ./usr/sbin/config                              comp-obsolete           obsolete
 ./usr/sbin/config.new                          comp-obsolete           obsolete
 ./usr/sbin/genassym                            comp-obsolete           obsolete
diff -r a3089e7fd7a9 -r 4bbf5189bb1d external/bsd/pcc/include/config.h
--- a/external/bsd/pcc/include/config.h Sun Mar 07 12:05:09 2010 +0000
+++ b/external/bsd/pcc/include/config.h Sun Mar 07 16:27:17 2010 +0000
@@ -149,7 +149,7 @@
 /* #undef PECOFFABI */
 
 /* Define path to alternate preprocessor */
-/* #undef PREPROCESSOR */
+#define PREPROCESSOR "pcpp"
 
 /* If using the C implementation of alloca, define if you know the
    direction of stack growth for your system; otherwise it will be
diff -r a3089e7fd7a9 -r 4bbf5189bb1d external/bsd/pcc/libexec/cpp/Makefile
--- a/external/bsd/pcc/libexec/cpp/Makefile     Sun Mar 07 12:05:09 2010 +0000
+++ b/external/bsd/pcc/libexec/cpp/Makefile     Sun Mar 07 16:27:17 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 2010/02/05 08:37:48 plunky Exp $
+#      $NetBSD: Makefile,v 1.7 2010/03/07 16:27:18 plunky Exp $
 
 WARNS?=        2
 
@@ -7,16 +7,21 @@
 .PATH: ${PCC_DIST}/cc/cpp \
        ${PCC_DIST}/mip
 
-PROG=  cpp
+#
+# We build cpp(1) as pcpp(1) to avoid confusion with GCC
+#
+
+PROG=  pcpp
 
 SRCS=  cpy.y
 SRCS+= cpp.c token.c
 
-# avoid conflicts with the GCC cpp.1 page
 MAN=   pcpp.1
 
 pcpp.1:        cpp.1
-       cp ${.ALLSRC} ${.TARGET}
+       ${TOOL_SED} -e "s,Nm cpp,Nm pcpp,"      \
+                   -e "s,Dt CPP,Dt PCPP,"      \
+                   ${.ALLSRC} > ${.TARGET}
 
 CPPFLAGS+=     -DCPP_DEBUG
 CPPFLAGS+=     -I${.OBJDIR}



Home | Main Index | Thread Index | Old Index