gnu: file: Update to 5.41.

* gnu/packages/file.scm (file): Absorb file-next.
* gnu/packages/commencement.scm (file-boot0)[arguments]: Add make-flag
to set CFLAGS.
* gnu/packages/diffoscope.scm (diffoscope): Remove file-next.
* gnu/packages/python-xyz.scm (python-magic)[inputs]: Replace file-next
with file.
This commit is contained in:
Efraim Flashner 2022-01-27 11:10:01 +02:00
parent 0d41fe4855
commit 6ac6a7e020
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351
4 changed files with 4 additions and 23 deletions

View file

@ -2543,6 +2543,7 @@ (define file-boot0
#:implicit-inputs? #f
#:guile ,%bootstrap-guile
#:configure-flags '("--disable-bzlib")
#:make-flags '("CFLAGS+=-std=c11")
#:strip-binaries? #f
#:validate-runpath? #f
,@(package-arguments file)))))

View file

@ -34,7 +34,6 @@ (define-module (gnu packages diffoscope)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpio)
#:use-module (gnu packages dbm)
#:use-module (gnu packages file) ;for 'file-next'
#:use-module (gnu packages gettext)
#:use-module (gnu packages ghostscript)
#:use-module (gnu packages gnome)
@ -172,11 +171,6 @@ (define-public diffoscope
dtc
e2fsprogs
ffmpeg
;; XXX: Must be the same version as python-magic uses;
;; remove when 'file' is updated.
file-next
fpc
gettext-minimal
ghostscript

View file

@ -32,14 +32,14 @@ (define-module (gnu packages file)
(define-public file
(package
(name "file")
(version "5.39")
(version "5.41")
(source (origin
(method url-fetch)
(uri (string-append "ftp://ftp.astron.com/pub/file/file-"
version ".tar.gz"))
(sha256
(base32
"1lgs2w2sgamzf27kz5h7pajz7v62554q21fbs11n4mfrfrm2hpgh"))))
"0gv027jgdr0hdkw7m9ck0nwhq583f4aa7vnz4dzdbxv4ng3k5r8k"))))
(build-system gnu-build-system)
;; When cross-compiling, this package depends upon a native install of
@ -58,15 +58,3 @@ (define-public file
of the file. This package provides the libmagic library.")
(license bsd-2)
(home-page "https://www.darwinsys.com/file/")))
(define-public file-next
(package
(inherit file)
(version "5.41")
(source (origin
(method url-fetch)
(uri (string-append "http://ftp.astron.com/pub/file/file-"
version ".tar.gz"))
(sha256
(base32
"0gv027jgdr0hdkw7m9ck0nwhq583f4aa7vnz4dzdbxv4ng3k5r8k"))))))

View file

@ -15304,9 +15304,7 @@ (define-public python-magic
(list which))
(inputs
;; python-magic needs to be able to find libmagic.so.
;; Use a newer version because 5.39 returns bogus for some archives
;; (notably Chromium .crx extensions), which breaks e.g. 'diffoscope'.
(list file-next))
(list file))
(synopsis "File type identification using libmagic")
(description
"This module uses ctypes to access the libmagic file type