Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2000 10:54:00 -0700 (PDT)
From:      pfeifer@dbai.tuwien.ac.at
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/19270: Ports build mechanism doesn't check whether /usr/ports/distfiles is writeable
Message-ID:  <20000614175400.6ECE437C548@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000614175400.6ECE437C548>