Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690460 - net-misc/asterisk-moh-opsound-2.03 : * The source directory /var/tmp/portage/net-misc/asterisk-moh-opsound-2.03/work/asterisk-moh-opsound-2.03 doesn t exist
Summary: net-misc/asterisk-moh-opsound-2.03 : * The source directory /var/tmp/portage...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-22 17:54 UTC by Toralf Förster
Modified: 2019-08-06 08:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.06 KB, text/plain)
2019-07-22 17:54 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,161.85 KB, text/plain)
2019-07-22 17:54 UTC, Toralf Förster
Details
environment (environment,21.10 KB, text/plain)
2019-07-22 17:54 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.29 KB, application/x-bzip)
2019-07-22 17:54 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,180 bytes, application/x-bzip)
2019-07-22 17:54 UTC, Toralf Förster
Details
net-misc:asterisk-moh-opsound-2.03:20190722-153903.log (net-misc:asterisk-moh-opsound-2.03:20190722-153903.log,1.67 KB, text/plain)
2019-07-22 17:54 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-07-22 17:54:32 UTC
>>> Source unpacked in /var/tmp/portage/net-misc/asterisk-moh-opsound-2.03/work
 * ERROR: net-misc/asterisk-moh-opsound-2.03::gentoo failed (prepare phase):
 *   The source directory '/var/tmp/portage/net-misc/asterisk-moh-opsound-2.03/work/asterisk-moh-opsound-2.03' doesn't exist
 * 
 * Call stack:
 *            ebuild.sh, line  781:  Called __ebuild_main 'prepare'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-20190719-201908

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)

Available Rust versions:
  [1]   rust-1.36.0 *



emerge -qpvO net-misc/asterisk-moh-opsound
[ebuild  N    ] net-misc/asterisk-moh-opsound-2.03  USE="gsm -alaw -g722 -g729 -siren14 -siren7 -sln16 -ulaw -wav"
Comment 1 Toralf Förster gentoo-dev 2019-07-22 17:54:35 UTC
Created attachment 584084 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-07-22 17:54:38 UTC
Created attachment 584086 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-07-22 17:54:41 UTC
Created attachment 584088 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-07-22 17:54:43 UTC
Created attachment 584090 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-07-22 17:54:46 UTC
Created attachment 584092 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-07-22 17:54:48 UTC
Created attachment 584094 [details]
net-misc:asterisk-moh-opsound-2.03:20190722-153903.log
Comment 7 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2019-08-06 02:29:44 UTC
This bug was introduced in the following commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=106e90831bd7d5630a6e0620b507bc3341b996c6

It can be fixed by adding the following line to the ebuild:
S="${WORKDIR}"

It's caused by two facts:
1) This specific ebuild has no directory by name "${WORKDIR}/${P}" instead it uses, and extract the different packs to "${WORKDIR}" directly.
2) Since EAPI>=4 "utilities die on their own, unless the nonfatal command is used" 

As a result, when src_prepare tries to cd into "${S}" and fails to do so it dies stopping the compilation process. This was masked by the older EAPI=2 because of the nonfatal behaviour used then.

zlogene, I hope you don't mind I assign this to you so you can either revert your commit (and wait for Chainsaw to bump the EAPI) or ammend it with the propossed fix.
Comment 8 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-08-06 08:59:57 UTC
(In reply to Francisco Blas Izquierdo Riera from comment #7)
> This bug was introduced in the following commit:
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=106e90831bd7d5630a6e0620b507bc3341b996c6
> 
> It can be fixed by adding the following line to the ebuild:
> S="${WORKDIR}"
> 
> It's caused by two facts:
> 1) This specific ebuild has no directory by name "${WORKDIR}/${P}" instead
> it uses, and extract the different packs to "${WORKDIR}" directly.
> 2) Since EAPI>=4 "utilities die on their own, unless the nonfatal command is
> used" 
> 
> As a result, when src_prepare tries to cd into "${S}" and fails to do so it
> dies stopping the compilation process. This was masked by the older EAPI=2
> because of the nonfatal behaviour used then.
> 
> zlogene, I hope you don't mind I assign this to you so you can either revert
> your commit (and wait for Chainsaw to bump the EAPI) or ammend it with the
> propossed fix.

Thanks! Sometimes I expect old developers make things more explicit (because I expect they know what to do), because even with old EAPIs nonfatal is unjustifiable, to my astonishing people are careless. 
Anyway, I commited a fix so now it defines workdir properly. My bad.