pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper When CPP is defined as "cc -E", the wrapper...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5c4a44f32a35
branches:  trunk
changeset: 533505:5c4a44f32a35
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Sep 20 18:17:18 2007 +0000

description:
When CPP is defined as "cc -E", the wrapper framework created the
wrapper for gcc and cc as type "CPP", although these aren't C
preprocessors. By preventing the code from overwriting files, this works
now.

diffstat:

 mk/wrapper/bsd.wrapper.mk |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r a117445fda86 -r 5c4a44f32a35 mk/wrapper/bsd.wrapper.mk
--- a/mk/wrapper/bsd.wrapper.mk Thu Sep 20 17:32:49 2007 +0000
+++ b/mk/wrapper/bsd.wrapper.mk Thu Sep 20 18:17:18 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.71 2007/08/02 18:19:32 joerg Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.72 2007/09/20 18:17:18 rillig Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -425,6 +425,7 @@
                ${_WRAP_TRANSFORM.${_wrappee_}}
        ${RUN}                                                          \
        wrapper="${WRAPPER_${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}"; \
+       if [ -x "$$wrapper" ]; then ${ECHO_WRAPPER_MSG} "=> $$wrapper already exists. Skipping"; exit 0; fi; \
        ${ECHO_WRAPPER_MSG} "=> Creating ${_wrappee_} wrapper: $$wrapper"; \
         gen_wrapper=yes;                                               \
        wrappee="${PKG_${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}"; \



Home | Main Index | Thread Index | Old Index