Subject: pkg/24031: packages depending on perl lose on darwin/macos
To: None <gnats-bugs@gnats.netbsd.org>
From: Darrin B. Jewell <dbj@netbsd.org>
List: netbsd-bugs
Date: 01/09/2004 11:11:09
>Number:         24031
>Category:       pkg
>Synopsis:       packages depending on perl lose on darwin/macos
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 09 16:13:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Darrin B. Jewell
>Release:        pkgsrc-2003Q4 branch updated ~20040109T1425Z
>Organization:
>Environment:

Macos 10.3.2, Build 7D24

$ uname -a
Darwin Quiteria 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 16:20:23 PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC  Power Macintosh powerpc

$ echo $PATH
/sw/bin:/sw/sbin:/u3/dbj/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games

$ disktool -l | grep /u3
***Disk Appeared ('disk0s18',Mountpoint = '/u3', fsType = 'ufs', volName = 'Data')

$ type perl
perl is hashed (/usr/bin/perl)
$ perl -v

This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level
(with 1 registered patch, see perl -V for more detail)

$ cat /etc/mk.conf
# Example /etc/mk.conf file produced by bootstrap-pkgsrc
# Mon Nov  3 13:33:55 PST 2003

.ifdef BSD_PKG_MK       # begin pkgsrc settings

PKG_DBDIR=/usr/pkg/pkgdb
LOCALBASE=/usr/pkg/
ZOULARISBASE=/usr/pkg/
FETCH_CMD=/usr/pkg/bin/ftp
PAX=/usr/pkg/bin/pax

USE_XPKGWEDGE=yes
BULK_PREREQ+=pkgtools/xpkgwedge
DISTDIR=/u3/ephemeral/pkgsrc-2003Q4/distfiles
PACKAGES=/u3/ephemeral/pkgsrc-2003Q4/packages
WRKOBJDIR=/u3/ephemeral/pkgsrc-2003Q4/work
#BSDSRCDIR=/u3/work/trunkwork/src
#BSDSRCDIR=/u3/work/trunkwork/xsrc
UPDATE_TARGET=package
_ACCEPTABLE=yes

PAPERSIZE=letter

.endif                  # end pkgsrc settings

>Description:

I tried to build gnucash on MacOS X 10.3.2, but failed.
The immediate problem was that gnucash depends on perl, and the
makefile for perl in pkgsrc/lang/perl5/Makefile has the line
NOT_FOR_PLATFORM=Darwin-*-*

Since perl ships with the system, perhaps it should be able
to depend on that instead.

>How-To-Repeat:

Try to build gnucash on macos X.
The following is a log of my attempt.

+ pwd
/u3/dist/anoncvs.netbsd.org/pkgsrc-2003Q4/pkgsrc/finance/gnucash
+ date
Fri Jan  9 10:42:02 EST 2004
+ MAKECONF=/etc/mk.conf
+ export MAKECONF
+ /usr/pkg/bin/bmake package
===> *** No /u3/ephemeral/pkgsrc-2003Q4/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg//sbin/download-vulnerability-list'.
=> gnucash-1.8.4.tar.gz doesn't seem to exist on this system.
=> Attempting to fetch gnucash-1.8.4.tar.gz from ftp://ftp.gnucash.org/pub/gnucash/sources/stable/.
=> [7013351 bytes]
ftp: connect: Connection refused
ftp: Can't connect or login to host `ftp.gnucash.org'
=> Attempting to fetch gnucash-1.8.4.tar.gz from http://aleron.dl.sourceforge.net/sourceforge/gnucash/.
=> [7013351 bytes]
=> Checksum OK for gnucash-1.8.4.tar.gz.
work -> /u3/ephemeral/pkgsrc-2003Q4/work/finance/gnucash/work
===> Extracting for gnucash-1.8.4nb3
===> Required package p5-Date-Manip>=5.42a: NOT found
===> Verifying package for ../../devel/p5-Date-Manip
===> *** No /u3/ephemeral/pkgsrc-2003Q4/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg//sbin/download-vulnerability-list'.
=> DateManip-5.42a.tar.gz doesn't seem to exist on this system.
=> Attempting to fetch DateManip-5.42a.tar.gz from ftp://cpan.pair.com/pub/CPAN/modules/by-module/Date/.
=> [136302 bytes]
=> Checksum OK for DateManip-5.42a.tar.gz.
work -> /u3/ephemeral/pkgsrc-2003Q4/work/devel/p5-Date-Manip/work
===> Extracting for p5-Date-Manip-5.42a
===> Required package perl>=5.8.0: NOT found
===> Verifying package for ../../lang/perl5
===> perl-5.6.1nb9 is not available for Darwin-7.2.0-powerpc
===> Returning to build of p5-Date-Manip-5.42a
===> Patching for p5-Date-Manip-5.42a
===> Overriding tools for p5-Date-Manip-5.42a
===> Buildlinking for p5-Date-Manip-5.42a
===> Configuring for p5-Date-Manip-5.42a
env: /usr/pkg//bin/perl: No such file or directory
*** Error code 127

Stop.
bmake: stopped in /u3/dist/anoncvs.netbsd.org/pkgsrc-2003Q4/pkgsrc/devel/p5-Date-Manip
*** Error code 1

Stop.
bmake: stopped in /u3/dist/anoncvs.netbsd.org/pkgsrc-2003Q4/pkgsrc/devel/p5-Date-Manip
*** Error code 1

Stop.
bmake: stopped in /u3/dist/anoncvs.netbsd.org/pkgsrc-2003Q4/pkgsrc/finance/gnucash
*** Error code 1

Stop.
bmake: stopped in /u3/dist/anoncvs.netbsd.org/pkgsrc-2003Q4/pkgsrc/finance/gnucash

>Fix:

I hear Grant volunteers to fix all Darwin pkgsrc bugs.

>Release-Note:
>Audit-Trail:
>Unformatted: