FreeBSD Bugzilla – Attachment 176221 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]
v4
fix-depends-chmod.diff (text/plain), 2.70 KB, created by
Mathieu Arnold
on 2016-10-27 17:31:19 UTC
(
hide
)
Description:
v4
Filename:
MIME Type:
Creator:
Mathieu Arnold
Created:
2016-10-27 17:31:19 UTC
Size:
2.70 KB
patch
obsolete
>diff --git Mk/bsd.port.mk Mk/bsd.port.mk >index 5ae2a0b..ae88477 100644 >--- Mk/bsd.port.mk >+++ Mk/bsd.port.mk >@@ -3830,6 +3830,17 @@ 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 will also fix broken distribution files where directories don't have the >+# executable bit on. >+extract-fixup-modes: >+ @${CHMOD} -R u+w,a+rX ${WRKDIR} >+ > ################################################################ > # The special package-building targets > # You probably won't need to touch these >@@ -5201,6 +5212,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 \ >diff --git misc/compat4x/Makefile misc/compat4x/Makefile >index 16413be..f9ec6f4 100644 >--- misc/compat4x/Makefile >+++ misc/compat4x/Makefile >@@ -74,7 +74,7 @@ COMPAT4X_MASTER_SITES= LOCAL/kris/${COMPAT4X_ARCH} > > do-extract: > @${MKDIR} ${WRKDIR} >- @(cd ${DISTDIR}/${DIST_SUBDIR} && ${CAT} ${DISTFILES} | ${TAR} -xzf - -C ${WRKDIR} ) >+ @(cd ${DISTDIR}/${DIST_SUBDIR} && ${CAT} ${DISTFILES} | ${TAR} -xzf - -C ${WRKDIR} usr/lib/compat ) > .if !defined(FORCE_VULNERABLE_OPENSSL) > .for lib in ${OPENSSL_LIBS} > @${RM} ${WRKSRC}/${lib} >diff --git security/bugs/Makefile security/bugs/Makefile >index 2835ae8..bbbe19f 100644 >--- security/bugs/Makefile >+++ security/bugs/Makefile >@@ -55,4 +55,11 @@ post-install-DOCS-on: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) > >-.include <bsd.port.mk> >+.include <bsd.port.pre.mk> >+ >+.if ${OSVERSION} < 1100077 >+post-extract: >+ ${CHMOD} +x ${WRKSRC}/lib/unix ${WRKSRC}/lib/windows >+.endif >+ >+.include <bsd.port.post.mk> >diff --git x11/fluxbg/Makefile x11/fluxbg/Makefile >index 89b784f..d552b07 100644 >--- x11/fluxbg/Makefile >+++ x11/fluxbg/Makefile >@@ -25,4 +25,11 @@ post-patch: > @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \ > s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/src/fluxbg_conf.cc > >-.include <bsd.port.mk> >+.include <bsd.port.pre.mk> >+ >+.if ${OSVERSION} < 1100077 >+post-extract: >+ ${CHMOD} +x ${WRKSRC}/autom4te.cache >+.endif >+ >+.include <bsd.port.post.mk>
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