GNU bug report logs - #29432
[PATCH] gnu: diffoscope: Fix error messages related to comparison tools.

Previous Next

Package: guix-patches;

Reported by: Kei Kebreau <kkebreau <at> posteo.net>

Date: Fri, 24 Nov 2017 21:11:01 UTC

Severity: normal

Tags: patch

Done: Kei Kebreau <kkebreau <at> posteo.net>

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 29432 in the body.
You can then email your comments to 29432 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#29432; Package guix-patches. (Fri, 24 Nov 2017 21:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kei Kebreau <kkebreau <at> posteo.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 24 Nov 2017 21:11:02 GMT) Full text and rfc822 format available.

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

From: Kei Kebreau <kkebreau <at> posteo.net>
To: guix-patches <at> gnu.org
Cc: Kei Kebreau <kkebreau <at> posteo.net>
Subject: [PATCH] gnu: diffoscope: Fix error messages related to comparison
 tools.
Date: Fri, 24 Nov 2017 16:09:58 -0500
* gnu/packages/package-management.scm (diffoscope)[arguments]: Replace readelf
substitution and add stat and getfacl substitutions.
[inputs]: Add acl.
---
 gnu/packages/package-management.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index c7a368116..15c310d6e 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -63,6 +63,7 @@
   #:use-module (gnu packages ssh)
   #:use-module (gnu packages vim)
   #:use-module (gnu packages serialization)
+  #:use-module (gnu packages acl)
   #:use-module (srfi srfi-1)
   #:use-module (ice-9 match))
 
