Created attachment 724120 [details] build log The current git head of mail-client/roundcube-9999 fails to install due to what looks like an attempted access of the filesystem during the ebuild installation: >>> Source unpacked in /var/tmp/portage/mail-client/roundcube-9999/work >>> Preparing source in /var/tmp/portage/mail-client/roundcube-9999/work/roundcube-9999 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/mail-client/roundcube-9999/work/roundcube-9999 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/mail-client/roundcube-9999/work/roundcube-9999 ... make -j2 rm -rf roundcubemail-git npm install -g uglify-js rm -rf roundcubemail-1.5-rc* * ACCESS DENIED: mkdir: /usr/lib64/node_modules/uglify-js npm notice npm notice New minor version of npm available! 7.18.1 -> 7.20.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.20.0 npm notice Run npm install -g npm@7.20.0 to update! npm notice npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/lib64/node_modules/uglify-js npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/lib64/node_modules/uglify-js' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/lib64/node_modules/uglify-js'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/lib64/node_modules/uglify-js' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /var/tmp/portage/mail-client/roundcube-9999/homedir/.npm/_logs/2021-07-16T08_38_59_473Z-debug.log make: *** [Makefile:59: buildtools] Error 243 * ERROR: mail-client/roundcube-9999::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=mail-client/roundcube-9999::gentoo'`, * the complete build log and the output of `emerge -pqv '=mail-client/roundcube-9999::gentoo'`. * The complete build log is located at '/var/tmp/portage/mail-client/roundcube-9999/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/mail-client/roundcube-9999/temp/environment'. * Working directory: '/var/tmp/portage/mail-client/roundcube-9999/work/roundcube-9999' * S: '/var/tmp/portage/mail-client/roundcube-9999/work/roundcube-9999' * --------------------------- ACCESS VIOLATION SUMMARY --------------------------- * LOG FILE: "/var/tmp/portage/mail-client/roundcube-9999/temp/sandbox.log" * VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: mkdir S: deny P: /usr/lib64/node_modules/uglify-js A: /usr/lib64/node_modules/uglify-js R: /usr/lib64/node_modules/uglify-js C: npm install uglify-js * -------------------------------------------------------------------------------- >>> Failed to emerge mail-client/roundcube-9999, Log file: >>> '/var/tmp/portage/mail-client/roundcube-9999/temp/build.log' * Messages for package mail-client/roundcube-9999: * ERROR: mail-client/roundcube-9999::gentoo failed (compile phase): * emake failed This is being built as root but clearly the package is trying to install outside of the sandbox. Version 1.5_rc works fine, it is only -9999 that fails to build. This ebuild did work until a few weeks ago and this breakage is quite recent.
Please post your emerge --info too
Created attachment 724309 [details] emerge --info output As requested
I have bisected down, and this upstream commit breaks the git -9999 build: Repo: https://github.com/roundcube/roundcubemail/commits/master Offending commit: https://github.com/roundcube/roundcubemail/commit/1a646f30ee03ade0d836c154f763e752a7e7a508 I wonder if removing that Makefile during the ebuild will fix the issue seeing as that commit simply adds that Makefile but does not touch any other files.
This patch fixes the problem. With this patch applied, -9999 installs again. --- roundcube-9999.ebuild.orig 2021-07-07 18:30:17.740000000 +1000 +++ roundcube-9999.ebuild 2021-08-01 21:45:08.890000000 +1000 @@ -59,6 +59,8 @@ if [[ "${PV}" == *9999* ]]; then git-r3_src_unpack pushd "${S}" > /dev/null || die + # Remove this Makefile else this breaks under Gentoo sandbox + rm -f Makefile || die mv composer.json-dist composer.json || die composer install --no-dev || die ./bin/install-jsdeps.sh || die
Thank you!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b39bca4dc63fbc53a3346e50180ed216354231ff commit b39bca4dc63fbc53a3346e50180ed216354231ff Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2021-08-02 00:36:15 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2021-08-02 00:44:51 +0000 mail-client/roundcube: remove Makefile in -9999 Closes: https://bugs.gentoo.org/802411 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Craig Andrews <candrews@gentoo.org> mail-client/roundcube/roundcube-9999.ebuild | 1 + 1 file changed, 1 insertion(+)