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

Bug 765706

Summary: x11-libs/libpciaccess: sandbox violation when built with sys-devel/slibtool
Product: Gentoo Linux Reporter: orbea <orbea>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 765709    
Attachments: build log
emerge --info

Description orbea 2021-01-17 01:15:02 UTC
Created attachment 683221 [details]
build log

When building libpciaccess with slibtool the ebuild fails.

  MAKEFLAGS='LIBTOOL=rlibtool' emerge -av1 x11-libs/libpciaccess

This is because the build contains this line.

  /bin/sh libtool --mode=install "$(type -P install)" -c scanpci/scanpci "${ED}"/usr/bin || die

Which obvious will not work when the rest of the build was done with slibtool. Even worse it fails because GNU libtool decides that instead of installing the file it will execute it and triggers a sandbox violation.

If '/bin/sh libtool' is replaced with 'rlibtool' the build works just fine. A better solution would be to patch the build system directly instead of executing libtool manually.
Comment 1 orbea 2021-01-17 01:15:29 UTC
Created attachment 683224 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2021-01-17 02:16:37 UTC
The bug has been closed via the following commit(s):

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

commit 970bdc895c2c3b5ca2a1fb3c3c56c83ec97ed14f
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-01-17 02:15:17 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-01-17 02:16:14 +0000

    x11-libs/libpciaccess: Use autotools to install scanpci
    
    Closes: https://bugs.gentoo.org/765706
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 x11-libs/libpciaccess/libpciaccess-0.16.ebuild | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)