Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 177721 Details for
Bug 250469
Unpacking .deb with deb2targz fails when FEATURES="userpriv" is enabled
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
don't write to $DISTDIR with deb2targz
deb2targz.patch (text/plain), 1.09 KB, created by
Zac Medico
on 2009-01-07 23:54:03 UTC
(
hide
)
Description:
don't write to $DISTDIR with deb2targz
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2009-01-07 23:54:03 UTC
Size:
1.09 KB
patch
obsolete
>Index: bin/ebuild.sh >=================================================================== >--- bin/ebuild.sh (revision 12388) >+++ bin/ebuild.sh (revision 12389) >@@ -406,10 +406,24 @@ > # that reason. We just make sure on AIX `deb2targz` is > # installed. > if type -P deb2targz > /dev/null; then >- deb2targz "${srcdir}/${x}" || die "$myfail" >- mv "${srcdir}/${x/.deb/.tar.gz}" data.tar.gz >+ y=${x##*/} >+ local created_symlink=0 >+ if [ ! "$srcdir$x" -ef "$y" ] ; then >+ # deb2targz always extracts into the same directory as >+ # the source file, so create a symlink in the current >+ # working directory if necessary. >+ ln -sf "$srcdir$x" "$y" || die "$myfail" >+ created_symlink=1 >+ fi >+ deb2targz "$y" || die "$myfail" >+ if [ $created_symlink = 1 ] ; then >+ # Clean up the symlink so the ebuild >+ # doesn't inadvertently install it. >+ rm -f "$y" >+ fi >+ mv -f "${y%.deb}".tar.gz data.tar.gz || die "$myfail" > else >- ar x "${srcdir}/${x}" || die "$myfail" >+ ar x "$srcdir$x" || die "$myfail" > fi > ;; > lzma)
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 250469
: 177721