Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762619 - dev-java/gwt-2.8.2 : sandbox issue
Summary: dev-java/gwt-2.8.2 : sandbox issue
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Mark Wright
Keywords: PullRequest
: 763639 (view as bug list)
Depends on:
Reported: 2020-12-30 10:33 UTC by Toralf Förster
Modified: 2021-06-11 09:51 UTC (History)
11 users (show)

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

emerge-info.txt (emerge-info.txt,17.50 KB, text/plain)
2020-12-30 10:33 UTC, Toralf Förster
dev-java:gwt-2.8.2:20201230-093821.log (dev-java:gwt-2.8.2:20201230-093821.log,66.17 KB, text/plain)
2020-12-30 10:33 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,423.18 KB, text/plain)
2020-12-30 10:33 UTC, Toralf Förster
etc.portage.tbz2 (etc.portage.tbz2,34.98 KB, application/x-bzip)
2020-12-30 10:33 UTC, Toralf Förster
logs.tbz2 (logs.tbz2,7.12 KB, application/x-bzip)
2020-12-30 10:33 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-12-30 10:33:18 UTC
Bummer, sandbox file does not exist: /var/tmp/portage/dev-java/gwt-2.8.2/temp/sandbox.log


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-20201219-112410


gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.1
 [3] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
Available Python interpreters, in order of preference:
  [1]   python3.9
  [2]   python3.8 (fallback)
  [3]   python3.6 (fallback)
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-1.48.0 *
The following VMs are available for generation-2:
1)	JamVM JDK 2.0.0 [jamvm]
*)	AdoptOpenJDK 8.272_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   jamvm 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed Dec 30 09:05:18 AM UTC 2020

emerge -qpvO dev-java/gwt
[ebuild  N    ] dev-java/gwt-2.8.2  USE="-source"
Comment 1 Toralf Förster gentoo-dev 2020-12-30 10:33:19 UTC
Created attachment 680275 [details]
Comment 2 Toralf Förster gentoo-dev 2020-12-30 10:33:20 UTC
Created attachment 680278 [details]
Comment 3 Toralf Förster gentoo-dev 2020-12-30 10:33:23 UTC
Created attachment 680281 [details]
Comment 4 Toralf Förster gentoo-dev 2020-12-30 10:33:24 UTC
Created attachment 680284 [details]
Comment 5 Toralf Förster gentoo-dev 2020-12-30 10:33:25 UTC
Created attachment 680287 [details]
Comment 6 Robert Greener 2021-01-16 21:05:07 UTC
Any idea on what could fix this, at least until a fix is pushed? It's preventing Rstudio being installed. It would be *much* appreciated :)
Comment 7 François Bissey 2021-01-18 01:01:53 UTC
I have similar sandboxing issue with different software, normally when you run emerge the HOME is set to "${PORTAGE_BUILDDIR}/homedir" (, but it seems that when you run java to build things with emerge, it is ignored and portage's normal home is used.

There should be many ebuilds affected. I would think the problems are in the java virtual implementation, may be there is an eclass to inherit to set things right. I have trouble when using icedtea-bin and this bug started with openJDK-bin.
Comment 8 Pacho Ramos gentoo-dev 2021-01-18 16:57:18 UTC
*** Bug 763639 has been marked as a duplicate of this bug. ***
Comment 9 Pacho Ramos gentoo-dev 2021-01-18 20:26:08 UTC
CCing openjdk maintainers as maybe they know what variable we need to tweak :/
Comment 10 Bartłomiej Kamiński 2021-02-05 14:43:04 UTC
I found that symlinking /var/lib/portage/home/.java to ${PORTAGE_BUILDDIR}/homedir/.java works as a temporary workaround - I managed to build the package by doing that.
Comment 11 wolfgang 2021-03-11 15:28:44 UTC
> I found that symlinking /var/lib/portage/home/.java to
> ${PORTAGE_BUILDDIR}/homedir/.java works as a temporary workaround - I managed
> to build the package by doing that.

I can confirm, this works as a temporary workaround for me too.
Comment 12 Anthony Staines 2021-05-26 20:27:54 UTC
Worked for me - full details for people like me from an answer in the forum by fedeliallalinea -

This sequence works


# ebuild $(portageq get_repo_path / gentoo)/dev-java/gwt/gwt-2.8.2.ebuild unpack

Then set the symlink

# ln -s $(portageq get_repo_path / gentoo)/dev-java/gwt/homedir /var/lib/portage/hiome/.java

Then finish the emerge

# ebuild $(portageq get_repo_path / gentoo)/dev-java/gwt/gwt-2.8.2.ebuild merge

Comment 13 Georgy Yakovlev gentoo-dev 2021-05-27 06:02:37 UTC
I don't know the variable, but looks it for some reason uses portage user homedir defined in /etc/passwd instead of $HOME value set at build time.

maybe something trying to be way to smart and uses getpwnam to get the dir instead of env?
Comment 14 Georgy Yakovlev gentoo-dev 2021-05-27 06:09:58 UTC
maybe try setting -Duser.home ?

ANT_OPTS="-Duser.home=${T}" may help. some ebuilds do that or similar trick.
Comment 15 Georgy Yakovlev gentoo-dev 2021-05-27 06:10:51 UTC
and sorry for delay =)
Comment 16 Larry the Git Cow gentoo-dev 2021-06-11 09:51:16 UTC
The bug has been referenced in the following commit(s):

commit cc67cd13dc32e350a03f875ce56dcd7b4e84510e
Author:     Wolfgang E. Sanyer <>
AuthorDate: 2021-04-01 20:51:37 +0000
Commit:     Miroslav Šulc <>
CommitDate: 2021-06-11 09:51:07 +0000

    dev-java/gwt: bump to 2.9.0
    This resolves the two bugs references below, but does not close them
    since they still exist in the older version of this ebuild.
    Signed-off-by: Wolfgang E. Sanyer <>
    Signed-off-by: Miroslav Šulc <>

 dev-java/gwt/Manifest                              |  2 +
 .../gwt/files/gwt-2.9.0-jsinterop-classpath.patch  | 20 +++++
 .../gwt/files/gwt-2.9.0-remove-git-usage.patch     | 26 ++++++
 dev-java/gwt/gwt-2.9.0.ebuild                      | 96 ++++++++++++++++++++++
 4 files changed, 144 insertions(+)