all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related to comparison tools.
@ 2017-11-24 21:09 Kei Kebreau
  2017-11-25  0:17 ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Kei Kebreau @ 2017-11-24 21:09 UTC (permalink / raw)
  To: 29432; +Cc: Kei Kebreau

* 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related to comparison tools.
  2017-11-24 21:09 [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related to comparison tools Kei Kebreau
@ 2017-11-25  0:17 ` Leo Famulari
  2017-11-25 17:51   ` Kei Kebreau
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2017-11-25  0:17 UTC (permalink / raw)
  To: Kei Kebreau; +Cc: 29432

[-- Attachment #1: Type: text/plain, Size: 798 bytes --]

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? :)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related to comparison tools.
  2017-11-25  0:17 ` Leo Famulari
@ 2017-11-25 17:51   ` Kei Kebreau
  2017-11-25 17:57     ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Kei Kebreau @ 2017-11-25 17:51 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 29432

[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]

Leo Famulari <leo@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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related to comparison tools.
  2017-11-25 17:51   ` Kei Kebreau
@ 2017-11-25 17:57     ` Leo Famulari
  2017-11-25 21:20       ` bug#29432: " Kei Kebreau
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2017-11-25 17:57 UTC (permalink / raw)
  To: Kei Kebreau; +Cc: 29432

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

On Sat, Nov 25, 2017 at 12:51:52PM -0500, Kei Kebreau wrote:
> Leo Famulari <leo@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!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#29432: [PATCH] gnu: diffoscope: Fix error messages related to comparison tools.
  2017-11-25 17:57     ` Leo Famulari
@ 2017-11-25 21:20       ` Kei Kebreau
  0 siblings, 0 replies; 5+ messages in thread
From: Kei Kebreau @ 2017-11-25 21:20 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 29432-done

[-- Attachment #1: Type: text/plain, Size: 945 bytes --]

Leo Famulari <leo@famulari.name> writes:

> On Sat, Nov 25, 2017 at 12:51:52PM -0500, Kei Kebreau wrote:
>> Leo Famulari <leo@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!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-25 21:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-24 21:09 [bug#29432] [PATCH] gnu: diffoscope: Fix error messages related to comparison tools Kei Kebreau
2017-11-25  0:17 ` Leo Famulari
2017-11-25 17:51   ` Kei Kebreau
2017-11-25 17:57     ` Leo Famulari
2017-11-25 21:20       ` bug#29432: " Kei Kebreau

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.