Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388829 - icedtea:7 breaks packages (sandbox violation on /proc/self/coredump_filter)
Summary: icedtea:7 breaks packages (sandbox violation on /proc/self/coredump_filter)
Status: RESOLVED DUPLICATE of bug 388127
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 388937
  Show dependency tree
 
Reported: 2011-10-29 09:27 UTC by charles17
Modified: 2011-10-30 23:19 UTC (History)
0 users

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


Attachments
build.log (build.log,87.48 KB, text/plain)
2011-10-29 09:29 UTC, charles17
Details

Note You need to log in before you can comment on or make changes to this bug.
Description charles17 2011-10-29 09:27:50 UTC
sys-devel/gettext-0.18.1.1-r1 fails to build with icedtea:7

Reproducible: Always
Comment 1 charles17 2011-10-29 09:29:10 UTC
Created attachment 291125 [details]
build.log
Comment 2 Ralph Sennhauser (RETIRED) gentoo-dev 2011-10-29 16:05:57 UTC
The interesting part is:

checking whether to use Java... no
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for Java compiler... /etc/java-config-2/current-system-vm/bin/javac -target 1.1 -source 1.3
checking for jar... jar

Even so configure is told to disable java it still runs VM commands. So not only icedtea:7 is affected.


I propose to add the following to src_configure:

JAVAC="don't run those checks"

And for >sys-devel/gettext-0.18.1.1-r1 it would be 

use java || JAVAC="don't run those checks"
Comment 3 charles17 2011-10-30 08:31:05 UTC
(In reply to comment #2)
> [...] So not only icedtea:7 is affected. [...]

With dev-java/icedtea:6 as system vm there is not such problem.  It simply compiles.
Comment 4 Ralph Sennhauser (RETIRED) gentoo-dev 2011-10-30 08:42:08 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > [...] So not only icedtea:7 is affected. [...]
> 
> With dev-java/icedtea:6 as system vm there is not such problem.  It simply
> compiles.

icedtea:6 is about the only exception and probably the reason this issue came up only now.

Sandbox setup taken from java-utils-2.eclass

    local vendor="$(java-pkg_get-vm-vendor)"
    if [[ "${vendor}" == "sun" ]] && java-pkg_is-vm-version-ge "1.5" ; then
        addpredict "/dev/random"
    elif [[ "${vendor}" == "ibm" ]]; then
        addpredict "/proc/self/maps"
        addpredict "/proc/cpuinfo"
        addpredict "/proc/self/coredump_filter"
    elif [[ "${vendor}" == "oracle" ]]; then
        addpredict "/dev/random"
        addpredict "/proc/self/coredump_filter"
    elif [[ "${vendor}" == icedtea* ]] && java-pkg_is-vm-version-ge "1.7" ; then
        addpredict "/dev/random"
        addpredict "/proc/self/coredump_filter"
    elif [[ "${vendor}" == "jrockit" ]]; then
        addpredict "/proc/cpuinfo"
    fi
Comment 5 SpanKY gentoo-dev 2011-10-30 23:05:22 UTC
has nothing to do with gettext
Comment 6 SpanKY gentoo-dev 2011-10-30 23:19:19 UTC

*** This bug has been marked as a duplicate of bug 388127 ***