Skip to content

Commit

Permalink
dev-libs/nss: disable seccomp sandbox for file(1) in bitness check
Browse files Browse the repository at this point in the history
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 <[email protected]>
Closes: gentoo#34308
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
thesamesam authored and juippis committed Dec 16, 2023
1 parent 1387931 commit 4a8259d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-libs/nss/nss-3.96.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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*) ;;
Expand Down

0 comments on commit 4a8259d

Please sign in to comment.