all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 0/1] diffoscope update
@ 2016-02-25  1:06 Leo Famulari
  2016-02-25  1:06 ` [PATCH 1/1] gnu: diffoscope: Update to 49 Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-02-25  1:06 UTC (permalink / raw)
  To: guix-devel

Normally I would push this without review, but it's leap-frogging a lot
of upstream development (version 34 -> 49) and changing from python-2 to
python-3.

However, it passes its test suite now, and it seems to work fine!

Leo Famulari (1):
  gnu: diffoscope: Update to 49.

 gnu/packages/package-management.scm | 47 +++++++++++++++----------------------
 1 file changed, 19 insertions(+), 28 deletions(-)

-- 
2.7.1

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

* [PATCH 1/1] gnu: diffoscope: Update to 49.
  2016-02-25  1:06 [PATCH 0/1] diffoscope update Leo Famulari
@ 2016-02-25  1:06 ` Leo Famulari
  2016-02-25 10:53   ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-02-25  1:06 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/package-management.scm (diffoscope): Update to 49.
[source]: Use pypi-uri.
[arguments]: Use python-3. Enable tests. Add 'dependency-on-python-magic' phase
and remove 'dependency-on-rpm' phase.
---
 gnu/packages/package-management.scm | 47 +++++++++++++++----------------------
 1 file changed, 19 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 420a49e..ac6d848 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -389,21 +389,23 @@ transactions from C or Python.")
 (define-public diffoscope
   (package
     (name "diffoscope")
-    (version "34")
+    (version "49")
     (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url
-                     "https://anonscm.debian.org/cgit/reproducible/diffoscope.git")
-                    (commit version)))
+              (method url-fetch)
+              (uri (pypi-uri name version))
               (sha256
                (base32
-                "1g8b7bpkmns0355gkr3a244affwx4xzqwahwsl6ivw4z0qv7dih8"))
-              (file-name (string-append name "-" version "-checkout"))))
+                "1mf6b7j82ckn90ggz6bp6c2jydz87xj8r8jmfl4hg7jcmf7dxmim"))))
     (build-system python-build-system)
     (arguments
-     `(#:python ,python-2
-       #:phases (modify-phases %standard-phases
+     `(#:phases (modify-phases %standard-phases
+                  ;; 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
+                  (add-after 'unpack 'dependency-on-python-magic
+                    (lambda _
+                      (substitute* "setup.py"
+                        (("'python-magic',") ""))))
                   (add-before 'build 'disable-egg-zipping
                     (lambda _
                       ;; Leave the .egg file uncompressed.
@@ -411,27 +413,16 @@ transactions from C or Python.")
                         (display "\n[easy_install]\nzip_ok = 0\n"
                                  port)
                         (close-port port)
-                        #t)))
-                  (add-before 'build 'dependency-on-rpm
-                    (lambda _
-                      (substitute* "setup.py"
-                        ;; Somehow this requirement is reported as not met,
-                        ;; even though rpm.py is in the search path.  So
-                        ;; delete it.
-                        (("'rpm-python',") ""))
-                      #t)))
-       ;; FIXME: Some obscure test failures.
-       #:tests? #f))
+                        #t))))))
     (inputs `(("rpm" ,rpm)                        ;for rpm-python
-              ("python-file" ,python2-file)
-              ("python-debian" ,python2-debian)
-              ("python-libarchive-c" ,python2-libarchive-c)
-              ("python-tlsh" ,python2-tlsh)
+              ("python-file" ,python-file)
+              ("python-debian" ,python-debian)
+              ("python-libarchive-c" ,python-libarchive-c)
+              ("python-tlsh" ,python-tlsh)
 
               ;; Below are modules used for tests.
-              ("python-pytest" ,python2-pytest)
-              ("python-chardet" ,python2-chardet)))
-    (native-inputs `(("python-setuptools" ,python2-setuptools)))
+              ("python-pytest" ,python-pytest)
+              ("python-chardet" ,python-chardet)))
     (home-page "http://diffoscope.org/")
     (synopsis "Compare files, archives, and directories in depth")
     (description
-- 
2.7.1

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

* Re: [PATCH 1/1] gnu: diffoscope: Update to 49.
  2016-02-25  1:06 ` [PATCH 1/1] gnu: diffoscope: Update to 49 Leo Famulari
@ 2016-02-25 10:53   ` Ricardo Wurmus
  2016-02-25 22:08     ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2016-02-25 10:53 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel


Leo Famulari <leo@famulari.name> writes:

> * gnu/packages/package-management.scm (diffoscope): Update to 49.
> [source]: Use pypi-uri.
> [arguments]: Use python-3. Enable tests. Add 'dependency-on-python-magic' phase
> and remove 'dependency-on-rpm' phase.
> ---
[...]
>      (inputs `(("rpm" ,rpm)                        ;for rpm-python
> -              ("python-file" ,python2-file)
> -              ("python-debian" ,python2-debian)
> -              ("python-libarchive-c" ,python2-libarchive-c)
> -              ("python-tlsh" ,python2-tlsh)
> +              ("python-file" ,python-file)
> +              ("python-debian" ,python-debian)
> +              ("python-libarchive-c" ,python-libarchive-c)
> +              ("python-tlsh" ,python-tlsh)
>  
>                ;; Below are modules used for tests.
> -              ("python-pytest" ,python2-pytest)
> -              ("python-chardet" ,python2-chardet)))
> -    (native-inputs `(("python-setuptools" ,python2-setuptools)))
> +              ("python-pytest" ,python-pytest)
> +              ("python-chardet" ,python-chardet)))
>      (home-page "http://diffoscope.org/")
>      (synopsis "Compare files, archives, and directories in depth")
>      (description


Since you’re changing “inputs” and “native-inputs” you should mention
these changes in the commit summary.

Otherwise looks okay to me.

~~ Ricardo

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

* Re: [PATCH 1/1] gnu: diffoscope: Update to 49.
  2016-02-25 10:53   ` Ricardo Wurmus
@ 2016-02-25 22:08     ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-02-25 22:08 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

On Thu, Feb 25, 2016 at 11:53:15AM +0100, Ricardo Wurmus wrote:
> 
> Leo Famulari <leo@famulari.name> writes:
> 
> > * gnu/packages/package-management.scm (diffoscope): Update to 49.
> > [source]: Use pypi-uri.
> > [arguments]: Use python-3. Enable tests. Add 'dependency-on-python-magic' phase
> > and remove 'dependency-on-rpm' phase.
> > ---
> [...]
> >      (inputs `(("rpm" ,rpm)                        ;for rpm-python
> > -              ("python-file" ,python2-file)
> > -              ("python-debian" ,python2-debian)
> > -              ("python-libarchive-c" ,python2-libarchive-c)
> > -              ("python-tlsh" ,python2-tlsh)
> > +              ("python-file" ,python-file)
> > +              ("python-debian" ,python-debian)
> > +              ("python-libarchive-c" ,python-libarchive-c)
> > +              ("python-tlsh" ,python-tlsh)
> >  
> >                ;; Below are modules used for tests.
> > -              ("python-pytest" ,python2-pytest)
> > -              ("python-chardet" ,python2-chardet)))
> > -    (native-inputs `(("python-setuptools" ,python2-setuptools)))
> > +              ("python-pytest" ,python-pytest)
> > +              ("python-chardet" ,python-chardet)))
> >      (home-page "http://diffoscope.org/")
> >      (synopsis "Compare files, archives, and directories in depth")
> >      (description
> 
> 
> Since you’re changing “inputs” and “native-inputs” you should mention
> these changes in the commit summary.

Done, and pushed as 7dd21101a3.

> Otherwise looks okay to me.

Thanks for the review!

> 
> ~~ Ricardo

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

end of thread, other threads:[~2016-02-25 22:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25  1:06 [PATCH 0/1] diffoscope update Leo Famulari
2016-02-25  1:06 ` [PATCH 1/1] gnu: diffoscope: Update to 49 Leo Famulari
2016-02-25 10:53   ` Ricardo Wurmus
2016-02-25 22:08     ` Leo Famulari

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.