commit:     4a8259d53400b26766eec198df9ca9cf9dae9668
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 16 08:37:15 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Dec 16 09:53:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a8259d5

dev-libs/nss: disable seccomp sandbox for file(1) in bitness check

We just built the file that file(1) is being used on, so it's entirely safe.

We don't need the sandboxing here which leads to a confusing error if file(1)
bails out.

Bug: https://bugs.gentoo.org/915890
Signed-off-by: Sam James <sam <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/34308
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/nss/nss-3.96.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/nss/nss-3.96.ebuild b/dev-libs/nss/nss-3.96.ebuild
index 35503a7b5874..68af01795644 100644
--- a/dev-libs/nss/nss-3.96.ebuild
+++ b/dev-libs/nss/nss-3.96.ebuild
@@ -114,7 +114,7 @@ nssbits() {
        # TODO: Port this to toolchain-funcs 
tc-get-ptr-size/tc-get-build-ptr-size
        echo > "${T}"/test.c || die
        ${cc} ${!cppflags} ${!cflags} -fno-lto -c "${T}"/test.c -o 
"${T}/${1}test.o" || die
-       case $(file "${T}/${1}test.o") in
+       case $(file -S "${T}/${1}test.o") in
                *32-bit*x86-64*) echo USE_X32=1;;
                *64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
                *32-bit*|*ppc*|*i386*) ;;

Reply via email to