Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 82986 Details for
Bug 127374
Current buildpkg logic isn't selinux aware.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to create tbz2 directly in ${PKGDIR}/All
bug_127374_selinux_labels.patch (text/plain), 1.30 KB, created by
Zac Medico
on 2006-03-24 00:38:49 UTC
(
hide
)
Description:
patch to create tbz2 directly in ${PKGDIR}/All
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-03-24 00:38:49 UTC
Size:
1.30 KB
patch
obsolete
>Index: bin/misc-functions.sh >=================================================================== >--- bin/misc-functions.sh (revision 2985) >+++ bin/misc-functions.sh (working copy) >@@ -406,16 +406,17 @@ > dyn_package() { > cd "${PORTAGE_BUILDDIR}/image" > install_mask "${PORTAGE_BUILDDIR}/image" ${PKG_INSTALL_MASK} >- tar cpvf - ./ | bzip2 -f > ../bin.tar.bz2 || die "Failed to create tarball" >+ local pkg_dest="${PKGDIR}/All/${PF}.tbz2" >+ local pkg_tmp="${PKGDIR}/All/${PF}.tbz2.$$" >+ addwrite "${PKGDIR}" >+ tar cpvf - ./ | bzip2 -f > "${pkg_tmp}" || die "Failed to create tarball" > cd .. >- xpak build-info inf.xpak >- tbz2tool join bin.tar.bz2 inf.xpak "${PF}.tbz2" >- addwrite "${PKGDIR}" >- mv -f "${PF}.tbz2" "${PKGDIR}/All" || die "Failed to move tbz2 to ${PKGDIR}/All" >- rm -f inf.xpak bin.tar.bz2 >- if [ ! -d "${PKGDIR}/${CATEGORY}" ]; then >- install -d "${PKGDIR}/${CATEGORY}" >+ python -c "import xpak; t=xpak.tbz2('${pkg_tmp}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')" >+ if [ $? -ne 0 ]; then >+ rm -f "${pkg_tmp}" >+ die "Failed to append metadata to the tbz2 file" > fi >+ mv -f "${pkg_tmp}" "${pkg_dest}" || die "Failed to move tbz2 to ${pkg_dest}" > ln -sf "../All/${PF}.tbz2" "${PKGDIR}/${CATEGORY}/${PF}.tbz2" || die "Failed to create symlink in ${PKGDIR}/${CATEGORY}" > echo ">>> Done." > cd "${PORTAGE_BUILDDIR}"
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 127374
:
82986
|
82987