GNU bug report logs - #41568
[PATCH 0/1] Fix: make update-guix-package

Previous Next

Package: guix-patches;

Reported by: Vincent Legoll <vincent.legoll <at> gmail.com>

Date: Wed, 27 May 2020 21:12:02 UTC

Severity: normal

Tags: patch

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41568 in the body.
You can then email your comments to 41568 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#41568; Package guix-patches. (Wed, 27 May 2020 21:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vincent Legoll <vincent.legoll <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 27 May 2020 21:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vincent Legoll <vincent.legoll <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/1] Fix: make update-guix-package
Date: Wed, 27 May 2020 23:11:51 +0200
I was trying to build the binary tarball to test changes, and stumbled 
upon the following failure:

------------->8------------------------------------------8<-----------
$ make update-guix-package
git rev-parse HEAD
915b949cfd8f41cac550c641ed0f9a1cf37f4d42
./pre-inst-env 
"/gnu/store/cqp4hvbfi8y3g8v61jrpi875wc0iqx9q-profile/bin/guile"			\
   ./build-aux/update-guix-package.scm	\
   "`git rev-parse HEAD`"
Backtrace:
In ice-9/boot-9.scm:
  1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
          12 (apply-smob/0 #<thunk 7f5bdb96d980>)
In ice-9/boot-9.scm:
    718:2 11 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8 10 (_ #(#(#<directory (guile-user) 7f5bdb58ff00>)))
In ice-9/boot-9.scm:
   2806:4  9 (save-module-excursion _)
  4351:12  8 (_)
  1736:10  7 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
   630:22  6 (thunk)
In build-aux/update-guix-package.scm:
    116:9  5 (_ #<store-connection 256.99 7f5bdb9a23c0>)
In guix/utils.scm:
   308:22  4 (edit-expression _ #<procedure 7f5bc23f3000 at build-a…> …)
In build-aux/update-guix-package.scm:
    78:30  3 (_ "(let ((version \"1.1.0\")\n        (commit \"bdc801…")
In guix/base32.scm:
   144:17  2 (_ _)
   114:17  1 (bytevector-quintet-fold-right #<procedure 7f5bd94114e…> …)
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure bv-length: Wrong type argument in position 1 (expecting 
bytevector): #<content-hash 
sha256:1wf30g45kh4nmcapd4vrcl6m2wjzly7v7dv8z0r584770i2yh836>
make: *** [Makefile:6323: update-guix-package] Error 1
------------->8------------------------------------------8<-----------

I copied the modification from:
c7d2dd69004b020de5d86898d2497ab3c8435c37

To fix it, is this the right thing to do ?

-- 
Vincent Legoll




Information forwarded to guix-patches <at> gnu.org:
bug#41568; Package guix-patches. (Wed, 27 May 2020 21:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 41568 <at> debbugs.gnu.org (full text, mbox):

From: Vincent Legoll <vincent.legoll <at> gmail.com>
To: 41568 <at> debbugs.gnu.org
Cc: Vincent Legoll <vincent.legoll <at> gmail.com>
Subject: [PATCH] update-guix-package: Use 'origin-hash'.
Date: Wed, 27 May 2020 23:13:48 +0200
* gnu/packages/package-management.scm (main): Use 'origin-hash' instead
of 'origin-sha256'.
---
 build-aux/update-guix-package.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build-aux/update-guix-package.scm b/build-aux/update-guix-package.scm
index 83f6eca6bb..f695e91cfd 100644
--- a/build-aux/update-guix-package.scm
+++ b/build-aux/update-guix-package.scm
@@ -112,7 +112,8 @@ COMMIT."
                                       #:select? version-controlled?))
               (hash     (query-path-hash store source))
               (location (package-definition-location))
-              (old-hash (origin-sha256 (package-source guix))))
+              (old-hash (content-hash-value
+                          (origin-hash (package-source guix)))))
          (edit-expression location
                           (update-definition commit hash
                                              #:old-hash old-hash
-- 
2.26.2





Reply sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
You have taken responsibility. (Thu, 28 May 2020 08:24:02 GMT) Full text and rfc822 format available.

Notification sent to Vincent Legoll <vincent.legoll <at> gmail.com>:
bug acknowledged by developer. (Thu, 28 May 2020 08:24:02 GMT) Full text and rfc822 format available.

Message #13 received at 41568-done <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Vincent Legoll <vincent.legoll <at> gmail.com>
Cc: 41568-done <at> debbugs.gnu.org
Subject: Re: [bug#41568] [PATCH] update-guix-package: Use 'origin-hash'.
Date: Thu, 28 May 2020 10:22:58 +0200
[Message part 1 (text/plain, inline)]
Vincent,

Strange, it works fine here on 
023eea68f53a6d2979f558fc7590f43aee3aff43:

 ~/guix λ guix environment guix -- make update-guix-package
 git rev-parse HEAD
 aa77b5745dea6591f162c3f2260425479c0da596
 ./pre-inst-env "/gnu/store/…-profile/bin/guile" 
 \
    ./build-aux/update-guix-package.scm	\
    "`git rev-parse HEAD`"
 source code for commit aa77b5745dea6591f162c3f2260425479c0da596:
 /gnu/store/…-guix-1.1.0-5.aa77b57-checkout
 (GC root: guix-1.1.0-5.aa77b57-checkout)
 ~/guix λ

Vincent Legoll 写道:
> * gnu/packages/package-management.scm (main): Use 'origin-hash' 
> instead
> of 'origin-sha256'.

Your change still looks correct so I've pushed it as 
6bfb3eb75dc012e3a0e53da2dc29777c10b6a1ee.

Thanks!

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#41568; Package guix-patches. (Fri, 29 May 2020 08:36:02 GMT) Full text and rfc822 format available.

Message #16 received at 41568-done <at> debbugs.gnu.org (full text, mbox):

From: Vincent Legoll <vincent.legoll <at> gmail.com>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 41568-done <at> debbugs.gnu.org
Subject: Re: [bug#41568] [PATCH] update-guix-package: Use 'origin-hash'.
Date: Fri, 29 May 2020 10:34:54 +0200
On 28/05/2020 10:22, Tobias Geerinckx-Rice wrote:
> Vincent,
> 
> Strange, it works fine here on 023eea68f53a6d2979f558fc7590f43aee3aff43:
> 
>   ~/guix λ guix environment guix -- make update-guix-package
>   git rev-parse HEAD
>   aa77b5745dea6591f162c3f2260425479c0da596
>   ./pre-inst-env "/gnu/store/…-profile/bin/guile"  \
>      ./build-aux/update-guix-package.scm    \
>      "`git rev-parse HEAD`"
>   source code for commit aa77b5745dea6591f162c3f2260425479c0da596:
>   /gnu/store/…-guix-1.1.0-5.aa77b57-checkout
>   (GC root: guix-1.1.0-5.aa77b57-checkout)

That's strange indeed, I tried multiple times with various attempts
at fixing it, and got the failure every time.

> Vincent Legoll 写道:
>> * gnu/packages/package-management.scm (main): Use 'origin-hash' instead
>> of 'origin-sha256'.
>
> Your change still looks correct so I've pushed it as 
> 6bfb3eb75dc012e3a0e53da2dc29777c10b6a1ee.

Thanks

-- 
Vincent Legoll




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 26 Jun 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 353 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.