NetBSD Problem Report #27272

Received: (qmail 8305 invoked by uid 605); 15 Oct 2004 23:04:33 -0000
Message-Id: <20041015230432.8291.qmail@mail.netbsd.org>
Date: 15 Oct 2004 23:04:32 -0000
From: kristerw@netbsd.org
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: kristerw@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: pkgsrc infrastructure issues for the NetBSD 1.6 rpcgen
X-Send-Pr-Version: 3.95

>Number:         27272
>Category:       pkg
>Synopsis:       pkgsrc infrastructure issues for the NetBSD 1.6 rpcgen
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    jlam
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 15 23:05:00 +0000 2004
>Closed-Date:    Sat Dec 18 21:17:09 +0000 2004
>Last-Modified:  Sat Dec 18 21:17:09 +0000 2004
>Originator:     Krister Walfridsson
>Release:        NetBSD 1.6.2, pkgsrc as of Oct 15 2004
>Organization:

>Environment:


NetBSD pc2 1.6.2 NetBSD 1.6.2 (GENERIC) #0: Tue Feb 10 21:53:10 UTC 2004     autobuild@tgm.netbsd.org:/autobuild/netbsd-1-6-PATCH002/i386/OBJ/autobuild/netbsd-1-6-PATCH002/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
The NetBSD 1.6 rpcgen does fail when the environment variable CPP
is set to "cpp" -- it need it to be set to the full path.
mk/platform/NetBSD.mk does ensure that it is set to the full path,
but the recent changes to the infrastructure makes this value
be overridden at a later time by (at least) the compiler/gcc.mk
and the wrapper stuff.

This makes e.g. the net/sharity-light package fail on
NetBSD/1386-1.6.2 due to:
rpcgen -c nfs_prot.x |  sed 's;^#include ".*/nfs_prot.h"$;#include "nfs_prot.h";' >nfs_prot_xdr.c
cannot find any C preprocessor (cpp)

(see ftp://ftp.netbsd.org/pub/NetBSD/misc/kristerw/pkgstat/i386-1.6.2 for
error logs)
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-By: ben@netbsd.org
Responsible-Changed-When: Mon, 15 Nov 2004 02:41:34 +0000
Responsible-Changed-Why:
Assigned to jlam.


From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/27272 CVS commit: pkgsrc
Date: Sat, 18 Dec 2004 19:24:26 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jlam
 Date:		Sat Dec 18 19:24:26 UTC 2004

 Modified Files:
 	pkgsrc/ham/hamlib: Makefile
 	pkgsrc/mail/drac: Makefile
 	pkgsrc/mk: tools.mk
 	pkgsrc/net/tcl-scotty: Makefile
 	pkgsrc/security/cfs: Makefile
 	pkgsrc/security/dsniff: Makefile
 	pkgsrc/security/nfsbug: Makefile

 Log Message:
 Always create a ${TOOLS_DIR}/bin/rpcgen to wrap the real rpcgen.
 The wrapper will correctly set the CPP environment variable to a
 stat((2)able path to a C preprocessor, then rely on the PATH to
 find and invoke the real rpcgen.

 Remove NO_EXPORT_CPP in package Makefiles where it was used just to
 avoid problems with rpcgen.  The build system now just does the right
 thing automatically without needing package-specific knowledge.

 This fixes PR pkg/27272.


 To generate a diff of this commit:
 cvs rdiff -r1.11 -r1.12 pkgsrc/ham/hamlib/Makefile
 cvs rdiff -r1.12 -r1.13 pkgsrc/mail/drac/Makefile
 cvs rdiff -r1.46 -r1.47 pkgsrc/mk/tools.mk
 cvs rdiff -r1.16 -r1.17 pkgsrc/net/tcl-scotty/Makefile
 cvs rdiff -r1.20 -r1.21 pkgsrc/security/cfs/Makefile
 cvs rdiff -r1.20 -r1.21 pkgsrc/security/dsniff/Makefile
 cvs rdiff -r1.11 -r1.12 pkgsrc/security/nfsbug/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: jlam@netbsd.org
State-Changed-When: Sat, 18 Dec 2004 19:28:33 +0000
State-Changed-Why:
Please let me know if this fixes the build of net/sharity-light on 1.6.2.
Thanks!


State-Changed-From-To: feedback->closed
State-Changed-By: kristerw@netbsd.org
State-Changed-When: Sat, 18 Dec 2004 21:17:09 +0000
State-Changed-Why:
It works now.  Thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.