Subject: pkg/4945: 'make package' for perl gets ${MACHINE_ARCH} wrong on NetBSD/pmax 1.3
To: None <gnats-bugs@gnats.netbsd.org>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: netbsd-bugs
Date: 02/05/1998 17:21:15
>Number:         4945
>Category:       pkg
>Synopsis:       'make package' for perl gets ${MACHINE_ARCH} wrong on NetBSD/pmax 1.3
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb  5 17:35:02 1998
>Last-Modified:
>Originator:     Jonathan Stone
>Organization:
	
>Release:        NetBSD 1.3 release
>Environment:
	
System: NetBSD Reno.DSG.Stanford.EDU 1.3 NetBSD 1.3 (GENERIC) #2: Tue Dec 30 01:16:36 PST 1997 jonathan@Reno.DSG.Stanford.EDU:/reno/compile/GENERIC pmax


With the following /usr/share/mk/bsd.port*mk files:

    Cuisinart# grep -e NetBSD: /usr/share/mk/bsd.port.*mk
    /usr/share/mk/bsd.port.mk:#     $NetBSD: bsd.port.mk,v 1.13.2.8 1997/12/20 23:01:51 perry Exp $
    /usr/share/mk/bsd.port.mk:#                                     NetBSD:          /usr/pkgsrc
    /usr/share/mk/bsd.port.subdir.mk:#      $NetBSD: bsd.port.subdir.mk,v 1.3 1997/09/25 19:09:35 thorpej Exp $

>Description:

I am trying to build packages on NetBSD/pmax 1.3 to provide as
precompiled package binaries for use on NetBSD 1.3.  To do that,
I'm using a NetBSD 1.3 (release) system.  

But the perl package doesn't install properly using the make and
/usr/share/mk from 1.3.  

I'd use the nwere bsd.port.mk from -current, but with that installed,
make silently fails to do __anything_ on NetBSD 1.3, with the NetBSD
/usr/share/mk and /usr/bin/make.

>How-To-Repeat:

	Sup up-to-date pkgsrc as at 1997-02-01.
	(cd /usr/pkgsrc/lang/perl5; make; make install ; make package)

which completes the make install, but make package fails:

===>  Building package for perl-5.00404
tar: can't add file lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/EXTERN.h : No such file or directory
tar: can't add file lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/INTERN.h : No such file or directory
tar: can't add file lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/XSUB.h : No such file or directory
tar: can't add file lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/av.h : No such file or directory
tar: can't add file lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/config.h : No such file or directory
tar: can't add file lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/cop.h : No such file or directory
tar: can't add file lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/cv.h : No such file or directory
tar: can't add file lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/dosish.h : No such file or directory
tar: can't add file lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/embed.h : No such file or directory

[more deleted]

>Fix:

??Maybe fixed in -current, but as noted above, the -current
bsd.port.mk doesn't appear to work _at all_ with NetBSD 1.3.
>Audit-Trail:
>Unformatted: