From lioux@uol.com.br  Mon May 16 20:27:20 2005
Return-Path: <lioux@uol.com.br>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C3A8316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 May 2005 20:27:20 +0000 (GMT)
Received: from vette.gigo.com (vette.gigo.com [216.218.228.114])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5825B43D55
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 May 2005 20:27:20 +0000 (GMT)
	(envelope-from lioux@uol.com.br)
Received: from 200.163.23.28 (unknown [200.163.23.28])
	by vette.gigo.com (Postfix) with ESMTP id 25569546A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 May 2005 13:27:18 -0700 (PDT)
Received: (qmail 4004 invoked by uid 1001); 16 May 2005 20:26:30 -0000
Message-Id: <20050516202630.3941.qmail@exxodus.fedaykin.here>
Date: 16 May 2005 20:26:30 -0000
From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD>org.fedaykin.here>
Reply-To: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: marcus@corp.grupos.com.br
Subject: [BUG:PATCH] make install does not respect umask(1)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         81133
>Category:       ports
>Synopsis:       [BUG:PATCH] make install does not respect umask(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lioux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 16 20:30:05 GMT 2005
>Closed-Date:    Sun Aug 28 18:40:21 GMT 2005
>Last-Modified:  Sun Aug 28 18:40:21 GMT 2005
>Originator:     Mario Sergio Fujikawa Ferreira
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD exxodus.fedaykin.here 5.4-STABLE FreeBSD 5.4-STABLE #3: Sun May 8 10:28:48 BRT 2005 lioux@exxodus:/usr/obj/usr/src/sys/LIOUX i386

>Description:

	Port will install file  _sqlite.so with incorrect permissions

-rwxrwx---  0 root   wheel   38497 May 16 12:44 lib/python2.4/site-packages/_sqlite.so

package-contents

-rw-r--r--  0 root   wheel    1508 May 16 17:09 +CONTENTS
-rw-r--r--  0 root   wheel      64 May 16 17:09 +COMMENT
-rw-r--r--  0 root   wheel     421 May 16 17:09 +DESC
-r--r--r--  0 root   wheel   15218 May 16 17:09 +MTREE_DIRS
-rw-r--r--  0 root   wheel    2304 Dec  2 15:25 lib/python2.4/site-packages/sqlite/__init__.py
-rw-r--r--  0 root   wheel    1838 May 16 12:44 lib/python2.4/site-packages/sqlite/__init__.pyc
-rw-r--r--  0 root   wheel    1838 May 16 12:44 lib/python2.4/site-packages/sqlite/__init__.pyo
-rw-r--r--  0 root   wheel   17928 Oct 22  2004 lib/python2.4/site-packages/sqlite/main.py
-rw-r--r--  0 root   wheel   18016 May 16 12:44 lib/python2.4/site-packages/sqlite/main.pyc
-rw-r--r--  0 root   wheel   18016 May 16 12:44 lib/python2.4/site-packages/sqlite/main.pyo
-rwxrwx---  0 root   wheel   38497 May 16 12:44 lib/python2.4/site-packages/_sqlite.so
-r--r--r--  0 root   wheel    1341 May 16 12:44 share/examples/PySQLite/converters.py
-r--r--r--  0 root   wheel    3523 May 16 12:44 share/examples/PySQLite/dbapi_transactions.py
-r--r--r--  0 root   wheel    3406 May 16 12:44 share/examples/PySQLite/manual_transactions.py

>How-To-Repeat:

	Build/install the port with a umask(1) of 077

>Fix:

	Crude fix.

--- Makefile.orig	Mon May 16 17:20:52 2005
+++ Makefile	Mon May 16 17:24:28 2005
@@ -38,5 +38,7 @@
 	@${MKDIR} ${EXAMPLESDIR}
 	@${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
 .endif
+# fix lib shared permission
+	@${CHMOD} ${BINMODE} ${PYTHON_SITELIBDIR}/_sqlite.so
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->lioux 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Mon May 16 21:45:44 GMT 2005 
Responsible-Changed-Why:  
I'll handle this 

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

Adding to audit trail from misfiled PR ports/81154:

Date: Tue, 17 May 2005 09:47:26 -0300
From: Marcus Grando <marcus@corp.grupos.com.br>

 Please apply.
 
 Thanks
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Mon Jul 18 21:57:46 GMT 2005 
State-Changed-Why:  
To which port does this PR apply? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81133 
State-Changed-From-To: feedback->closed 
State-Changed-By: lioux 
State-Changed-When: Sun Aug 28 18:40:20 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

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