ports/88321: mail/pine4 could not be built under non-seperuser

Dmitry Morozovsky marck at FreeBSD.org
Tue Nov 1 11:40:18 UTC 2005


>Number:         88321
>Category:       ports
>Synopsis:       mail/pine4 could not be built under non-seperuser
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 01 11:40:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Morozovsky
>Release:        FreeBSD 4-STABLE i386
>Organization:
Cronyx Plus LLC (RiNet ISP)
>Environment:
System: FreeBSD 4-STABLE, 5-STABLE

>Description:

mail/pine4 distfile contains non-writable files, which prevents patches from
applying, when port is to be built by non-root.

>How-To-Repeat:

> cd /usr/ports/mail/pine4
> make patch BATCH=1

...
===>  Applying FreeBSD patches for pine-4.64
cannot create /lh/ports/mail/pine4/work/pine4.64/imap/src/osdep/unix/Makefile: permission denied
*** Error code 2

>Fix:


Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/pine4/Makefile,v
retrieving revision 1.83
diff -u -r1.83 Makefile
--- Makefile	29 Oct 2005 07:13:28 -0000	1.83
+++ Makefile	1 Nov 2005 11:37:18 -0000
@@ -67,6 +67,9 @@
 PATCH_DIST_ARGS+=	-E --quiet -d ${PATCH_WRKSRC} -p1
 .endif
 
+pre-patch:
+	@${CHMOD} -R u+w ${WRKSRC}
+
 post-patch:
 # Do this here because the maildir patch also modifies this file
 	@${CP} ${WRKSRC}/imap/src/osdep/unix/Makefile \
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list