pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk On NetBSD, rpcgen must *always* be invoked with "-b":



details:   https://anonhg.NetBSD.org/pkgsrc/rev/83168dd81b24
branches:  trunk
changeset: 486102:83168dd81b24
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Dec 22 21:39:25 2004 +0000

description:
On NetBSD, rpcgen must *always* be invoked with "-b":

     -b      Compile stubs in "backwards compatible" mode, disabling
             support for transport-independent RPC.  The -b should always
             be specified when generating files for NetBSD, since there is
             no transport-independent RPC support in NetBSD.

Therefore, force "-b" to be the first argument whenever rpcgen is invoked
via the wrapper.

diffstat:

 mk/tools.mk |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 2520260fd628 -r 83168dd81b24 mk/tools.mk
--- a/mk/tools.mk       Wed Dec 22 21:26:31 2004 +0000
+++ b/mk/tools.mk       Wed Dec 22 21:39:25 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tools.mk,v 1.47 2004/12/18 19:24:26 jlam Exp $
+# $NetBSD: tools.mk,v 1.48 2004/12/22 21:39:25 jlam Exp $
 #
 # This Makefile creates a ${TOOLS_DIR} directory and populates the bin
 # subdir with tools that hide the ones outside of ${TOOLS_DIR}.
@@ -396,6 +396,9 @@
 # stat((2)able path to a C preprocessor, then rely on the PATH to
 # find and invoke the real rpcgen.
 #
+RPCGEN?=               rpcgen
+RPCGEN_ARGS.NetBSD=    -b
+RPCGEN_ARGS?=          ${RPCGEN_ARGS.${OPSYS}}
 override-tools: ${TOOLS_DIR}/bin/rpcgen
 .if !target(${TOOLS_DIR}/bin/rpcgen)
 ${TOOLS_DIR}/bin/rpcgen:
@@ -406,8 +409,8 @@
          ${ECHO} 'CPP="${WRAPPER_BINDIR}/cpp"; export CPP';            \
          PATH=`${ECHO} "${PATH}" | ${SED} -e "s,.*${.TARGET:H}:,,"`;   \
          ${ECHO} "PATH=\"$$PATH\"; export PATH";                       \
-         ${ECHO} '${ECHO} "<.> rpcgen $$*" >> $$wrapperlog';           \
-         ${ECHO} 'rpcgen "$$@"';                                       \
+         ${ECHO} '${ECHO} "<.> ${RPCGEN} ${RPCGEN_ARGS} $$*" >> $$wrapperlog'; \
+         ${ECHO} '${RPCGEN} ${RPCGEN_ARGS} "$$@"';                     \
        ) > ${.TARGET}
        ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
 .endif



Home | Main Index | Thread Index | Old Index