From owner-freebsd-ports Wed Jun 14 11: 0: 6 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A2C2837BF53 for ; Wed, 14 Jun 2000 11:00:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA03759; Wed, 14 Jun 2000 11:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 6ECE437C548; Wed, 14 Jun 2000 10:54:00 -0700 (PDT) Message-Id: <20000614175400.6ECE437C548@hub.freebsd.org> Date: Wed, 14 Jun 2000 10:54:00 -0700 (PDT) From: pfeifer@dbai.tuwien.ac.at To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/19270: Ports build mechanism doesn't check whether /usr/ports/distfiles is writeable Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19270 >Category: ports >Synopsis: Ports build mechanism doesn't check whether /usr/ports/distfiles is writeable >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 14 11:00:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Gerald Pfeifer >Release: 4.0-RELEASE >Organization: Vienna University of Technology >Environment: FreeBSD spica.dbai.tuwien.ac.at 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Tue Jun 13 18:09:54 CEST 2000 root@spica.dbai.tuwien.ac.at:/usr/src/sys/compile/DBAI_KERNEL i386 >Description: The build mechanism of the ports system does not check whether /usr/ports/distfiles is writeable before trying to download from the net. Accordingly, the user does get several error messages (see below) instead of a single one which explains the real source of the problem. A similiar situation will happen when building a port as root, when /usr/ports/distfiles is NFS-mounted (which may make sense in a multi- host environment). >How-To-Repeat: Try to `make` any port as a regular user: spica[99]:/sw/test/ports/emulators/wine% make >Fix: Add some variation of if [ ! -w /usr/ports/distfiles ]; then echo "/usr/ports/distfiles is not writable; cannot download..." fi to the build mechanism. >Release-Note: >Audit-Trail: >Unformatted: >> Wine-20000526.tar.gz doesn't seem to exist on this system. >> Attempting to fetch from ftp://metalab.unc.edu/pub/Linux/ALPHA/wine/development/. fetch: Wine-20000526.tar.gz: Permission denied >> Attempting to fetch from ftp://ftp.infomagic.com/pub/mirrors/linux/sunsite/ALPHA/wine/development/. fetch: ftp.infomagic.com: sunsite: File unavailable (e.g., file not found, no access) >> Attempting to fetch from ftp://ftp.freesoftware.com/pub/linux/sunsite/ALPHA/wine/development/. fetch: Wine-20000526.tar.gz: Permission denied >> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: Wine-20000526.tar.gz: Permission denied >> Couldn't fetch it - please try to retrieve this >> port manually into /usr/ports/distfiles/ and try again. *** Error code 1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message