Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/heimdal fix MKREPRO build not to put Gen...



details:   https://anonhg.NetBSD.org/src/rev/4f00673f9379
branches:  trunk
changeset: 781425:4f00673f9379
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 05 19:31:04 2012 +0000

description:
fix MKREPRO build not to put Generated from ${NETBSDSRCDIR} in files.

diffstat:

 crypto/external/bsd/heimdal/Makefile.rules.inc |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 903fe1712c58 -r 4f00673f9379 crypto/external/bsd/heimdal/Makefile.rules.inc
--- a/crypto/external/bsd/heimdal/Makefile.rules.inc    Wed Sep 05 18:57:33 2012 +0000
+++ b/crypto/external/bsd/heimdal/Makefile.rules.inc    Wed Sep 05 19:31:04 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.rules.inc,v 1.6 2011/07/31 09:58:19 plunky Exp $
+# $NetBSD: Makefile.rules.inc,v 1.7 2012/09/05 19:31:04 christos Exp $
 
 SRCS+= ${HEIMSRCS:N*.et:N*.in:N*.asn1}
 
@@ -66,10 +66,15 @@
            cp ${src:.asn1=_asn1-priv.hx} ${src:.asn1=_asn1-priv.h}
 .endif
 
+.if ${MKREPRO:Uno} == "yes"
+NORMALIZE_SRC=-e "s@${NETBSDSRCDIR}@/usr/src@g" 
+.endif
+
 .for x2c in ${ASN1_FILES.${src}}
 ${x2c:.x=.c}: ${x2c}
-       @cmp -s ${x2c} ${x2c:.x=.c} 2> /dev/null || cp ${x2c} ${x2c:.x=.c}
-
+       @${TOOL_SED} ${NORMALIZE_SRC} < ${x2c} > ${x2c}.r
+       @cmp -s ${x2c}.r ${x2c:.x=.c} 2> /dev/null || cp ${x2c}.r ${x2c:.x=.c}
+       @rm -f ${x2c}.r
 .endfor
 
 .endfor



Home | Main Index | Thread Index | Old Index