Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410211 - sci-libs/nlopt-2.2.4 sandbox violation when matlab present
Summary: sci-libs/nlopt-2.2.4 sandbox violation when matlab present
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-30 07:52 UTC by Jure Varlec
Modified: 2012-04-01 05:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Varlec 2012-03-30 07:52:52 UTC
sci-libs/nlopt has an automagic dependency on Matlab. When the configure script detects Matlab, it attempts to start it in order to get information from it. Matlab requires R/W access to files outside the sandbox, causing violation.

Workaround: emerge with EXTRA_ECONF='--without-matlab'

Gentoo could either decide to not support Matlab and disable the automagic dependency, or provide a sandbox exception and an einfo notice to rebuild sci-libs/nlopt when (un)installing Matlab. I am in favor of the first option since automatically running a massive proprietary package outside a sandbox doesn't sound very wise. Unless /dev/ptmx (see sandbox log below) is really the only thing accessed.

Reproducible: Always

Steps to Reproduce:
1. emerge sci-libs/nlopt

Actual Results:  
Sandbox violation

Expected Results:  
sci-libs/nlopt successfuly installed

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: open_wr
S: deny
P: /dev/ptmx
A: /dev/ptmx
R: /dev/ptmx
C: /usr/local/matlab/bin/glnxa64/MATLAB -nodisplay -r path;quit -nojvm
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-04-01 05:25:46 UTC
+  01 Apr 2012; Justin Lecher <jlec@gentoo.org> nlopt-2.2.4.ebuild,
+  metadata.xml:
+  Disable build of matlab plugin per default, #410211
+