ports/81133: [BUG:PATCH] make install does not respect umask(1)

Mario Sergio Fujikawa Ferreira lioux at FreeBSD.FreeBSD.ORG
Mon May 16 20:30:14 UTC 2005


>Number:         81133
>Category:       ports
>Synopsis:       [BUG:PATCH] make install does not respect umask(1)
>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:   Mon May 16 20:30:05 GMT 2005
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list