[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/11: gnu: guile-next: Add '.tarball-version' file to get correct versi
From: |
guix-commits |
Subject: |
01/11: gnu: guile-next: Add '.tarball-version' file to get correct version. |
Date: |
Thu, 19 Jan 2023 11:57:16 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 75b7082bdf1ef1de9d4e2a0786120f051e7fffbd
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Jan 18 11:55:51 2023 +0100
gnu: guile-next: Add '.tarball-version' file to get correct version.
So far, "guile --version" and 'guile-3.0.pc' would use "UNKNOWN" as the
version string, making the package unsuitable as a drop-in replacement
for the 'guile-3.0' package.
* gnu/packages/guile.scm (guile-next)[arguments]: Add 'set-version'
phase.
---
gnu/packages/guile.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index a0ed572cc0..9148c1075a 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012-2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2012-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014 Cyril Roelandt <tipecaml@gmail.com>
;;; Copyright © 2014, 2016, 2018 David Thompson <davet@gnu.org>
;;; Copyright © 2014, 2017, 2018 Mark H Weaver <mhw@netris.org>
@@ -453,6 +453,16 @@ without requiring the source code to be rewritten.")
(substitute-keyword-arguments (package-arguments guile-3.0)
((#:phases phases '%standard-phases)
`(modify-phases ,phases
+ (add-before 'bootstrap 'set-version
+ (lambda _
+ ;; Tell 'git-version-gen' what version this is, or it will
+ ;; just pick "UNKNOWN", making it unusable as a replacement
+ ;; for 'guile-3.0'. XXX: This is inaccurate when using
+ ;; '--with-branch' but using (package-version this-package)
+ ;; wouldn't give us a valid version string.
+ (call-with-output-file ".tarball-version"
+ (lambda (port)
+ (display ,version port)))))
(add-before 'check 'skip-failing-tests
(lambda _
(substitute* "test-suite/standalone/test-out-of-memory"
- branch master updated (26bb41d6d5 -> 3846ceec4e), guix-commits, 2023/01/19
- 01/11: gnu: guile-next: Add '.tarball-version' file to get correct version.,
guix-commits <=
- 03/11: gnu: gnulib: Refer to "gcc" as provided via implicit package inputs., guix-commits, 2023/01/19
- 07/11: gnu: python-greenlet: Update to 2.0.1., guix-commits, 2023/01/19
- 06/11: gnu: Fix home-page typos, guix-commits, 2023/01/19
- 04/11: gnu: nettle: Fix mingw cross-compilation., guix-commits, 2023/01/19
- 05/11: gnu: hledger: Install documentation., guix-commits, 2023/01/19
- 02/11: gnu: guile-next: Really depend on self., guix-commits, 2023/01/19
- 09/11: gnu: python-eventlet: Manage broken tests with nosetests., guix-commits, 2023/01/19
- 08/11: gnu: python-gevent: Update to 22.10.2., guix-commits, 2023/01/19
- 11/11: gnu: Add petri-foo., guix-commits, 2023/01/19
- 10/11: gnu: python-eventlet: Exclude broken test., guix-commits, 2023/01/19