Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 218652

Summary: builds fail when ${T} suddenly disappears (obviously)
Product: Portage Development Reporter: genbug
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description genbug 2008-04-20 20:50:37 UTC
wine-9999 successfully gets the git tree then attempts one epatch (wine-gentoo-no-ssp.patch) this completely misses the installed code and exits the ebuild.

Reproducible: Always

Steps to Reproduce:
1. unmask wine-9999 in package.keywords
2. emerge wine
3.

Actual Results:  
Indexing 362855 objects...
remote: Total 362855 (delta 302587), reused 362855 (delta 302587)
 100% (362855/362855) done
Resolving 302587 deltas...
 100% (302587/302587) done
 *    local clone: /usr/portage/new/distfiles/git-src/wine
 *    committish: master
>>> Unpacked to /usr/portage/tmp/portage/app-emulation/wine-9999/work/wine-9999
 * Applying wine-gentoo-no-ssp.patch ...
/usr/portage/tmp/portage/app-emulation/wine-9999/temp/environment: line 1195: /u
sr/portage/tmp/portage/app-emulation/wine-9999/temp/wine-gentoo-no-ssp.patch-593
0.out: No such file or directory

Quite correct, there is no directory "temp"

bash-3.2#ls /usr/portage/tmp/portage/app-emulation/wine-9999/
work



please note non std portage dirs. (though this does not seem to be the cause of the error at first sight)

bash-3.2#grep -i "portdir" /etc/make.conf 
PORTDIR=/usr/portage/new 
PORTAGE_TMPDIR=${PORTDIR}/../tmp 
DISTDIR=${PORTDIR}/distfiles

gcc version 4.2.2
Comment 1 SpanKY gentoo-dev 2008-04-21 00:54:10 UTC
not a wine problem ... portage should be creating the temp directory in question

rather than posting random snippets from your config files, use the standard `emerge --info`

also post the full build log from doing `emerge wine` as an attachment
Comment 2 genbug 2008-04-21 11:05:37 UTC
The "snippets" were not random, they were precisely and deliberately chosen to explain why the paths were non std since this was the crux of the issue.

I'd already cleared out portage_tmpdir but noticed a part of the tree remaining. It turned out to be a broken node in the fs.

Having fixed the fs wine seems to be building OK, so I _assume_ that there was an error when portage tried to create the temp dir.

Maybe some error trapping should be added to portage for such basics so they get picked up rather than being ignored and having to be guessed from the fallout. The script should stop if it can't make the directory.

Changing title to reflect this is not an ebuild issue and dropping to normal. 

thx.
Comment 3 Zac Medico gentoo-dev 2008-04-21 16:25:15 UTC
(In reply to comment #0)
> >>> Unpacked to /usr/portage/tmp/portage/app-emulation/wine-9999/work/wine-9999
>  * Applying wine-gentoo-no-ssp.patch ...
> /usr/portage/tmp/portage/app-emulation/wine-9999/temp/environment: line 1195:
> /u
> sr/portage/tmp/portage/app-emulation/wine-9999/temp/wine-gentoo-no-ssp.patch-593
> 0.out: No such file or directory
> 
> Quite correct, there is no directory "temp"

The "temp" directory had to exist because that's where the "environment" file was clearly located. If it suddenly disappeared then then you've got something wrong locally that probably has nothing to do with portage.
Comment 4 Zac Medico gentoo-dev 2008-04-21 16:32:08 UTC
Actually, should have marked this CANTFIX. If directories suddenly disappear then there's nothing we can do. We can check to make sure it's there, but it might be gone the next moment after we've check.
Comment 5 SpanKY gentoo-dev 2008-04-21 20:53:22 UTC
your deliberate selection of a reduced set of information is about the same as a random selection.  users often times omit useful/important information that is automatically provided by `emerge --info`.  so instead of us wasting time on every bug report asking you to post `emerge --info`, you should be posting it first.
Comment 6 genbug 2008-04-21 21:06:51 UTC
OK , I think this can be closed.

It appears to have been a local issue with an fs error as I noted.

I have been able to build wine-9999 twice now , so I think it's reasonable to regard this as a glitch locally.

Thanks for picking it up.