Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538246 - app-office/texmaker-4.4.1 - sandbox violations everywhere // install: cannot remove ‘/usr/bin/texmaker’install: cannot remove ‘/usr/share/texmaker/doc1.png’: Permission denied: Permission denied ...
Summary: app-office/texmaker-4.4.1 - sandbox violations everywhere // install: cannot ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
: 538326 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-30 14:11 UTC by dashmz
Modified: 2015-02-14 11:46 UTC (History)
7 users (show)

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


Attachments
output of: emerge --info '=app-office/texmaker-4.4.1::gentoo' (emerge_info.txt,5.65 KB, text/plain)
2015-01-30 14:11 UTC, dashmz
Details
build.log (texmaker-4.4.1-build.log,234.58 KB, text/plain)
2015-01-30 17:05 UTC, Daniel Schulte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dashmz 2015-01-30 14:11:17 UTC
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/ 
 * --------------------------------------------------------------------------------
Comment 1 Daniel Schulte 2015-01-30 17:02:11 UTC
I am affected by this bug as well. I'll also attach the build.log
Comment 2 Daniel Schulte 2015-01-30 17:05:19 UTC
Created attachment 395218 [details]
build.log
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-31 10:27:49 UTC
*** Bug 538326 has been marked as a duplicate of this bug. ***
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2015-02-02 08:43:30 UTC
+  02 Feb 2015; Justin Lecher <jlec@gentoo.org> texmaker-4.4.1.ebuild:
+  Avoid sandbox violations on install with USE=qt4, #538246
+
Comment 5 Tamas Jantvik 2015-02-02 09:07:49 UTC
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.
Comment 6 Juergen Rose 2015-02-14 11:46:04 UTC
'emerge texmaker' worked now also with texmaker-4.4.1.