Browse Source

Enable seccomp support. Closes: #917930

Christoph Biedl 1 year ago
parent
commit
cdf06b5a23

+ 1 - 0
debian/control

@@ -5,6 +5,7 @@ Standards-Version: 4.1.5
 Vcs-Browser: https://git.in-ulm.de/cbiedl/file
 Vcs-Git: https://git.in-ulm.de/cbiedl/file.git
 Build-Depends: debhelper (>= 11~),
+    libseccomp-dev,
     zlib1g-dev,
 Priority: standard
 Section: utils

+ 12 - 2
debian/file.README.Debian

@@ -1,5 +1,8 @@
 file for Debian
----------------
+===============
+
+additional magic files
+----------------------
 
 How users can inject their own magics for fun:
 
@@ -23,4 +26,11 @@ How package maintainers can inject their own magics for profit:
 
   4. profit.
 
- -- Daniel Baumann <mail@daniel-baumann.ch>  Sat, 27 Mar 2010 11:22:58 +0100
+
+seccomp support
+---------------
+
+Starting with version 1:5.37-1, file is built using libseccomp. This
+will introduce a regression if applications call the program with the
+--uncompress option, and file(1) needs the help of external programs
+for uncompression.

+ 0 - 18
debian/patches/local.manpage-seccomp-is-disabled.patch

@@ -1,18 +0,0 @@
-Subject: Clarify manpage: seccomp is disabled for the time being
-Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
-Date: 2019-01-11
-Bug-Debian: https://bugs.debian.org/917930
-
---- a/doc/file.man
-+++ b/doc/file.man
-@@ -368,6 +368,10 @@
- i.e. when the
- .Fl z
- flag is specified and the built-in decompressors are not available.
-+.Pp
-+.Em Note:
-+This Debian version of file was built without seccomp support, so this option
-+has no effect.
- .It Fl v , Fl Fl version
- Print the version of the program and exit.
- .It Fl z , Fl Fl uncompress

+ 0 - 1
debian/patches/series

@@ -9,4 +9,3 @@ local.mention-posixly-correct-dependent-behaviour-in-usage-message.patch
 local.disable-detection-of-vax-coff-executables.patch
 local.disable-algol68-detection.patch
 local.extra-magic.patch
-local.manpage-seccomp-is-disabled.patch