diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2024-09-29 02:00:00 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2024-09-29 02:00:00 +0200 |
commit | b1df929e1b017f66d87042474d72a0935028d499 (patch) | |
tree | 7a4aa94e06924abdb8ae37172bb6c0a5a422f26f /gnu | |
parent | 3d0668fe6667dabe71ee2840e75877f18399c1d9 (diff) | |
download | guix-b1df929e1b017f66d87042474d72a0935028d499.tar guix-b1df929e1b017f66d87042474d72a0935028d499.tar.gz |
gnu: src: Build from Git.
Upstream's Web server is currently misconfigured to serve:
content-type: application/x-gzip
content-encoding: gzip
resulting in an uncompressed tarball on arrival, and a hash mismatch.
The output built from Git is identical to that from the tarball, except
for some insignificant differences in the man page which is now built
from source.
* gnu/packages/version-control.scm (src)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
[native-inputs]: Add asciidoc.
Change-Id: I922055d439057d8fdab48acdc722a55fd43a1dde
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/version-control.scm | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 87186985e9..0096d3d829 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -3425,13 +3425,15 @@ specific files and directories.") (package (name "src") (version "1.32") - (source (origin - (method url-fetch) - (uri (string-append - "http://www.catb.org/~esr/src/src-" version ".tar.gz")) - (sha256 - (base32 - "0r9i399kkagpwj08nwf1f7c6lr50xjzzgmzwyjjy6ppgcc53a809")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/esr/src.git/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kxbmpjr98kfacjidizxcghl541fwnf8yzfvwfq5f9zbv42p8l41")))) (build-system gnu-build-system) (arguments (list @@ -3453,8 +3455,10 @@ specific files and directories.") (invoke "git" "config" "--global" "user.email" "guix") (invoke "./srctest")))))) (native-inputs - ;; For testing. - (list git perl)) + (list asciidoc + ;; For testing. + git + perl)) (inputs (list bash-minimal cssc |