@@ -520,7 +521,6 @@ transactions from C or Python.")
     (build-system python-build-system)
     (arguments
      `(#:phases (modify-phases %standard-phases
-                  (add-before 'unpack 'n (lambda _ #t))
                   ;; setup.py mistakenly requires python-magic from PyPi, even
                   ;; though the Python bindings of `file` are sufficient.
                   ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815844
@@ -535,8 +535,15 @@ transactions from C or Python.")
                          (string-append "['" (which "xxd") "',")))
                       (substitute* "diffoscope/comparators/elf.py"
                         (("@tool_required\\('readelf'\\)") "")
-                        (("\\['readelf',")
-                         (string-append "['" (which "readelf") "',")))
+                        (("get_tool_name\\('readelf'\\)")
+                         (string-append "'" (which "readelf") "'")))
+                      (substitute* "diffoscope/comparators/directory.py"
+                        (("@tool_required\\('stat'\\)") "")
+                        (("@tool_required\\('getfacl'\\)") "")
+                        (("\\['stat',")
+                         (string-append "['" (which "stat") "',"))
+                        (("\\['getfacl',")
+                         (string-append "['" (which "getfacl") "',")))
                       #t))
                   (add-before 'check 'delete-failing-test
                     (lambda _
@@ -547,6 +554,7 @@ transactions from C or Python.")
               ("python-debian" ,python-debian)
               ("python-libarchive-c" ,python-libarchive-c)
               ("python-tlsh" ,python-tlsh)
+              ("acl" ,acl)                        ;for getfacl
               ("colordiff" ,colordiff)
               ("xxd" ,xxd)
 
-- 
2.15.0





Information forwarded to guix-patches <at> gnu.org:
bug#29432; Package guix-patches. (Sat, 25 Nov 2017 00:18:01 GMT) Full text and rfc822 format available.

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

From: Leo Famulari <leo <at> famulari.name>
To: Kei Kebreau <kkebreau <at> posteo.net>
Cc: 29432 <at> debbugs.gnu.org
Subject: Re: [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related
 to comparison tools.
Date: Fri, 24 Nov 2017 19:17:16 -0500
[Message part 1 (text/plain, inline)]
On Fri, Nov 24, 2017 at 04:09:58PM -0500, Kei Kebreau wrote:
> * gnu/packages/package-management.scm (diffoscope)[arguments]: Replace readelf
> substitution and add stat and getfacl substitutions.
> [inputs]: Add acl.

Can you add an example of the error messages in the commit message?
Otherwise LGTM.

> @@ -520,7 +521,6 @@ transactions from C or Python.")
>      (build-system python-build-system)
>      (arguments
>       `(#:phases (modify-phases %standard-phases
> -                  (add-before 'unpack 'n (lambda _ #t))
>                    ;; setup.py mistakenly requires python-magic from PyPi, even
>                    ;; though the Python bindings of `file` are sufficient.
>                    ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815844

Some leftover debugging? :)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#29432; Package guix-patches. (Sat, 25 Nov 2017 17:53:02 GMT) Full text and rfc822 format available.

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

From: Kei Kebreau <kkebreau <at> posteo.net>
To: Leo Famulari <leo <at> famulari.name>
Cc: 29432 <at> debbugs.gnu.org
Subject: Re: [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related
 to comparison tools.
Date: Sat, 25 Nov 2017 12:51:52 -0500
[Message part 1 (text/plain, inline)]
Leo Famulari <leo <at> famulari.name> writes:

> On Fri, Nov 24, 2017 at 04:09:58PM -0500, Kei Kebreau wrote:
>> * gnu/packages/package-management.scm (diffoscope)[arguments]: Replace readelf
>> substitution and add stat and getfacl substitutions.
>> [inputs]: Add acl.
>
> Can you add an example of the error messages in the commit message?
> Otherwise LGTM.
>

Like this?

Errors fixed include the following:
  "FileNotFoundError: [Errno 2] No such file or directory: 'readelf'"
  "diffoscope.comparators.directory: Unable to find 'getfacl', some
   directory metadata differences might not be noticed."
  "diffoscope.comparators.directory: Unable to find 'stat'"
>> @@ -520,7 +521,6 @@ transactions from C or Python.")
>>      (build-system python-build-system)
>>      (arguments
>>       `(#:phases (modify-phases %standard-phases
>> -                  (add-before 'unpack 'n (lambda _ #t))
>>                    ;; setup.py mistakenly requires python-magic from PyPi, even
>>                    ;; though the Python bindings of `file` are sufficient.
>>                    ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815844
>
> Some leftover debugging? :)

You know it! ;)
I figured out that this is unnecessary if one uses --keep-failed when
building with multiple rounds.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#29432; Package guix-patches. (Sat, 25 Nov 2017 17:58:01 GMT) Full text and rfc822 format available.

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

From: Leo Famulari <leo <at> famulari.name>
To: Kei Kebreau <kkebreau <at> posteo.net>
Cc: 29432 <at> debbugs.gnu.org
Subject: Re: [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related
 to comparison tools.
Date: Sat, 25 Nov 2017 12:57:10 -0500
[Message part 1 (text/plain, inline)]
On Sat, Nov 25, 2017 at 12:51:52PM -0500, Kei Kebreau wrote:
> Leo Famulari <leo <at> famulari.name> writes:
> 
> > On Fri, Nov 24, 2017 at 04:09:58PM -0500, Kei Kebreau wrote:
> >> * gnu/packages/package-management.scm (diffoscope)[arguments]: Replace readelf
> >> substitution and add stat and getfacl substitutions.
> >> [inputs]: Add acl.
> >
> > Can you add an example of the error messages in the commit message?
> > Otherwise LGTM.
> >
> 
> Like this?
> 
> Errors fixed include the following:
>   "FileNotFoundError: [Errno 2] No such file or directory: 'readelf'"
>   "diffoscope.comparators.directory: Unable to find 'getfacl', some
>    directory metadata differences might not be noticed."
>   "diffoscope.comparators.directory: Unable to find 'stat'"

Sure!
[signature.asc (application/pgp-signature, inline)]

Reply sent to Kei Kebreau <kkebreau <at> posteo.net>:
You have taken responsibility. (Sat, 25 Nov 2017 21:21:01 GMT) Full text and rfc822 format available.

Notification sent to Kei Kebreau <kkebreau <at> posteo.net>:
bug acknowledged by developer. (Sat, 25 Nov 2017 21:21:01 GMT) Full text and rfc822 format available.

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

From: Kei Kebreau <kkebreau <at> posteo.net>
To: Leo Famulari <leo <at> famulari.name>
Cc: 29432-done <at> debbugs.gnu.org
Subject: Re: [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related
 to comparison tools.
Date: Sat, 25 Nov 2017 16:20:05 -0500
[Message part 1 (text/plain, inline)]
Leo Famulari <leo <at> famulari.name> writes:

> On Sat, Nov 25, 2017 at 12:51:52PM -0500, Kei Kebreau wrote:
>> Leo Famulari <leo <at> famulari.name> writes:
>> 
>> > On Fri, Nov 24, 2017 at 04:09:58PM -0500, Kei Kebreau wrote:
>> >> * gnu/packages/package-management.scm (diffoscope)[arguments]: Replace readelf
>> >> substitution and add stat and getfacl substitutions.
>> >> [inputs]: Add acl.
>> >
>> > Can you add an example of the error messages in the commit message?
>> > Otherwise LGTM.
>> >
>> 
>> Like this?
>> 
>> Errors fixed include the following:
>>   "FileNotFoundError: [Errno 2] No such file or directory: 'readelf'"
>>   "diffoscope.comparators.directory: Unable to find 'getfacl', some
>>    directory metadata differences might not be noticed."
>>   "diffoscope.comparators.directory: Unable to find 'stat'"
>
> Sure!

Pushed to master as 2af6be91d59ad5aefe01e90aa9045e26d8667098. Thank you
for the review!
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 24 Dec 2017 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 183 days ago.

Previous Next


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