Subject: pkg/27272: pkgsrc infrastructure issues for the NetBSD 1.6 rpcgen
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kristerw@netbsd.org>
List: pkgsrc-bugs
Date: 10/15/2004 23:04:32
>Number:         27272
>Category:       pkg
>Synopsis:       pkgsrc infrastructure issues for the NetBSD 1.6 rpcgen
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 15 23:05:00 UTC 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: