GNU bug report logs - #50615
[PATCH] gnu: grokmirror: Update to 2.0.11.

Previous Next

Package: guix-patches;

Reported by: Xinglu Chen <public <at> yoctocell.xyz>

Date: Thu, 16 Sep 2021 08:48:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

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 50615 in the body.
You can then email your comments to 50615 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#50615; Package guix-patches. (Thu, 16 Sep 2021 08:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xinglu Chen <public <at> yoctocell.xyz>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 16 Sep 2021 08:48:02 GMT) Full text and rfc822 format available.

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

From: Xinglu Chen <public <at> yoctocell.xyz>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: grokmirror: Update to 2.0.11.
Date: Thu, 16 Sep 2021 10:47:25 +0200
* gnu/packages/version-control.scm (grokmirror): Update to 2.0.11.
[arguments]<#:phases>: Don’t return #t.
---
 gnu/packages/version-control.scm | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index fe84601372..ead33ad10e 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -2465,7 +2465,7 @@ Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
 (define-public grokmirror
   (package
     (name "grokmirror")
-    (version "2.0.8")
+    (version "2.0.11")
     (source
      (origin
        (method git-fetch)
@@ -2475,7 +2475,7 @@ Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
              (commit (string-append "v" version))))
        (file-name (string-append name "-" version "-checkout"))
        (sha256
-        (base32 "0zfiwjw02df3mzpawp9jx61iwp0nhcf6y03cs8022l0hkvc7blbr"))))
+        (base32 "0c6nnfzzyl247r1dcjnsyx16d34nyra9ikjjhi0xzlrbiwnb0w32"))))
     (build-system python-build-system)
     (arguments
      `(#:tests? #f                      ; no test suite
@@ -2487,8 +2487,7 @@ Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
                                         "/man/man1/")))
                (mkdir-p man)
                (for-each (lambda (file) (install-file file man))
-                         (find-files "." "\\.1$")))
-             #t)))))
+                         (find-files "." "\\.1$"))))))))
     (propagated-inputs
      `(("python-packaging" ,python-packaging)
        ("python-requests" ,python-requests)))

base-commit: a72519489f0178051b7049d5793d95d070ebef86
-- 
2.33.0







Information forwarded to guix-patches <at> gnu.org:
bug#50615; Package guix-patches. (Fri, 17 Sep 2021 03:07:02 GMT) Full text and rfc822 format available.

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

From: Kyle Meyer <kyle <at> kyleam.com>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: 50615 <at> debbugs.gnu.org
Subject: Re: [bug#50615] [PATCH] gnu: grokmirror: Update to 2.0.11.
Date: Thu, 16 Sep 2021 23:06:11 -0400
Xinglu Chen writes:

> * gnu/packages/version-control.scm (grokmirror): Update to 2.0.11.
> [arguments]<#:phases>: Don’t return #t.

Thanks for keeping grokmirror up to date.

>  (define-public grokmirror
[...]
> @@ -2487,8 +2487,7 @@ Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")

Unrelated sidenote: you could get a more informative hunk header for
your patches by defining a custom one (more details in the gitattributes
manpage).

>                                          "/man/man1/")))
>                 (mkdir-p man)
>                 (for-each (lambda (file) (install-file file man))
> -                         (find-files "." "\\.1$")))
> -             #t)))))
> +                         (find-files "." "\\.1$"))))))))

Oops, sorry about the unnecessary #t.  I did a quick search of the
lists/manual but didn't find any pointers/discussion.  What's the way to
decide when a custom phase should return #t (like in the below snippet
from the manual)?

