gnu: fakechroot: Update to PR #85 to build against glibc 2.33.

The latest release, 2.20.1, fails to build against glibc 2.33.  Build
the code submitted as pull request #85 instead of the latest release.

* gnu/packages/linux.scm (fakechroot)[source]: Change to
'git-reference'.  Use other source.
[native-inputs]: New field.
This commit is contained in:
Ludovic Courtès 2021-10-16 23:25:55 +02:00
parent 1e631e4669
commit 258bbc4fdc
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -8052,34 +8052,42 @@ (define-public fakeroot
(license license:gpl3+)))) (license license:gpl3+))))
(define-public fakechroot (define-public fakechroot
(package ;; XXX: Build from the change submitted at
(name "fakechroot") ;; <https://github.com/dex4er/fakechroot/pull/85> to allow compilation
(version "2.20.1") ;; against glibc 2.33. Switch back to the official repository on the next
(source (origin ;; release.
(method url-fetch) (let ((commit "e7c1f3a446e594a4d0cce5f5d499c9439ce1d5c5")
(uri (string-append (revision "0"))
"https://github.com/dex4er/fakechroot/releases/download/" (package
version "/fakechroot-" version ".tar.gz")) (name "fakechroot")
(sha256 (version (git-version "2.20.1" revision commit))
(base32 (source (origin
"1aijkd0b45wav25v01qhw8zxwa3pl0nnp9fabmmy1nlx7hr09gas")))) (method git-fetch)
(build-system gnu-build-system) (uri (git-reference
(arguments (url "https://github.com/lipnitsk/fakechroot")
;; XXX: The tests heavily assume they run on an FHS system so for now (commit commit)))
;; skip them. (file-name (git-file-name name version))
'(#:tests? #f (sha256
#:configure-flags '("--disable-static"))) (base32
(synopsis "Emulate @code{chroot} by overriding file system calls") "0gac6a6djx3nf343vd33sr5qqngz8ss3aij54zl8x9wb47pc11kb"))))
(description (build-system gnu-build-system)
"@command{fakechroot} runs a command in an environment were is additional (arguments
;; XXX: The tests heavily assume they run on an FHS system so for now
;; skip them.
'(#:tests? #f
#:configure-flags '("--disable-static")))
(native-inputs (list autoconf automake libtool perl))
(synopsis "Emulate @code{chroot} by overriding file system calls")
(description
"@command{fakechroot} runs a command in an environment were is additional
possibility to use @code{chroot} command without root privileges. This is possibility to use @code{chroot} command without root privileges. This is
useful for allowing users to create own chrooted environment with possibility useful for allowing users to create own chrooted environment with possibility
to install another packages without need for root privileges. to install another packages without need for root privileges.
It works by providing @file{libfakechroot.so}, a shared library meant to be It works by providing @file{libfakechroot.so}, a shared library meant to be
set as @code{LD_PRELOAD} to override the C library file system functions.") set as @code{LD_PRELOAD} to override the C library file system functions.")
(home-page "https://github.com/dex4er/fakechroot/") (home-page "https://github.com/dex4er/fakechroot/")
(license license:lgpl2.1+))) (license license:lgpl2.1+))))
(define-public inputattach (define-public inputattach
(package (package