Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 679280

Summary: net-p2p/syncthing-1.0.0 : failed to initialize build cache at /.../go-build: mkdir /.../cache: permission denied
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Marek Szuba <marecki>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 567192    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
net-p2p:syncthing-1.0.0:20190302-215228.log

Description Toralf Förster gentoo-dev 2019-03-02 22:40:14 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-p2p/syncthing-1.0.0/work/syncthing-1.0.0 ...
failed to initialize build cache at /root/cache/go-build: mkdir /root/cache: permission denied
 * ERROR: net-p2p/syncthing-1.0.0::gentoo failed (compile phase):
 *   build failed
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib-hardened_libressl_20190226-081914

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.32.0 *
java-config:
The following VMs are available for generation-2:


emerge -qpvO net-p2p/syncthing
[ebuild  N    ] net-p2p/syncthing-1.0.0  USE="(-selinux) -tools"
Comment 1 Toralf Förster gentoo-dev 2019-03-02 22:40:17 UTC
Created attachment 567498 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-03-02 22:40:20 UTC
Created attachment 567500 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-03-02 22:40:23 UTC
Created attachment 567502 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-03-02 22:40:26 UTC
Created attachment 567504 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-03-02 22:40:28 UTC
Created attachment 567506 [details]
net-p2p:syncthing-1.0.0:20190302-215228.log
Comment 6 Larry the Git Cow gentoo-dev 2019-03-15 10:53:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b67a7186692191fbee1b164af49fa66f04f3a785

commit b67a7186692191fbee1b164af49fa66f04f3a785
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2019-03-15 10:46:54 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2019-03-15 10:53:35 +0000

    net-p2p/syncthing: reset xdg environment
    
    Turns out go uses $XDG_CACHE_HOME to decide where to put the build
    cache. Make sure it, and to be on the safe side the rest of XDG
    environment as well, is reset before building Syncthing.
    
    We do not inherit xdg.eclass for this purpose because it introduces
    several dependencies we do not actually need.
    
    Closes: https://bugs.gentoo.org/679280
    Signed-off-by: Marek Szuba <marecki@gentoo.org>
    Package-Manager: Portage-2.3.62, Repoman-2.3.11

 net-p2p/syncthing/syncthing-1.0.1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)