[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/12: gnu: gn: Update to 0.0-2072.1c4151f.
From: |
guix-commits |
Subject: |
02/12: gnu: gn: Update to 0.0-2072.1c4151f. |
Date: |
Thu, 1 Dec 2022 18:25:08 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit c02a77bdd6a54f1b2d8c503c5f5db101ad6c962d
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Nov 28 04:28:03 2022 +0100
gnu: gn: Update to 0.0-2072.1c4151f.
* gnu/packages/build-tools.scm (gn): Update to 0.0-2072.1c4151f.
[arguments]: Adjust create-last-commit-position phase to be identical with
upstream code.
---
gnu/packages/build-tools.scm | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm
index 8627f699a1..cd6ff53a21 100644
--- a/gnu/packages/build-tools.scm
+++ b/gnu/packages/build-tools.scm
@@ -204,8 +204,8 @@ programs and other files depend.")
(license license:bsd-3)))
(define-public gn
- (let ((commit "e327ffdc503815916db2543ec000226a8df45163")
- (revision "1819")) ;as returned by `git describe`, used
below
+ (let ((commit "1c4151ff5c1d6fbf7fa800b8d4bb34d3abc03a41")
+ (revision "2072")) ;as returned by `git describe`, used
below
(package
(name "gn")
(version (git-version "0.0" revision commit))
@@ -215,7 +215,7 @@ programs and other files depend.")
(uri (git-reference (url home-page) (commit commit)))
(sha256
(base32
- "0kvlfj3www84zp1vmxh76x8fdjm9hyk8lkh2vdsidafpmm75fphr"))
+ "02621c9nqpr4pwcapy31x36l5kbyd0vdgd0wdaxj5p8hrxk67d6b"))
(file-name (git-file-name name version))))
(build-system gnu-build-system)
(arguments
@@ -230,15 +230,21 @@ programs and other files depend.")
"--no-last-commit-position")))
(add-after 'configure 'create-last-commit-position
(lambda _
- ;; Create "last_commit_position.h" to avoid a
dependency
- ;; on 'git' (and the checkout..).
+ ;; Mimic GenerateLastCommitPosition from gen.py.
(call-with-output-file "out/last_commit_position.h"
(lambda (port)
(format port
- (string-append
- "#define LAST_COMMIT_POSITION_NUM ~a\n"
- "#define LAST_COMMIT_POSITION \"~a
(~a)\"\n")
- ,revision ,revision ,(string-take commit
8))))))
+ "// Generated by Guix.
+
+#ifndef OUT_LAST_COMMIT_POSITION_H_
+#define OUT_LAST_COMMIT_POSITION_H_
+
+#define LAST_COMMIT_POSITION_NUM ~a
+#define LAST_COMMIT_POSITION \"~a (~a)\"
+
+#endif // OUT_LAST_COMMIT_POSITION_H_
+"
+ ,revision ,revision ,(string-take commit
12))))))
(replace 'build
(lambda _
(invoke "ninja" "-C" "out" "gn"
- branch master updated (00ddf185e6 -> 2775bb95c7), guix-commits, 2022/12/01
- 03/12: gnu: gn: Remove input labels., guix-commits, 2022/12/01
- 07/12: gnu: svt-av1: Update to 1.3.0., guix-commits, 2022/12/01
- 06/12: gnu: QtWebEngine: Simplify code to remove third-party files., guix-commits, 2022/12/01
- 01/12: gnu: balsa: Fix build., guix-commits, 2022/12/01
- 05/12: gnu: qtwebengine@6: Fix third-party code removal snippet., guix-commits, 2022/12/01
- 10/12: gnu: harfbuzz: Add 5.3.1., guix-commits, 2022/12/01
- 12/12: gnu: ungoogled-chromium: Update to 108.0.5359.71-1., guix-commits, 2022/12/01
- 08/12: gnu: balsa: Add release-monitoring-url., guix-commits, 2022/12/01
- 09/12: gnu: balsa: Update to 2.6.4., guix-commits, 2022/12/01
- 02/12: gnu: gn: Update to 0.0-2072.1c4151f.,
guix-commits <=
- 11/12: gnu: ungoogled-chromium: Generalize OpenJPEG substitution., guix-commits, 2022/12/01
- 04/12: gnu: gn: Use G-expression., guix-commits, 2022/12/01