When there is not enough space available in PORTAGE_TMPDIR the prepare phase will silently fail, which will then later on cause a fatal error in the install phase due to directories not existing. I think the ebuild could benefit from the use of CHECKREQS_DISK_BUILD from check-reqs.eclass. And if possible the underlying issue of the silent failure in the prepare phase should be addressed. -------------------------------------------------------------------------------- Wolfram Mathematica 13.0 Installer -------------------------------------------------------------------------------- Copyright (c) 1988-2021 Wolfram Research, Inc. All rights reserved. WARNING: Wolfram Mathematica is protected by copyright law and international treaties. Unauthorized reproduction or distribution may result in severe civil and criminal penalties and will be prosecuted to the maximum extent possible under law. Enter the installation directory, or press ENTER to select /usr/local/Wolfram/Mathematica/13.0: > /var/tmp/portage/sci-mathematics/mathematica-13.0.0/work/opt/Wolfram/Mathematica/13.0 Create directory (y/n)? > y Now installing... [ ] Error: There is not enough space available to install the requested components in the selected location. Aborting installation. Installation failed. See /tmp/InstallErrors-28282. >>> Source prepared. >>> Configuring source in /var/tmp/portage/sci-mathematics/mathematica-13.0.0/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sci-mathematics/mathematica-13.0.0/work ... >>> Source compiled. >>> Test phase [not enabled]: sci-mathematics/mathematica-13.0.0 >>> Install sci-mathematics/mathematica-13.0.0 into /var/tmp/portage/sci-mathematics/mathematica-13.0.0/image * Removing MacOS- and Windows-specific files find: ‘AddOns’: No such file or directory find: ‘SystemFiles’: No such file or directory mv: cannot stat '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/work/opt': No such file or directory * ERROR: sci-mathematics/mathematica-13.0.0::gentoo failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 122: Called src_install * environment, line 1637: Called die * The specific snippet of code: * mv "${S}"/opt "${D}"/opt || die; * * If you need support, post the output of `emerge --info '=sci-mathematics/mathematica-13.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-mathematics/mathematica-13.0.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/temp/environment'. * Working directory: '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/work' * S: '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/work' >>> Failed to emerge sci-mathematics/mathematica-13.0.0, Log file: >>> '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/temp/build.log' * Messages for package sci-mathematics/mathematica-13.0.0: * ERROR: sci-mathematics/mathematica-13.0.0::gentoo failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 122: Called src_install * environment, line 1637: Called die * The specific snippet of code: * mv "${S}"/opt "${D}"/opt || die; * * If you need support, post the output of `emerge --info '=sci-mathematics/mathematica-13.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-mathematics/mathematica-13.0.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/temp/environment'. * Working directory: '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/work' * S: '/var/tmp/portage/sci-mathematics/mathematica-13.0.0/work'
After moving the PORTAGE_TEMPDIR to a bigger drive, I get the following results in terms of directory size: >>> Completed installing sci-mathematics/mathematica-13.0.0 into /var/portage/sci-mathematics/mathematica-13.0.0/image * Final size of build directory: 4998284 KiB ( 4.7 GiB) * Final size of installed tree: 14405944 KiB (13.7 GiB)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8604b22be0a1830f994501fc5dffbf53dac94d2 commit d8604b22be0a1830f994501fc5dffbf53dac94d2 Author: Huang Rui <vowstar@gmail.com> AuthorDate: 2022-08-07 15:50:22 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2022-08-08 17:29:07 +0000 sci-mathematics/mathematica: add 13.0.1 Fix ebuild QA problem and add missing RDEPEND Add cuda use flag and nvidia-cuda-toolkit RDEPEND Add R use flag and dev-lang/R RDEPEND Fix RPATH and add dev-util/patchelf as BDEPEND Add QT_QPA_PLATFORM="wayland;xcb" to fix problem on wayland Disable doc use flag by default Install icons from SystemFiles/FrontEnd/SystemResources/X Add myself as a maintainer (proxy-maint) Closes: https://bugs.gentoo.org/859793 Signed-off-by: Huang Rui <vowstar@gmail.com> Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-mathematics/mathematica/Manifest | 1 + .../mathematica/mathematica-13.0.1.ebuild | 160 +++++++++++++++++++++ sci-mathematics/mathematica/metadata.xml | 28 +++- 3 files changed, 185 insertions(+), 4 deletions(-)