FreeBSD Bugzilla – Attachment 175871 Details for
Bug 213574
Try to mitigate archives with bad modes for files and directories a bit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1
fix-depends-chmod.diff (text/plain), 1.45 KB, created by
Mathieu Arnold
on 2016-10-17 16:39:02 UTC
(
hide
)
Description:
v1
Filename:
MIME Type:
Creator:
Mathieu Arnold
Created:
2016-10-17 16:39:02 UTC
Size:
1.45 KB
patch
obsolete
>diff --git Mk/bsd.port.mk Mk/bsd.port.mk >index d7384b7..4142289 100644 >--- Mk/bsd.port.mk >+++ Mk/bsd.port.mk >@@ -3830,6 +3830,18 @@ checksum: fetch > .endif > .endif > >+# Some port's archives contains files modes that are a bit too restrictive for >+# some usage. For example: >+# BUILD_DEPENDS= ${NONEXISTENT}:foo/bar:configure >+# When building as a regular user, dependencies are installed/built as root, so >+# if the archive contains files that have a mode of, say, 600, they will not be >+# readable by the port requesting the dependency. >+# This, of course, will not be able to fix directories with a mode of 644, but >+# should be able to fix most common problems. >+extract-fixup-modes: >+ @${FIND} ${WRKDIR} -type d \! -perm -0555 -exec ${CHMOD} u+rwx,a+rx {} + > /dev/null 2>&1 || : >+ @${FIND} ${WRKDIR} \! -type d \! -perm -0444 -exec ${CHMOD} u+w,a+r {} + > /dev/null 2>&1 || : >+ > ################################################################ > # The special package-building targets > # You probably won't need to touch these >@@ -5201,6 +5213,7 @@ _EXTRACT_SEQ= 010:check-build-conflicts 050:extract-message 100:checksum \ > 150:extract-depends 190:clean-wrkdir 200:${EXTRACT_WRKDIR} \ > 300:pre-extract 450:pre-extract-script 500:do-extract \ > 700:post-extract 850:post-extract-script \ >+ 999:extract-fixup-modes \ > ${_OPTIONS_extract} ${_USES_extract} ${_SITES_extract} > _PATCH_DEP= extract > _PATCH_SEQ= 050:ask-license 100:patch-message 150:patch-depends \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213574
:
175871
|
175878
|
176220
|
176221