diff mbox series

[bug#45191] Improve reproducibility of package ECL

Message ID 864kko4orm.fsf@163.com
State Accepted
Headers show
Series [bug#45191] Improve reproducibility of package ECL | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue

Commit Message

Zhu Zihao Dec. 14, 2020, 11:21 a.m. UTC
Guillaume Le Vaillant writes:

> Zhu Zihao <all_but_last@163.com> skribis:
>
>> +             (use-modules (ice-9 ftw))
>> +             (let* ((lib (string-append (assoc-ref outputs "out") "/lib"))
>> +                    (dir (car (scandir lib (lambda (x)
>> +                                             (string-prefix? "ecl-" x))))))
>> +               (delete-file (string-append lib "/" dir "/build-stamp")))
>
> Wouldn't something like the following suffice?
>
> --8<---------------cut here---------------start------------->8---
> (delete-file (string-append (assoc-ref outputs "out")
>                             "/lib/ecl-" ,version "/build-stamp"))
> --8<---------------cut here---------------end--------------->8---


Changed and submit a new patch now.

Actually I hope upstream can help fix this problem[1](e.g. Add a configure
option --disable-time-stamp) but get no reply
[1]: https://gitlab.com/embeddable-common-lisp/ecl/-/issues/616

Comments

Guillaume Le Vaillant Dec. 14, 2020, 1:55 p.m. UTC | #1
Pushed as e3f538969ef250b5a4a720834f9f6e54aaf72a19 and following.
Thanks.
diff mbox series

Patch

From 1554e044a3e2eede8bf4637395ca4da2388d8e9e Mon Sep 17 00:00:00 2001
From: Zhu Zihao <all_but_last@163.com>
Date: Sat, 12 Dec 2020 10:34:37 +0800
Subject: [PATCH 2/2] gnu: ecl: Remove build-stamp to improve reproducibility.

* gnu/packages/lisp.scm(ecl)[arguments]<phases>: Add "remove-build-stamp" phase.
Move "wrap" phase after "remove-build-stamp" phase.
---
 gnu/packages/lisp.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 4592724867..f250e8804b 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -16,6 +16,7 @@ 
 ;;; Copyright © 2019 Jesse Gildersleve <jessejohngildersleve@protonmail.com>
 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -258,7 +259,12 @@  interface to the Tk widget system.")
                     (contrib-asdf "contrib/asdf/asdf.lisp"))
                (copy-file guix-asdf contrib-asdf))
              #t))
-         (add-after 'install 'wrap
+         (add-after 'install 'remove-build-stamp
+           (lambda* (#:key outputs #:allow-other-keys)
+             (delete-file (string-append (assoc-ref outputs "out")
+                                         "/lib/ecl-" ,version "/build-stamp"))
+             #t))
+         (add-after 'remove-build-stamp 'wrap
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let* ((ecl (assoc-ref outputs "out"))
                     (input-path (lambda (lib path)
-- 
2.29.2