Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765706 - x11-libs/libpciaccess: sandbox violation when built with sys-devel/slibtool
Summary: x11-libs/libpciaccess: sandbox violation when built with sys-devel/slibtool
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-01-17 01:15 UTC by orbea
Modified: 2021-01-17 04:13 UTC (History)
0 users

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


Attachments
build log (build.log,58.70 KB, text/x-log)
2021-01-17 01:15 UTC, orbea
Details
emerge --info (emerge-info.txt,5.47 KB, text/plain)
2021-01-17 01:15 UTC, orbea
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)