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

Bug 635000

Summary: sys-apps/openrc-0.33 sandbox violation with gold
Product: Gentoo Linux Reporter: Hadrien Lacour <hadrien.lacour>
Component: Current packagesAssignee: Sandbox Maintainers <sandbox>
Status: RESOLVED DUPLICATE    
Severity: normal CC: esigra, openrc, whissi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 269315    
Attachments: build log
emerge-info
environment

Description Hadrien Lacour 2017-10-21 15:33:42 UTC
Created attachment 499550 [details]
build log

* ACCESS DENIED:  symlinkat:    /tmp/portage/sys-apps/openrc-0.33.1/temp/bfd-linker/ld
ln: failed to create symbolic link '/tmp/portage/sys-apps/openrc-0.33.1/temp/bfd-linker/ld': Permission denied
>>> Completed installing openrc-0.33.1 into /tmp/portage/sys-apps/openrc-0.33.1/image/

 * Final size of build directory: 4564 KiB (4.4 MiB)
 * Final size of installed tree:  2772 KiB (2.7 MiB)

 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-2268.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: symlinkat
S: deny
P: /tmp/portage/sys-apps/openrc-0.33.1/temp/bfd-linker/ld
A: /tmp/portage/sys-apps/openrc-0.33.1/temp/bfd-linker/ld
R: /usr/x86_64-pc-linux-gnu/binutils-bin/2.28.1/ld.bfd
C: ln -sf /usr/bin/x86_64-pc-linux-gnu-ld.bfd /tmp/portage/sys-apps/openrc-0.33.1/temp/bfd-linker/ld
 * --------------------------------------------------------------------------------
Comment 1 Hadrien Lacour 2017-10-21 15:34:10 UTC
Created attachment 499552 [details]
emerge-info
Comment 2 Hadrien Lacour 2017-10-21 15:34:25 UTC
Created attachment 499554 [details]
environment
Comment 3 Hadrien Lacour 2017-10-26 18:17:55 UTC
Guess I'll add it to the gold tracker.
Comment 4 Hadrien Lacour 2017-11-17 11:17:49 UTC
Could you please at least force the use of ld.bfd until the problem is fixed? Changing the ld symlink every openrc update is a little annoying.
Comment 5 William Hubbs gentoo-dev 2017-12-01 19:31:13 UTC
After some discussion on IRC, this might be a sandbox bug, so I'm
assigning it there.

Please update and let me know.

Thanks,

William
Comment 6 William Hubbs gentoo-dev 2017-12-01 19:34:56 UTC
Please upgrade your sandbox package to 2.10-r4 then let us know whether
you still have the issue.

Thanks,

William
Comment 7 Thomas Deutschmann (RETIRED) gentoo-dev 2017-12-01 19:36:29 UTC
(In reply to Hadrien Lacour from comment #4)
> Could you please at least force the use of ld.bfd until the problem is
> fixed? Changing the ld symlink every openrc update is a little annoying.
No, we will not enforce a linker because this would clash with /etc/portage/package.env. And this is what you should use to set a different linker per package. See https://wiki.gentoo.org/wiki/Gold#package.env for more information.

Also, please upgrade sys-apps/sandbox to >=sys-apps/sandbox-2.10-r4 and maybe 2.12 for testing. There's a high chance that the symlinkat thing was already fixed.
Comment 8 Hadrien Lacour 2017-12-01 19:55:09 UTC
I don't have any violation with sandbox-2.10-r4 and openrc-0.34.11.
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2017-12-01 19:57:26 UTC
Thanks for confirming.

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