From nobody@FreeBSD.org  Sat Mar 30 11:20:06 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (unknown [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 9F7F037B41A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 30 Mar 2002 11:20:05 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2UJK5T36154;
	Sat, 30 Mar 2002 11:20:05 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203301920.g2UJK5T36154@freefall.freebsd.org>
Date: Sat, 30 Mar 2002 11:20:05 -0800 (PST)
From: Chris Pepper <pepper@mail.rockefeller.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port: make install as normal user retries sites
X-Send-Pr-Version: www-1.0

>Number:         36541
>Category:       misc
>Synopsis:       port: make install as normal user retries sites
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 30 11:30:01 PST 2002
>Closed-Date:    Fri Aug 30 19:50:19 PDT 2002
>Last-Modified:  Fri Aug 30 19:50:19 PDT 2002
>Originator:     Chris Pepper
>Release:        4.5-RELEASE
>Organization:
The Rockefeller University
>Environment:
FreeBSD kra.info-mac.org 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002     murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
>Description:
      When I run 'make install' in /usr/ports/net/netatalk as unprivileged user 'pepper', make attempts to download the distfile, fails (because I don't have write permission to /usr/ports/distfiles), and then retries all the other mirrors in sequence, instead of giving up.
>How-To-Repeat:
cd /usr/ports/net/netatalk
make install
>Fix:
      Abort if the user doesn't have write permission on /usr/ports/distfiles, rather than retrying.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->portmgr 
Responsible-Changed-By: cjc 
Responsible-Changed-When: Sun Apr 7 01:36:10 PST 2002 
Responsible-Changed-Why:  
PRs dealing with the bsd.ports.*mk files go to portmgr@. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36541 

From: "Crist J. Clark" <cjc@FreeBSD.ORG>
To: Chris Pepper <pepper@mail.rockefeller.edu>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/36541: port: make install as normal user retries sites
Date: Sun, 7 Apr 2002 01:36:00 -0800

 On Sat, Mar 30, 2002 at 11:20:05AM -0800, Chris Pepper wrote:
 [snip]
 
 > >Description:
 >       When I run 'make install' in /usr/ports/net/netatalk as unprivileged user 'pepper', make attempts to download the distfile, fails (because I don't have write permission to /usr/ports/distfiles), and then retries all the other mirrors in sequence, instead of giving up.
 
 This has annoyed me too on occasion. This prevents the problem when a
 user actually does not have write permission to the directory, but
 will not catch the case when root tries to write to a DISTDIR
 directory when it is NFS mounted read-only and maproot=0 (the moral:
 usually not much point in maproot=0 when mounting read-only).
 
 Index: bsd.port.mk
 ===================================================================
 RCS file: /export/freebsd/ncvs/ports/Mk/bsd.port.mk,v
 retrieving revision 1.404
 diff -u -r1.404 bsd.port.mk
 --- bsd.port.mk	27 Mar 2002 04:26:44 -0000	1.404
 +++ bsd.port.mk	7 Apr 2002 09:30:02 -0000
 @@ -2063,6 +2063,10 @@
  				fi; \
  			fi; \
  			${ECHO_MSG} ">> $$file doesn't seem to exist in ${_DISTDIR}."; \
 +			if [ ! -w ${_DISTDIR} ]; then \
 +				${ECHO_MSG} ">> You do not have write permission to ${_DISTDIR}."; \
 +				exit 1; \
 +			fi; \
  			if [ ! -z "$$select" ] ; then \
  				__MASTER_SITES_TMP= ; \
  				for group in $$select; do \
 
 -- 
 Crist J. Clark                     |     cjclark@alum.mit.edu
                                    |     cjclark@jhu.edu
 http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Fri Aug 30 19:50:02 PDT 2002 
State-Changed-Why:  
Duplicate of 19270 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36541 
>Unformatted:
