ports/159592: [patch] graphics/xfig installs shared files with restrictive permissions

Matthew Luckie mjl at luckie.org.nz
Sun Aug 7 22:00:26 UTC 2011


>Number:         159592
>Category:       ports
>Synopsis:       [patch] graphics/xfig installs shared files with restrictive permissions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 07 22:00:24 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Matthew Luckie
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD spandex.luckie.org.nz 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 25 13:44:21 NZDT 2011 root at spandex.luckie.org.nz:/usr/obj/usr/src/sys/spandex i386


	
>Description:
Files, such as library elements and html documentation are installed owned
and readable only by root.  These should be readable by all users.

>How-To-Repeat:
Install xfig.  cd ${LOCALBASE}/lib/X11/xfig/Libraries/ and examine the
permissions of the various fig files beneath.  Likewise in
${LOCALBASE}/share/doc/xfig/html/

>Fix:

use this patch.

--- patch-xfig begins here ---
diff -uNr xfig/Makefile xfig-new/Makefile
--- xfig/Makefile	2011-06-20 07:00:32.000000000 +1200
+++ xfig-new/Makefile	2011-08-05 11:08:28.000000000 +1200
@@ -51,10 +51,10 @@
 
 post-extract:
 	@cd ${WRKSRC}/Doc && ${FIND} -s . -type d -print0 | ${XARGS} -0 ${CHMOD} a+rx
-	@cd ${WRKSRC}/Doc && ${FIND} . -type f -print0 | ${XARGS} -0 ${CHMOD} a-x
+	@cd ${WRKSRC}/Doc && ${FIND} . -type f -print0 | ${XARGS} -0 ${CHMOD} a-x+r
 	@${CHMOD} a+rx ${WRKSRC}/Libraries
 	@cd ${WRKSRC}/Libraries && ${FIND} -s . -type d -print0 | ${XARGS} -0 ${CHMOD} a+rx
-	@cd ${WRKSRC}/Libraries && ${FIND} . -type f -print0 | ${XARGS} -0 ${CHMOD} a-x
+	@cd ${WRKSRC}/Libraries && ${FIND} . -type f -print0 | ${XARGS} -0 ${CHMOD} a-x+r
 	@${CP} ${WRKSRC}/Doc/xfig.man ${WRKSRC}
 
 post-patch:
--- patch-xfig ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list