Hi, I was trying to merge the MKL library from gentoo portage tree and encountered following error: -------------------------- * ERROR: sci-libs/mkl-10.0.5.025::gentoo failed (prepare phase): * The source directory '/var/tmp/portage/sci-libs/mkl-10.0.5.025/work/mkl-10.0.5.025' doesn't exist --------------------------- While digging a bit, I found that in the unpacking stage, 'work/l_mkl-10.0.5.025' folder is created instead of 'work/mkl-10.0.5.025' however, ${S} points to 'work/mkl-10.0.5.025'. By build.log file reads: ========================= * Package: sci-libs/mkl-10.0.5.025 * Repository: gentoo * Maintainer: sci@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * Checking for at least 3500 MiB disk space at "/var/tmp/portage/sci-libs/mkl-10.0.5.025/temp" ... [ ok ] * Using following Fortran compiler: * F77: x86_64-pc-linux-gnu-gfortran * FC: x86_64-pc-linux-gnu-gfortran * Checking for at least 1100 MiB disk space at "/var/tmp/portage/sci-libs/mkl-10.0.5.025/temp" ... [ ok ] >>> Unpacking source... >>> Unpacking l_mkl_p_10.0.5.025.tgz to /var/tmp/portage/sci-libs/mkl-10.0.5.025/work >>> Source unpacked in /var/tmp/portage/sci-libs/mkl-10.0.5.025/work * ERROR: sci-libs/mkl-10.0.5.025::gentoo failed (prepare phase): * The source directory '/var/tmp/portage/sci-libs/mkl-10.0.5.025/work/mkl-10.0.5.025' doesn't exist * * Call stack: * ebuild.sh, line 780: Called __ebuild_main 'prepare' * phase-functions.sh, line 1005: Called __dyn_prepare * phase-functions.sh, line 369: Called die * The specific snippet of code: * die "The source directory '${S}' doesn't exist" * * If you need support, post the output of `emerge --info '=sci-libs/mkl-10.0.5.025::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/mkl-10.0.5.025::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-libs/mkl-10.0.5.025/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/mkl-10.0.5.025/temp/environment'. * Working directory: '/usr/lib64/python3.4/site-packages' * S: '/var/tmp/portage/sci-libs/mkl-10.0.5.025/work/mkl-10.0.5.025'
commit 525b7acb483107106e4e3109bc1216809bc17175 Author: Gerhard Bräunlich <wippbox@gmx.net> Date: Tue Aug 16 17:08:55 2016 +0200 sci-libs/mkl: Fixed ebuild Gentoo-bug: #589610 Reported-by: masum.habib@gmail.com