FreeBSD Bugzilla – Attachment 147571 Details for
Bug 193848
emulators/linux-c6 cannot be built/packaged as unprivileged user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
allow extraction as non-root user
patch-emulators__linux_base-c6.diff (text/plain), 1.40 KB, created by
Matthias Andree
on 2014-09-22 20:05:27 UTC
(
hide
)
Description:
allow extraction as non-root user
Filename:
MIME Type:
Creator:
Matthias Andree
Created:
2014-09-22 20:05:27 UTC
Size:
1.40 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 368984) >+++ Makefile (working copy) >@@ -16,6 +16,10 @@ > LINUX_DIST_VER=6.5 > DIST_SUBDIR= rpm/${LINUX_RPM_ARCH}/${LINUX_DIST}/${LINUX_DIST_VER} > >+# these get extracted from pre-extract, then some directory permissions >+# get fixed up >+PRE_BIN_DISTFILES= filesystem-2.4.30-3.el6.${LINUX_RPM_ARCH}.rpm >+ > BIN_DISTFILES= basesystem-10.0-4.el6.noarch.rpm \ > bash-4.1.2-15.el6_4.${LINUX_RPM_ARCH}.rpm \ > bzip2-1.0.5-7.el6_0.${LINUX_RPM_ARCH}.rpm \ >@@ -29,7 +33,6 @@ > e2fsprogs-libs-1.41.12-18.el6.${LINUX_RPM_ARCH}.rpm \ > elfutils-0.152-1.el6.${LINUX_RPM_ARCH}.rpm \ > centos-release-6-5.el6.centos.11.1.${LINUX_RPM_ARCH}.rpm \ >- filesystem-2.4.30-3.el6.${LINUX_RPM_ARCH}.rpm \ > findutils-4.4.2-6.el6.${LINUX_RPM_ARCH}.rpm \ > freetype-2.3.11-14.el6_3.1.${LINUX_RPM_ARCH}.rpm \ > gamin-0.1.10-9.el6.${LINUX_RPM_ARCH}.rpm \ >@@ -171,6 +174,16 @@ > ARCH= i386 > .endif > >+pre-extract: >+ @for file in ${PRE_BIN_DISTFILES}; do \ >+ if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\ >+ then \ >+ exit 1; \ >+ fi; \ >+ done >+ # now fix up broken permissions >+ ${CHMOD} -R u+rwX ${WRKDIR}/bin ${WRKDIR}/lib ${WRKDIR}/sbin ${WRKDIR}/usr/bin ${WRKDIR}/usr/lib ${WRKDIR}/usr/sbin >+ > do-build: > @for D in ${REMOVE_DIRS}; do \ > ${RM} -rf ${WRKSRC}/$$D; \
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 193848
: 147571