Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521368 - dev-java/antlr-2.7.7-r5: sandbox violation (mkdir of /lib/antlr)
Summary: dev-java/antlr-2.7.7-r5: sandbox violation (mkdir of /lib/antlr)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-28 10:25 UTC by Denis Lisov
Modified: 2014-09-04 16:08 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.log,20.70 KB, text/x-log)
2014-08-28 10:26 UTC, Denis Lisov
Details
full build log (antlr-2.7.7-r5:20140828-101050.log.gz,8.77 KB, application/gzip)
2014-08-28 10:27 UTC, Denis Lisov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Lisov 2014-08-28 10:25:31 UTC
When building dev-java/antlr-2.7.7-r5, the following error occurs

(...skipped until install...)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>                   
>> make -C lib/cpp/src install                          
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
make[1]: Entering directory '/var/tmp/portage/dev-java/antlr-2.7.7-r5/work/antlr-2.7.7/lib/cpp/src'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/var/tmp/portage/dev-java/antlr-2.7.7-r5/work/antlr-2.7.7/lib/cpp/src'
/usr/bin/python2.7 setup.py install --root=/var/tmp/portage/dev-java/antlr-2.7.7-r5/image/
running install
running build
running build_py
creating /lib/antlr
error: could not create '/lib/antlr': Permission denied
 * ERROR: dev-java/antlr-2.7.7-r5::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 5710:  Called distutils-r1_python_install
 *   environment, line 1192:  Called esetup.py 'install' '--root=/var/tmp/portage/dev-java/antlr-2.7.7-r5/image/'
 *   environment, line 2285:  Called die
 * The specific snippet of code:
 *       "${@}" || die
 * 
 * If you need support, post the output of `emerge --info '=dev-java/antlr-2.7.7-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/antlr-2.7.7-r5::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-7  CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea7"
JAVACFLAGS="+ -source 1.3 -target 1.3" COMPILER=""
and of course, the output of emerge --info =antlr-2.7.7
 * The complete build log is located at '/var/log/portage/full/build/dev-java/antlr-2.7.7-r5:20140828-101050.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/antlr-2.7.7-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/antlr-2.7.7-r5/work/antlr-2.7.7/lib/python'
 * S: '/var/tmp/portage/dev-java/antlr-2.7.7-r5/work/antlr-2.7.7'
 (null)*(null) --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 (null)*(null) LOG FILE: "/var/log/sandbox/sandbox-8467.log"
 (null)*(null) 
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: /lib/antlr
A: /lib/antlr
R: /lib64/antlr
C: /usr/bin/python2.7 setup.py install --root=/var/tmp/portage/dev-java/antlr-2.7.7-r5/image/ 
 (null)*(null) --------------------------------------------------------------------------------


Reproducible: Always
Comment 1 Denis Lisov 2014-08-28 10:26:13 UTC
Created attachment 383834 [details]
emerge --info
Comment 2 Denis Lisov 2014-08-28 10:27:19 UTC
Created attachment 383836 [details]
full build log
Comment 3 Rick Farina (Zero_Chaos) gentoo-dev 2014-09-04 15:03:42 UTC
I hit this as well. The relevant bit in the ebuild appears behind a USE=python conditional, so be sure you have USE=python to test.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-04 16:08:31 UTC
+  04 Sep 2014; Michał Górny <mgorny@gentoo.org> antlr-2.7.7-r5.ebuild:
+  Call proper distutils-r1 phases. Fixes bug #521368.