Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 103603 Details for
Bug 157369
ebuild (1) doesn't fully clean the temp directories after the .ebuild file is touched
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
clean ${T} in addition to ${WORKDIR}, but respect keepwork and keeptemp
more_clean.patch (text/plain), 1.21 KB, created by
Zac Medico
on 2006-12-07 21:09:29 UTC
(
hide
)
Description:
clean ${T} in addition to ${WORKDIR}, but respect keepwork and keeptemp
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-12-07 21:09:29 UTC
Size:
1.21 KB
patch
obsolete
>Index: bin/ebuild.sh >=================================================================== >--- bin/ebuild.sh (revision 5217) >+++ bin/ebuild.sh (working copy) >@@ -679,20 +679,27 @@ > if [ "${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/${x}" -nt "${WORKDIR}" ]; then > vecho ">>> ${x} has been updated; recreating WORKDIR..." > newstuff="yes" >- rm -rf "${WORKDIR}" > break > fi > done >- if [ "${EBUILD}" -nt "${WORKDIR}" ]; then >+ if [ "${EBUILD}" -nt "${WORKDIR}" ] && ! hasq keepwork ${FEATURES} ; then > vecho ">>> ${EBUILD} has been updated; recreating WORKDIR..." > newstuff="yes" >- rm -rf "${WORKDIR}" > elif [ ! -f "${PORTAGE_BUILDDIR}/.unpacked" ]; then > vecho ">>> Not marked as unpacked; recreating WORKDIR..." > newstuff="yes" >- rm -rf "${WORKDIR}" > fi > fi >+ if [ "${newstuff}" == "yes" ]; then >+ # We don't necessarily have privileges to do a full dyn_clean here. >+ rm -rf "${WORKDIR}" >+ if [ -d "${T}" ] && ! hasq keeptemp ${FEATURES} ; then >+ rm -rf "${T}" && mkdir "${T}" >+ else >+ [ -e "${T}/environment" ] && \ >+ mv "${T}/environment" "${T}/environment.keeptemp" >+ fi >+ fi > if [ -e "${WORKDIR}" ]; then > if [ "$newstuff" == "no" ]; then > vecho ">>> WORKDIR is up-to-date, keeping..."
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 157369
:
103526
| 103603