From marck@woozle.rinet.ru  Tue Nov  1 11:37:59 2005
Return-Path: <marck@woozle.rinet.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2A04616A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  1 Nov 2005 11:37:59 +0000 (GMT)
	(envelope-from marck@woozle.rinet.ru)
Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 88D8943D46
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  1 Nov 2005 11:37:58 +0000 (GMT)
	(envelope-from marck@woozle.rinet.ru)
Received: from woozle.rinet.ru (localhost [127.0.0.1])
	by woozle.rinet.ru (8.13.3/8.13.3) with ESMTP id jA1BbvnG046528
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 1 Nov 2005 14:37:57 +0300 (MSK)
	(envelope-from marck@woozle.rinet.ru)
Received: (from marck@localhost)
	by woozle.rinet.ru (8.13.3/8.13.3/Submit) id jA1Bbv4E046527;
	Tue, 1 Nov 2005 14:37:57 +0300 (MSK)
	(envelope-from marck)
Message-Id: <200511011137.jA1Bbv4E046527@woozle.rinet.ru>
Date: Tue, 1 Nov 2005 14:37:57 +0300 (MSK)
From: Dmitry Morozovsky <marck@freebsd.org>
Reply-To: Dmitry Morozovsky <marck@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mail/pine4 could not be built under non-seperuser
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         88321
>Category:       ports
>Synopsis:       mail/pine4 could not be built under non-seperuser
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 01 11:40:16 GMT 2005
>Closed-Date:    Tue Nov 01 21:20:20 GMT 2005
>Last-Modified:  Tue Nov 01 21:20:20 GMT 2005
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->dougb 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Nov 1 11:42:16 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88321 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Tue Nov 1 21:20:08 GMT 2005 
State-Changed-Why:  

Great idea, thanks. 

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