[packages/file] add seccomp bcond so it's possible to disable on %{x8664}

atler atler at pld-linux.org
Mon Apr 19 15:50:33 CEST 2021


commit abfd1429b7c79e6d0342a5599178eefcaac31250
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Apr 19 15:46:13 2021 +0200

    add seccomp bcond so it's possible to disable on %{x8664}
    
    `file -z *jar` results in "invalid system call"

 file.spec | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/file.spec b/file.spec
index b114b17..aa76a82 100644
--- a/file.spec
+++ b/file.spec
@@ -4,6 +4,11 @@
 %bcond_without	python3		# CPython 3.x python-magic module
 %bcond_without	static_libs	# static library
 %bcond_without	tests		# unit tests
+%bcond_without	seccomp		# SECCOMP support
+
+%ifnarch %{x8664}
+%undefine	with_seccomp
+%endif
 
 Summary:	A utility for determining file types
 Summary(cs.UTF-8):	Program pro zjišťování typu souborů
@@ -298,9 +303,7 @@ cp -a python py3
 %{__autoheader}
 %{__automake}
 %configure \
-%ifnarch %{x8664}
-	--disable-libseccomp \
-%endif
+	%{!?with_seccomp:--disable-libseccomp} \
 	--disable-silent-rules \
 	--enable-fsect-man5 \
 	%{?with_static_libs:--enable-static}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/file.git/commitdiff/abfd1429b7c79e6d0342a5599178eefcaac31250



More information about the pld-cvs-commit mailing list