ports/127467: bsd.ports.mk: fix checking DISTDIR for writeability

Sergey Skvortsov godegisel at FreeBSD.org
Thu Sep 18 10:30:01 UTC 2008


>Number:         127467
>Category:       ports
>Synopsis:       bsd.ports.mk: fix checking DISTDIR for writeability
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 18 10:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Skvortsov
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:


>Description:

>How-To-Repeat:

# run as unprivileged user in 'wheel' group

sudo chmod g+w /usr/ports/distfiles/vim

cd /usr/ports/editors/vim-lite

make fetch

[skip]

=> vim-7.2.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/vim.
=> /usr/ports/distfiles is not writable by you; cannot fetch.

>Fix:

Check real dir, not the parent.

Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.604
diff -u -r1.604 bsd.port.mk
--- bsd.port.mk	5 Sep 2008 19:41:43 -0000	1.604
+++ bsd.port.mk	18 Sep 2008 09:26:54 -0000
@@ -3413,8 +3413,8 @@
 				fi; \
 			fi; \
 			${ECHO_MSG} "=> $$file doesn't seem to exist in ${_DISTDIR}."; \
-			if [ ! -w ${DISTDIR} ]; then \
-			   ${ECHO_MSG} "=> ${DISTDIR} is not writable by you; cannot fetch."; \
+			if [ ! -w ${_DISTDIR} ]; then \
+			   ${ECHO_MSG} "=> ${_DISTDIR} is not writable by you; cannot fetch."; \
 			   exit 1; \
 			fi; \
 			if [ ! -z "$$select" ] ; then \
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list