Created attachment 395208 [details] output of: emerge --info '=app-office/texmaker-4.4.1::gentoo' Texmaker compiles fine but fails to install due to permission denied issuses (did emerge it as root): make -j5 DESTDIR=/var/tmp/portage/app-office/texmaker-4.4.1/image/ install install -m 755 -p "texmaker" "/usr/bin/texmaker" mkdir: cannot create directory ‘/usr/share/texmaker/’: Permission denied install -m 644 -p /var/tmp/portage/app-office/texmaker-4.4.1/work/texmaker-4.4.1/utilities/texmaker.desktop /usr/share/applications/ Makefile:2597: recipe for target 'install_utilities' failed make: *** [install_utilities] Error 1 make: *** Waiting for unfinished jobs.... install -m 644 -p /var/tmp/portage/app-office/texmaker-4.4.1/work/texmaker-4.4.1/utilities/texmaker.png /usr/share/pixmaps/ /usr/bin/install: cannot create regular file ‘/usr/share/applications/texmaker.desktop’: Permission denied/usr/bin/install: cannot create regular file ‘/usr/bin/texmaker’: Permission denied Makefile:2588: recipe for target 'install_target' failed make: [install_target] Error 1 (ignored) Makefile:2865: recipe for target 'install_desktop' failed make: [install_desktop] Error 1 (ignored) /usr/bin/install: cannot create regular file ‘/usr/share/pixmaps/texmaker.png’: Permission denied Makefile:2875: recipe for target 'install_icon' failed make: [install_icon] Error 1 (ignored) * ERROR: app-office/texmaker-4.4.1::gentoo failed (install phase): * emake failed * * If you need support, post the output of `emerge --info '=app-office/texmaker-4.4.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-office/texmaker-4.4.1::gentoo'`. * The complete build log is located at '/var/log/portage/app-office:texmaker-4.4.1:20150130-140103.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-office/texmaker-4.4.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-office/texmaker-4.4.1/temp/environment'. * Working directory: '/var/tmp/portage/app-office/texmaker-4.4.1/work/texmaker-4.4.1' * S: '/var/tmp/portage/app-office/texmaker-4.4.1/work/texmaker-4.4.1' * --------------------------- ACCESS VIOLATION SUMMARY --------------------------- * LOG FILE: "/var/log/sandbox/sandbox-29768.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: texmaker/ A: /usr/share/texmaker R: /usr/share/texmaker C: mkdir -p /usr/share/texmaker/ F: open_wr S: deny P: /usr/share/applications/texmaker.desktop A: /usr/share/applications/texmaker.desktop R: /usr/share/applications/texmaker.desktop C: /usr/bin/install -m 644 -p /var/tmp/portage/app-office/texmaker-4.4.1/work/texmaker-4.4.1/utilities/texmaker.desktop /usr/share/applications/ F: open_wr S: deny P: /usr/bin/texmaker A: /usr/bin/texmaker R: /usr/bin/texmaker C: /usr/bin/install -m 755 -p texmaker /usr/bin/texmaker F: open_wr S: deny P: /usr/share/pixmaps/texmaker.png A: /usr/share/pixmaps/texmaker.png R: /usr/share/pixmaps/texmaker.png C: /usr/bin/install -m 644 -p /var/tmp/portage/app-office/texmaker-4.4.1/work/texmaker-4.4.1/utilities/texmaker.png /usr/share/pixmaps/ * --------------------------------------------------------------------------------
I am affected by this bug as well. I'll also attach the build.log
Created attachment 395218 [details] build.log
*** Bug 538326 has been marked as a duplicate of this bug. ***
+ 02 Feb 2015; Justin Lecher <jlec@gentoo.org> texmaker-4.4.1.ebuild: + Avoid sandbox violations on install with USE=qt4, #538246 +
An odd resolve imho. The problem seems to be in how the extra stuff are installed. Changing src_install to: src_install() { emake INSTALL_ROOT="${D}" install INSTALL_ROOT="${D}" einstalldocs INSTALL_ROOT="${D}" readme.gentoo_src_install } makes it not fail even with the qt5 use flag. Although, stuff seem to get installed twice.
'emerge texmaker' worked now also with texmaker-4.4.1.