--8<---------------cut here---------------start------------->8---
(modify-phases %standard-phases
  (add-after 'install 'fix-egrep-and-fgrep
    ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its
    ;; absolute file name instead of searching for it in $PATH.
    (lambda* (#:key outputs #:allow-other-keys)
      (let* ((out (assoc-ref outputs "out"))
             (bin (string-append out "/bin")))
        (substitute* (list (string-append bin "/egrep")
                           (string-append bin "/fgrep"))
          (("^exec grep")
           (string-append "exec " bin "/grep")))
        #t))))
--8<---------------cut here---------------end--------------->8---




Information forwarded to guix-patches <at> gnu.org:
bug#50615; Package guix-patches. (Fri, 17 Sep 2021 08:34:01 GMT) Full text and rfc822 format available.

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

From: Xinglu Chen <public <at> yoctocell.xyz>
To: Kyle Meyer <kyle <at> kyleam.com>
Cc: 50615 <at> debbugs.gnu.org
Subject: Re: [bug#50615] [PATCH] gnu: grokmirror: Update to 2.0.11.
Date: Fri, 17 Sep 2021 10:33:22 +0200
[Message part 1 (text/plain, inline)]
On Thu, Sep 16 2021, Kyle Meyer wrote:

> Xinglu Chen writes:
>
>> * gnu/packages/version-control.scm (grokmirror): Update to 2.0.11.
>> [arguments]<#:phases>: Don’t return #t.
>
> Thanks for keeping grokmirror up to date.

You are welcome!

>>  (define-public grokmirror
> [...]
>> @@ -2487,8 +2487,7 @@ Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
>
> Unrelated sidenote: you could get a more informative hunk header for
> your patches by defining a custom one (more details in the gitattributes
> manpage).

Ah, thanks for the tip!

>>                                          "/man/man1/")))
>>                 (mkdir-p man)
>>                 (for-each (lambda (file) (install-file file man))
>> -                         (find-files "." "\\.1$")))
>> -             #t)))))
>> +                         (find-files "." "\\.1$"))))))))
>
> Oops, sorry about the unnecessary #t.  I did a quick search of the
> lists/manual but didn't find any pointers/discussion.  What's the way to
> decide when a custom phase should return #t (like in the below snippet
> from the manual)?
>
> --8<---------------cut here---------------start------------->8---
> (modify-phases %standard-phases
>   (add-after 'install 'fix-egrep-and-fgrep
>     ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its
>     ;; absolute file name instead of searching for it in $PATH.
>     (lambda* (#:key outputs #:allow-other-keys)
>       (let* ((out (assoc-ref outputs "out"))
>              (bin (string-append out "/bin")))
>         (substitute* (list (string-append bin "/egrep")
>                            (string-append bin "/fgrep"))
>           (("^exec grep")
>            (string-append "exec " bin "/grep")))
>         #t))))
> --8<---------------cut here---------------end--------------->8---

I don’t think it documented in the manual, but on ‘master’, phases have
to return #t, otherwise, you will get a warning message about it.  But
once the ‘core-updates-frozen’ branch gets merged (should be soon™),
phases don’t have to return #t anymore.  Since the boilerplate won’t be
needed once ‘core-updates-frozen’ gets merged, I thought it would be a
good idea to just remove the #t.  :-)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#50615; Package guix-patches. (Fri, 17 Sep 2021 10:49:01 GMT) Full text and rfc822 format available.

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

From: Kyle Meyer <kyle <at> kyleam.com>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: 50615 <at> debbugs.gnu.org
Subject: Re: [bug#50615] [PATCH] gnu: grokmirror: Update to 2.0.11.
Date: Fri, 17 Sep 2021 06:48:42 -0400
Xinglu Chen writes:

> But once the ‘core-updates-frozen’ branch gets merged (should be
> soon™), phases don’t have to return #t anymore.

Oh, got it.  Thanks for the information.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 30 Sep 2021 21:01:01 GMT) Full text and rfc822 format available.

Notification sent to Xinglu Chen <public <at> yoctocell.xyz>:
bug acknowledged by developer. (Thu, 30 Sep 2021 21:01:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: 50615-done <at> debbugs.gnu.org
Subject: Re: bug#50615: [PATCH] gnu: grokmirror: Update to 2.0.11.
Date: Thu, 30 Sep 2021 23:00:17 +0200
Xinglu Chen <public <at> yoctocell.xyz> skribis:

> * gnu/packages/version-control.scm (grokmirror): Update to 2.0.11.
> [arguments]<#:phases>: Don’t return #t.

Applied, thanks!

Ludo’.




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

This bug report was last modified 2 years and 176 days ago.

Previous Next


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