all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1.
@ 2017-07-11 21:21 Arun Isaac
       [not found] ` <handler.27657.B.149980812621470.ack@debbugs.gnu.org>
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Arun Isaac @ 2017-07-11 21:21 UTC (permalink / raw)
  To: 27657

* gnu/packages/graphviz.scm (graphviz): Update to 2.40.1.
[arguments]: Remove pre-build phase.
---
 gnu/packages/graphviz.scm | 54 +++++++++++++++++++----------------------------
 1 file changed, 22 insertions(+), 32 deletions(-)

diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
index d47d45e52..99ba4e887 100644
--- a/gnu/packages/graphviz.scm
+++ b/gnu/packages/graphviz.scm
@@ -44,7 +44,7 @@
 (define-public graphviz
   (package
     (name "graphviz")
-    (version "2.38.0")
+    (version "2.40.1")
     (source (origin
              (method url-fetch)
              (uri (string-append
@@ -52,43 +52,33 @@
                    version ".tar.gz"))
              (sha256
               (base32
-               "17l5czpvv5ilmg17frg0w4qwf89jzh2aglm9fgx0l0aakn6j7al1"))))
+               "08d4ygkxz2f553bxj6087da56a23kx1khv0j8ycxa102vvx1hlna"))))
     (build-system gnu-build-system)
     (arguments
      ;; FIXME: rtest/rtest.sh is a ksh script (!).  Add ksh as an input.
      '(#:tests? #f
-
-       #:phases (alist-cons-before
-                 'build 'pre-build
-                 (lambda _
-                   ;; Work around bogus makefile when using an external
-                   ;; libltdl.  Failing to do so, one hits this error:
-                   ;; "No rule to make target `-lltdl', needed by `libgvc.la'."
-                   (substitute* "lib/gvc/Makefile"
-                     (("am__append_5 *=.*")
-                      "am_append_5 =\n")))
+       #:phases (alist-cons-after
+                 'install 'move-docs
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let ((out (assoc-ref outputs "out"))
+                         (doc (assoc-ref outputs "doc")))
+                     (mkdir-p (string-append doc "/share/graphviz"))
+                     (rename-file (string-append out "/share/graphviz/doc")
+                                  (string-append doc "/share/graphviz/doc"))
+                     #t))
                  (alist-cons-after
-                  'install 'move-docs
+                  'move-docs 'move-guile-bindings
                   (lambda* (#:key outputs #:allow-other-keys)
-                           (let ((out (assoc-ref outputs "out"))
-                                 (doc (assoc-ref outputs "doc")))
-                             (mkdir-p (string-append doc "/share/graphviz"))
-                             (rename-file (string-append out "/share/graphviz/doc")
-                                          (string-append doc "/share/graphviz/doc"))
-                             #t))
-                  (alist-cons-after
-                   'move-docs 'move-guile-bindings
-                   (lambda* (#:key outputs #:allow-other-keys)
-                     (let* ((out (assoc-ref outputs "out"))
-                            (lib (string-append out "/lib"))
-                            (extdir (string-append lib
-                                                   "/guile/2.0/extensions")))
-                       (mkdir-p extdir)
-                       (rename-file (string-append
-                                     lib "/graphviz/guile/libgv_guile.so")
-                                    (string-append extdir
-                                                   "/libgv_guile.so"))))
-                   %standard-phases)))))
+                    (let* ((out (assoc-ref outputs "out"))
+                           (lib (string-append out "/lib"))
+                           (extdir (string-append lib
+                                                  "/guile/2.0/extensions")))
+                      (mkdir-p extdir)
+                      (rename-file (string-append
+                                    lib "/graphviz/guile/libgv_guile.so")
+                                   (string-append extdir
+                                                  "/libgv_guile.so"))))
+                  %standard-phases))))
     (inputs
      `(("libXrender" ,libxrender)
        ("libX11" ,libx11)
-- 
2.12.2


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

* [bug#27657] Acknowledgement ([PATCH] gnu: graphviz: Update to 2.40.1.)
       [not found] ` <handler.27657.B.149980812621470.ack@debbugs.gnu.org>
@ 2017-07-11 21:34   ` Arun Isaac
  2017-07-11 22:02     ` Tobias Geerinckx-Rice
  2017-07-11 22:07     ` Marius Bakke
  0 siblings, 2 replies; 22+ messages in thread
From: Arun Isaac @ 2017-07-11 21:34 UTC (permalink / raw)
  To: 27657


The source tarball URL shown on the graphviz download page (
http://www.graphviz.org/Download_source.php ) is
http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.40.1.tar.gz

Currently, our graphviz package is using
http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.40.1.tar.gz

Both appear to be the same tarball. I don't know why they have two
copies on the server. Should we change the source URL of our package?

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

* [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1.
  2017-07-11 21:21 [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1 Arun Isaac
       [not found] ` <handler.27657.B.149980812621470.ack@debbugs.gnu.org>
@ 2017-07-11 21:52 ` Marius Bakke
  2017-07-12 12:19   ` Ludovic Courtès
  2017-07-12 14:41   ` Arun Isaac
  2017-07-12 14:25 ` [bug#27657] [PATCH 1/3] gnu: graphviz: Use modify-phases Arun Isaac
                   ` (2 subsequent siblings)
  4 siblings, 2 replies; 22+ messages in thread
From: Marius Bakke @ 2017-07-11 21:52 UTC (permalink / raw)
  To: Arun Isaac, 27657

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

Arun Isaac <arunisaac@systemreboot.net> writes:

> * gnu/packages/graphviz.scm (graphviz): Update to 2.40.1.
> [arguments]: Remove pre-build phase.
> ---
>  gnu/packages/graphviz.scm | 54 +++++++++++++++++++----------------------------
>  1 file changed, 22 insertions(+), 32 deletions(-)
>
> diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
> index d47d45e52..99ba4e887 100644
> --- a/gnu/packages/graphviz.scm
> +++ b/gnu/packages/graphviz.scm
> @@ -44,7 +44,7 @@
>  (define-public graphviz
>    (package
>      (name "graphviz")
> -    (version "2.38.0")
> +    (version "2.40.1")
>      (source (origin
>               (method url-fetch)
>               (uri (string-append
> @@ -52,43 +52,33 @@
>                     version ".tar.gz"))
>               (sha256
>                (base32
> -               "17l5czpvv5ilmg17frg0w4qwf89jzh2aglm9fgx0l0aakn6j7al1"))))
> +               "08d4ygkxz2f553bxj6087da56a23kx1khv0j8ycxa102vvx1hlna"))))
>      (build-system gnu-build-system)
>      (arguments
>       ;; FIXME: rtest/rtest.sh is a ksh script (!).  Add ksh as an input.
>       '(#:tests? #f
> -
> -       #:phases (alist-cons-before
> -                 'build 'pre-build
> -                 (lambda _
> -                   ;; Work around bogus makefile when using an external
> -                   ;; libltdl.  Failing to do so, one hits this error:
> -                   ;; "No rule to make target `-lltdl', needed by `libgvc.la'."
> -                   (substitute* "lib/gvc/Makefile"
> -                     (("am__append_5 *=.*")
> -                      "am_append_5 =\n")))
> +       #:phases (alist-cons-after
> +                 'install 'move-docs
> +                 (lambda* (#:key outputs #:allow-other-keys)
> +                   (let ((out (assoc-ref outputs "out"))
> +                         (doc (assoc-ref outputs "doc")))
> +                     (mkdir-p (string-append doc "/share/graphviz"))
> +                     (rename-file (string-append out "/share/graphviz/doc")
> +                                  (string-append doc "/share/graphviz/doc"))
> +                     #t))
>                   (alist-cons-after
> -                  'install 'move-docs
> +                  'move-docs 'move-guile-bindings
>                    (lambda* (#:key outputs #:allow-other-keys)
> -                           (let ((out (assoc-ref outputs "out"))
> -                                 (doc (assoc-ref outputs "doc")))
> -                             (mkdir-p (string-append doc "/share/graphviz"))
> -                             (rename-file (string-append out "/share/graphviz/doc")
> -                                          (string-append doc "/share/graphviz/doc"))
> -                             #t))
> -                  (alist-cons-after
> -                   'move-docs 'move-guile-bindings
> -                   (lambda* (#:key outputs #:allow-other-keys)
> -                     (let* ((out (assoc-ref outputs "out"))
> -                            (lib (string-append out "/lib"))
> -                            (extdir (string-append lib
> -                                                   "/guile/2.0/extensions")))
> -                       (mkdir-p extdir)
> -                       (rename-file (string-append
> -                                     lib "/graphviz/guile/libgv_guile.so")
> -                                    (string-append extdir
> -                                                   "/libgv_guile.so"))))
> -                   %standard-phases)))))
> +                    (let* ((out (assoc-ref outputs "out"))
> +                           (lib (string-append out "/lib"))
> +                           (extdir (string-append lib
> +                                                  "/guile/2.0/extensions")))
> +                      (mkdir-p extdir)
> +                      (rename-file (string-append
> +                                    lib "/graphviz/guile/libgv_guile.so")
> +                                   (string-append extdir
> +                                                  "/libgv_guile.so"))))
> +                  %standard-phases))))

Ugh. Could you try to convert this to use 'modify-phases' syntax first?
Please do so in a separate commit since it's a non-trivial change on its
own. It will make it much clearer what's going on in this patch.

Otherwise this LGTM. Note that we now have at least one 'ksh'
implementation[0], if you feel like fiddling with the tests ;-)

[0] https://git.savannah.gnu.org/cgit/guix.git/commit/?id=cc5a76a74c5042a3dff894cdd64ad0399ffd963c

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

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

* [bug#27657] Acknowledgement ([PATCH] gnu: graphviz: Update to 2.40.1.)
  2017-07-11 21:34   ` [bug#27657] Acknowledgement ([PATCH] gnu: graphviz: Update to 2.40.1.) Arun Isaac
@ 2017-07-11 22:02     ` Tobias Geerinckx-Rice
  2017-07-11 22:07     ` Marius Bakke
  1 sibling, 0 replies; 22+ messages in thread
From: Tobias Geerinckx-Rice @ 2017-07-11 22:02 UTC (permalink / raw)
  To: arunisaac, 27657


[-- Attachment #1.1: Type: text/plain, Size: 839 bytes --]

Arun,

On 11/07/17 23:34, Arun Isaac wrote:
> Both appear to be the same tarball. I don't know why they have two
> copies on the server. Should we change the source URL of our package?

In general, dual-directory schemes like this — anything involving
‘current’ vs. ‘archive’ — often suggest that the project intends to
periodically prune the former.

For example, they might keep only the latest release of a series and
move the rest to an ‘archive’ directory. Therefore, it's common to use
the latter directly, or hedge our bets by trying both.
The ‘sudo’ package is a good example of this.

In this case, as you've no doubt already noticed, both directories are
identical. I'd say: before changing anything, ask upstream why they do
this and which URI we should prefer.

Kind regards,

T G-R


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 504 bytes --]

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

* [bug#27657] Acknowledgement ([PATCH] gnu: graphviz: Update to 2.40.1.)
  2017-07-11 21:34   ` [bug#27657] Acknowledgement ([PATCH] gnu: graphviz: Update to 2.40.1.) Arun Isaac
  2017-07-11 22:02     ` Tobias Geerinckx-Rice
@ 2017-07-11 22:07     ` Marius Bakke
  2017-07-12 14:32       ` Arun Isaac
  1 sibling, 1 reply; 22+ messages in thread
From: Marius Bakke @ 2017-07-11 22:07 UTC (permalink / raw)
  To: Arun Isaac, 27657

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

Arun Isaac <arunisaac@systemreboot.net> writes:

> The source tarball URL shown on the graphviz download page (
> http://www.graphviz.org/Download_source.php ) is
> http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.40.1.tar.gz
>
> Currently, our graphviz package is using
> http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.40.1.tar.gz
>
> Both appear to be the same tarball. I don't know why they have two
> copies on the server. Should we change the source URL of our package?

They appear have identical contents too:

http://www.graphviz.org/pub/graphviz/stable/SOURCES/
http://www.graphviz.org/pub/graphviz/ARCHIVE/

..and both return HTTP 200.

I guess we can 'proactively' add both, but I have a slight preference
for sticking with 'what works' until we know which one to use. YMMV :-)

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

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

* [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1.
  2017-07-11 21:52 ` [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1 Marius Bakke
@ 2017-07-12 12:19   ` Ludovic Courtès
  2017-07-12 14:44     ` Arun Isaac
                       ` (2 more replies)
  2017-07-12 14:41   ` Arun Isaac
  1 sibling, 3 replies; 22+ messages in thread
From: Ludovic Courtès @ 2017-07-12 12:19 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 27657

Marius Bakke <mbakke@fastmail.com> skribis:

> Arun Isaac <arunisaac@systemreboot.net> writes:
>
>> * gnu/packages/graphviz.scm (graphviz): Update to 2.40.1.
>> [arguments]: Remove pre-build phase.
>> ---
>>  gnu/packages/graphviz.scm | 54 +++++++++++++++++++----------------------------
>>  1 file changed, 22 insertions(+), 32 deletions(-)
>>
>> diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
>> index d47d45e52..99ba4e887 100644
>> --- a/gnu/packages/graphviz.scm
>> +++ b/gnu/packages/graphviz.scm
>> @@ -44,7 +44,7 @@
>>  (define-public graphviz
>>    (package
>>      (name "graphviz")
>> -    (version "2.38.0")
>> +    (version "2.40.1")
>>      (source (origin
>>               (method url-fetch)
>>               (uri (string-append
>> @@ -52,43 +52,33 @@
>>                     version ".tar.gz"))
>>               (sha256
>>                (base32
>> -               "17l5czpvv5ilmg17frg0w4qwf89jzh2aglm9fgx0l0aakn6j7al1"))))
>> +               "08d4ygkxz2f553bxj6087da56a23kx1khv0j8ycxa102vvx1hlna"))))
>>      (build-system gnu-build-system)
>>      (arguments
>>       ;; FIXME: rtest/rtest.sh is a ksh script (!).  Add ksh as an input.
>>       '(#:tests? #f
>> -
>> -       #:phases (alist-cons-before
>> -                 'build 'pre-build
>> -                 (lambda _
>> -                   ;; Work around bogus makefile when using an external
>> -                   ;; libltdl.  Failing to do so, one hits this error:
>> -                   ;; "No rule to make target `-lltdl', needed by `libgvc.la'."
>> -                   (substitute* "lib/gvc/Makefile"
>> -                     (("am__append_5 *=.*")
>> -                      "am_append_5 =\n")))
>> +       #:phases (alist-cons-after
>> +                 'install 'move-docs
>> +                 (lambda* (#:key outputs #:allow-other-keys)
>> +                   (let ((out (assoc-ref outputs "out"))
>> +                         (doc (assoc-ref outputs "doc")))
>> +                     (mkdir-p (string-append doc "/share/graphviz"))
>> +                     (rename-file (string-append out "/share/graphviz/doc")
>> +                                  (string-append doc "/share/graphviz/doc"))
>> +                     #t))
>>                   (alist-cons-after
>> -                  'install 'move-docs
>> +                  'move-docs 'move-guile-bindings
>>                    (lambda* (#:key outputs #:allow-other-keys)
>> -                           (let ((out (assoc-ref outputs "out"))
>> -                                 (doc (assoc-ref outputs "doc")))
>> -                             (mkdir-p (string-append doc "/share/graphviz"))
>> -                             (rename-file (string-append out "/share/graphviz/doc")
>> -                                          (string-append doc "/share/graphviz/doc"))
>> -                             #t))
>> -                  (alist-cons-after
>> -                   'move-docs 'move-guile-bindings
>> -                   (lambda* (#:key outputs #:allow-other-keys)
>> -                     (let* ((out (assoc-ref outputs "out"))
>> -                            (lib (string-append out "/lib"))
>> -                            (extdir (string-append lib
>> -                                                   "/guile/2.0/extensions")))
>> -                       (mkdir-p extdir)
>> -                       (rename-file (string-append
>> -                                     lib "/graphviz/guile/libgv_guile.so")
>> -                                    (string-append extdir
>> -                                                   "/libgv_guile.so"))))
>> -                   %standard-phases)))))
>> +                    (let* ((out (assoc-ref outputs "out"))
>> +                           (lib (string-append out "/lib"))
>> +                           (extdir (string-append lib
>> +                                                  "/guile/2.0/extensions")))
>> +                      (mkdir-p extdir)
>> +                      (rename-file (string-append
>> +                                    lib "/graphviz/guile/libgv_guile.so")
>> +                                   (string-append extdir
>> +                                                  "/libgv_guile.so"))))
>> +                  %standard-phases))))
>
> Ugh. Could you try to convert this to use 'modify-phases' syntax first?
> Please do so in a separate commit since it's a non-trivial change on its
> own. It will make it much clearer what's going on in this patch.
>
> Otherwise this LGTM. Note that we now have at least one 'ksh'
> implementation[0], if you feel like fiddling with the tests ;-)

LGTM too, especially if it’s not as big as the current Graphviz.

I’m fine with you switch to ‘modify-phases’ after this patch too.

With 970 dependents, this should go to a new ‘staging’ branch to be
merged after ‘core-updates’ is merged.  Fine with you?

Thanks,
Ludo’.

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

* [bug#27657] [PATCH 1/3] gnu: graphviz: Use modify-phases.
  2017-07-11 21:21 [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1 Arun Isaac
       [not found] ` <handler.27657.B.149980812621470.ack@debbugs.gnu.org>
  2017-07-11 21:52 ` [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1 Marius Bakke
@ 2017-07-12 14:25 ` Arun Isaac
  2017-07-12 20:07   ` Marius Bakke
  2017-07-14 11:37 ` [bug#27657] [PATCH] gnu: graphviz: Remove unnecessary inputs Arun Isaac
  2017-07-20  1:35 ` [bug#27657] [PATCH] gnu: wayland: Improve fix-graphviz phase Arun Isaac
  4 siblings, 1 reply; 22+ messages in thread
From: Arun Isaac @ 2017-07-12 14:25 UTC (permalink / raw)
  To: 27657

* gnu/packages/graphviz.scm (graphviz): Re-indent.
[arguments]: Use modify-phases instead of alist-cons-before and
alist-cons-after.
---
 gnu/packages/graphviz.scm | 77 +++++++++++++++++++++++------------------------
 1 file changed, 38 insertions(+), 39 deletions(-)

diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
index d47d45e52..f236788e0 100644
--- a/gnu/packages/graphviz.scm
+++ b/gnu/packages/graphviz.scm
@@ -46,49 +46,48 @@
     (name "graphviz")
     (version "2.38.0")
     (source (origin
-             (method url-fetch)
-             (uri (string-append
-                   "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-"
-                   version ".tar.gz"))
-             (sha256
-              (base32
-               "17l5czpvv5ilmg17frg0w4qwf89jzh2aglm9fgx0l0aakn6j7al1"))))
+              (method url-fetch)
+              (uri (string-append
+                    "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "17l5czpvv5ilmg17frg0w4qwf89jzh2aglm9fgx0l0aakn6j7al1"))))
     (build-system gnu-build-system)
     (arguments
      ;; FIXME: rtest/rtest.sh is a ksh script (!).  Add ksh as an input.
      '(#:tests? #f
-
-       #:phases (alist-cons-before
-                 'build 'pre-build
-                 (lambda _
-                   ;; Work around bogus makefile when using an external
-                   ;; libltdl.  Failing to do so, one hits this error:
-                   ;; "No rule to make target `-lltdl', needed by `libgvc.la'."
-                   (substitute* "lib/gvc/Makefile"
-                     (("am__append_5 *=.*")
-                      "am_append_5 =\n")))
-                 (alist-cons-after
-                  'install 'move-docs
-                  (lambda* (#:key outputs #:allow-other-keys)
-                           (let ((out (assoc-ref outputs "out"))
-                                 (doc (assoc-ref outputs "doc")))
-                             (mkdir-p (string-append doc "/share/graphviz"))
-                             (rename-file (string-append out "/share/graphviz/doc")
-                                          (string-append doc "/share/graphviz/doc"))
-                             #t))
-                  (alist-cons-after
-                   'move-docs 'move-guile-bindings
-                   (lambda* (#:key outputs #:allow-other-keys)
-                     (let* ((out (assoc-ref outputs "out"))
-                            (lib (string-append out "/lib"))
-                            (extdir (string-append lib
-                                                   "/guile/2.0/extensions")))
-                       (mkdir-p extdir)
-                       (rename-file (string-append
-                                     lib "/graphviz/guile/libgv_guile.so")
-                                    (string-append extdir
-                                                   "/libgv_guile.so"))))
-                   %standard-phases)))))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'pre-build
+           (lambda _
+             ;; Work around bogus makefile when using an external
+             ;; libltdl.  Failing to do so, one hits this error:
+             ;; "No rule to make target `-lltdl', needed by `libgvc.la'."
+             (substitute* "lib/gvc/Makefile"
+               (("am__append_5 *=.*")
+                "am_append_5 =\n"))))
+         (add-after
+             'install 'move-docs
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out"))
+                   (doc (assoc-ref outputs "doc")))
+               (mkdir-p (string-append doc "/share/graphviz"))
+               (rename-file (string-append out "/share/graphviz/doc")
+                            (string-append doc "/share/graphviz/doc"))
+               #t)))
+         (add-after
+             'move-docs 'move-guile-bindings
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (lib (string-append out "/lib"))
+                    (extdir (string-append lib
+                                           "/guile/2.0/extensions")))
+               (mkdir-p extdir)
+               (rename-file (string-append
+                             lib "/graphviz/guile/libgv_guile.so")
+                            (string-append extdir
+                                           "/libgv_guile.so"))))))))
     (inputs
      `(("libXrender" ,libxrender)
        ("libX11" ,libx11)
-- 
2.12.2


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

* [bug#27657] Acknowledgement ([PATCH] gnu: graphviz: Update to 2.40.1.)
  2017-07-11 22:07     ` Marius Bakke
@ 2017-07-12 14:32       ` Arun Isaac
  0 siblings, 0 replies; 22+ messages in thread
From: Arun Isaac @ 2017-07-12 14:32 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 27657


Marius Bakke writes:

> I have a slight preference for sticking with 'what works' until we
> know which one to use. YMMV :-)

I agree with Tobias and you on this one. Let's not change the URL.

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

* [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1.
  2017-07-11 21:52 ` [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1 Marius Bakke
  2017-07-12 12:19   ` Ludovic Courtès
@ 2017-07-12 14:41   ` Arun Isaac
  1 sibling, 0 replies; 22+ messages in thread
From: Arun Isaac @ 2017-07-12 14:41 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 27657


> Otherwise this LGTM. Note that we now have at least one 'ksh'
> implementation[0], if you feel like fiddling with the tests ;-)

I tried loksh, but it seems to be missing ksh93 features required by the
tests. I also packaged mksh, and tried that, but that too is missing
required ksh93 features. Perhaps, only the original AT&T korn shell has
the ksh93 features. But, I am unable to find the source code for it.

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

* [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1.
  2017-07-12 12:19   ` Ludovic Courtès
@ 2017-07-12 14:44     ` Arun Isaac
       [not found]     ` <6e577250.AEQAM_HdOgAAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZjXO@mailjet.com>
  2017-07-14 11:15     ` Arun Isaac
  2 siblings, 0 replies; 22+ messages in thread
From: Arun Isaac @ 2017-07-12 14:44 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 27657


Ludovic Courtès writes:

> With 970 dependents, this should go to a new ‘staging’ branch to be
> merged after ‘core-updates’ is merged.  Fine with you?

Are you asking me? If so, yes, I am fine with it.

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

* [bug#27657] [PATCH 1/3] gnu: graphviz: Use modify-phases.
  2017-07-12 14:25 ` [bug#27657] [PATCH 1/3] gnu: graphviz: Use modify-phases Arun Isaac
@ 2017-07-12 20:07   ` Marius Bakke
  0 siblings, 0 replies; 22+ messages in thread
From: Marius Bakke @ 2017-07-12 20:07 UTC (permalink / raw)
  To: Arun Isaac, 27657

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

Arun Isaac <arunisaac@systemreboot.net> writes:

> * gnu/packages/graphviz.scm (graphviz): Re-indent.
> [arguments]: Use modify-phases instead of alist-cons-before and
> alist-cons-after.

Thanks!

[...]

> -       #:phases (alist-cons-before
> -                 'build 'pre-build
> -                 (lambda _
> -                   ;; Work around bogus makefile when using an external
> -                   ;; libltdl.  Failing to do so, one hits this error:
> -                   ;; "No rule to make target `-lltdl', needed by `libgvc.la'."
> -                   (substitute* "lib/gvc/Makefile"
> -                     (("am__append_5 *=.*")
> -                      "am_append_5 =\n")))
> -                 (alist-cons-after
> -                  'install 'move-docs
> -                  (lambda* (#:key outputs #:allow-other-keys)
> -                           (let ((out (assoc-ref outputs "out"))
> -                                 (doc (assoc-ref outputs "doc")))
> -                             (mkdir-p (string-append doc "/share/graphviz"))
> -                             (rename-file (string-append out "/share/graphviz/doc")
> -                                          (string-append doc "/share/graphviz/doc"))
> -                             #t))
> -                  (alist-cons-after
> -                   'move-docs 'move-guile-bindings
> -                   (lambda* (#:key outputs #:allow-other-keys)
> -                     (let* ((out (assoc-ref outputs "out"))
> -                            (lib (string-append out "/lib"))
> -                            (extdir (string-append lib
> -                                                   "/guile/2.0/extensions")))
> -                       (mkdir-p extdir)
> -                       (rename-file (string-append
> -                                     lib "/graphviz/guile/libgv_guile.so")
> -                                    (string-append extdir
> -                                                   "/libgv_guile.so"))))
> -                   %standard-phases)))))
> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-before 'build 'pre-build
> +           (lambda _
> +             ;; Work around bogus makefile when using an external
> +             ;; libltdl.  Failing to do so, one hits this error:
> +             ;; "No rule to make target `-lltdl', needed by `libgvc.la'."
> +             (substitute* "lib/gvc/Makefile"
> +               (("am__append_5 *=.*")
> +                "am_append_5 =\n"))))
> +         (add-after
> +             'install 'move-docs

Maybe change this to current conventions while at it?

> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let ((out (assoc-ref outputs "out"))
> +                   (doc (assoc-ref outputs "doc")))
> +               (mkdir-p (string-append doc "/share/graphviz"))
> +               (rename-file (string-append out "/share/graphviz/doc")
> +                            (string-append doc "/share/graphviz/doc"))
> +               #t)))
> +         (add-after
> +             'move-docs 'move-guile-bindings

And this.

> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let* ((out (assoc-ref outputs "out"))
> +                    (lib (string-append out "/lib"))
> +                    (extdir (string-append lib
> +                                           "/guile/2.0/extensions")))
> +               (mkdir-p extdir)
> +               (rename-file (string-append
> +                             lib "/graphviz/guile/libgv_guile.so")
> +                            (string-append extdir
> +                                           "/libgv_guile.so"))))))))

Similarly, (rename-file ...) has an unspecified return value, so please
add a #t at the end of this phase (even though it wasn't before). LGTM!

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

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

* [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1.
       [not found]     ` <6e577250.AEQAM_HdOgAAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZjXO@mailjet.com>
@ 2017-07-12 20:48       ` Ludovic Courtès
  0 siblings, 0 replies; 22+ messages in thread
From: Ludovic Courtès @ 2017-07-12 20:48 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 27657

Arun Isaac <arunisaac@systemreboot.net> skribis:

> Ludovic Courtès writes:
>
>> With 970 dependents, this should go to a new ‘staging’ branch to be
>> merged after ‘core-updates’ is merged.  Fine with you?
>
> Are you asking me? If so, yes, I am fine with it.

Yes I was asking you.  :-)

Thanks,
Ludo’.

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

* [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1.
  2017-07-12 12:19   ` Ludovic Courtès
  2017-07-12 14:44     ` Arun Isaac
       [not found]     ` <6e577250.AEQAM_HdOgAAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZjXO@mailjet.com>
@ 2017-07-14 11:15     ` Arun Isaac
  2017-07-14 13:58       ` Leo Famulari
  2 siblings, 1 reply; 22+ messages in thread
From: Arun Isaac @ 2017-07-14 11:15 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 27657


> With 970 dependents, this should go to a new ‘staging’ branch to be
> merged after ‘core-updates’ is merged.  Fine with you?

I've made the changes suggested by Marius Bakke and pushed to a new
staging branch.

However, there is more about the graphviz package:

Several of the inputs don't seem to be required. graphviz builds
successfully and without any change of features (as reported by the
configure phase) when built without those inputs.

Also, I think the swig input should actually be a native input.

I'll shortly send a patch with these changes. Do review and offer
feedback.

Thanks.

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

* [bug#27657] [PATCH] gnu: graphviz: Remove unnecessary inputs.
  2017-07-11 21:21 [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1 Arun Isaac
                   ` (2 preceding siblings ...)
  2017-07-12 14:25 ` [bug#27657] [PATCH 1/3] gnu: graphviz: Use modify-phases Arun Isaac
@ 2017-07-14 11:37 ` Arun Isaac
  2017-07-17  9:31   ` Ludovic Courtès
  2017-07-20  1:35 ` [bug#27657] [PATCH] gnu: wayland: Improve fix-graphviz phase Arun Isaac
  4 siblings, 1 reply; 22+ messages in thread
From: Arun Isaac @ 2017-07-14 11:37 UTC (permalink / raw)
  To: 27657

* gnu/packages/graphviz.scm (graphviz)[inputs]: Remove libxrender, libx11,
libxaw, expat, libjpeg, libpng.
Move guile and swig to native-inputs.
[native-inputs]: Remove bison.
---
 gnu/packages/graphviz.scm | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
index 6724ba6d7..c758a63b2 100644
--- a/gnu/packages/graphviz.scm
+++ b/gnu/packages/graphviz.scm
@@ -80,23 +80,17 @@
                                            "/libgv_guile.so"))
                #t))))))
     (inputs
-     `(("libXrender" ,libxrender)
-       ("libX11" ,libx11)
-       ("gts" ,gts)
+     `(("gts" ,gts)
        ("gd" ,gd)                                 ; FIXME: Our GD is too old
-       ("guile" ,guile-2.0)                       ;Guile bindings
-       ("swig" ,swig)
        ("pango" ,pango)
        ("fontconfig" ,fontconfig)
        ("freetype" ,freetype)
        ("libltdl" ,libltdl)
-       ("libXaw" ,libxaw)
-       ("expat" ,expat)
-       ("libjpeg" ,libjpeg)
-       ("libpng" ,libpng)))
+       ("libXaw" ,libxaw)))
     (native-inputs
-     `(("bison" ,bison)
-       ("pkg-config" ,pkg-config)))
+     `(("guile" ,guile-2.0)                       ;Guile bindings
+       ("pkg-config" ,pkg-config)
+       ("swig" ,swig)))
     (outputs '("out" "doc"))                      ; 5 MiB of html + pdfs
     (home-page "http://www.graphviz.org/")
     (synopsis "Graph visualization software")
-- 
2.12.2


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

* [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1.
  2017-07-14 11:15     ` Arun Isaac
@ 2017-07-14 13:58       ` Leo Famulari
  2017-07-14 14:16         ` Arun Isaac
  0 siblings, 1 reply; 22+ messages in thread
From: Leo Famulari @ 2017-07-14 13:58 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 27657

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

On Fri, Jul 14, 2017 at 04:45:25PM +0530, Arun Isaac wrote:
> 
> > With 970 dependents, this should go to a new ‘staging’ branch to be
> > merged after ‘core-updates’ is merged.  Fine with you?
> 
> I've made the changes suggested by Marius Bakke and pushed to a new
> staging branch.
> 
> However, there is more about the graphviz package:
> 
> Several of the inputs don't seem to be required. graphviz builds
> successfully and without any change of features (as reported by the
> configure phase) when built without those inputs.
> 
> Also, I think the swig input should actually be a native input.
> 
> I'll shortly send a patch with these changes. Do review and offer
> feedback.

Did you compare our package to the Graphviz project's annotated list of
dependencies, found in the link below?

http://www.graphviz.org/Download_source.php

Some of the removed dependencies seem to have a use in graphviz.

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

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

* [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1.
  2017-07-14 13:58       ` Leo Famulari
@ 2017-07-14 14:16         ` Arun Isaac
  0 siblings, 0 replies; 22+ messages in thread
From: Arun Isaac @ 2017-07-14 14:16 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 27657


>> Several of the inputs don't seem to be required. graphviz builds
>> successfully and without any change of features (as reported by the
>> configure phase) when built without those inputs.
>>
>> Also, I think the swig input should actually be a native input.
>>
>> I'll shortly send a patch with these changes. Do review and offer
>> feedback.
>
> Did you compare our package to the Graphviz project's annotated list of
> dependencies, found in the link below?
>
> http://www.graphviz.org/Download_source.php
>
> Some of the removed dependencies seem to have a use in graphviz.

Going by that list, I have wrongly removed only expat and libpng. What
about the other inputs I have removed?

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

* [bug#27657] [PATCH] gnu: graphviz: Remove unnecessary inputs.
  2017-07-14 11:37 ` [bug#27657] [PATCH] gnu: graphviz: Remove unnecessary inputs Arun Isaac
@ 2017-07-17  9:31   ` Ludovic Courtès
  2017-07-20  1:38     ` Arun Isaac
       [not found]     ` <cc8cb77c.ADkAACVAtRsAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZcAmW@mailjet.com>
  0 siblings, 2 replies; 22+ messages in thread
From: Ludovic Courtès @ 2017-07-17  9:31 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 27657

Hello,

Arun Isaac <arunisaac@systemreboot.net> skribis:

> * gnu/packages/graphviz.scm (graphviz)[inputs]: Remove libxrender, libx11,
> libxaw, expat, libjpeg, libpng.
> Move guile and swig to native-inputs.
> [native-inputs]: Remove bison.

Guile is most likely needed at run time, so it needs to be in ‘inputs’,
possibly in addition to being in ‘native-inputs’.

SWIG may also have a run-time support library, so it would need to be in
‘inputs’ in addition to ‘native-inputs’.

Now, all this is theoretical until we actually try to cross-build
Graphviz.

So I think the patch is OK, with or without changes along the lines
above.

Thanks,
Ludo’.

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

* [bug#27657] [PATCH] gnu: wayland: Improve fix-graphviz phase.
  2017-07-11 21:21 [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1 Arun Isaac
                   ` (3 preceding siblings ...)
  2017-07-14 11:37 ` [bug#27657] [PATCH] gnu: graphviz: Remove unnecessary inputs Arun Isaac
@ 2017-07-20  1:35 ` Arun Isaac
  2017-07-20  8:34   ` Ludovic Courtès
  4 siblings, 1 reply; 22+ messages in thread
From: Arun Isaac @ 2017-07-20  1:35 UTC (permalink / raw)
  To: 27657

* gnu/packages/freedesktop.scm (wayland)[arguments]: Return #t from
fix-graphviz phase. Add punctuation and upstream bug report link to comments.
---
 gnu/packages/freedesktop.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index d0d7604b1..df2fe787f 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -371,13 +371,15 @@ Python.")
      `(#:parallel-tests? #f
        #:phases
        (modify-phases %standard-phases
-         ;; Remove record shapes to workaround graphviz 2.40.1 problems
+         ;; Remove record shapes to workaround graphviz 2.40.1 problems.
          ;; http://www.graphviz.org/content/i-havent-been-able-render-these-files-graphviz-226
-         ;; This will likely be fixed upstream in the next release
+         ;; This will likely be fixed upstream in the next release.
+         ;; https://lists.freedesktop.org/archives/wayland-devel/2017-June/034218.html
          (add-before 'build 'fix-graphviz
            (lambda _
              (substitute* "doc/doxygen/dot/x-architecture.gv"
-               (("Mrecord") "none")))))))
+               (("Mrecord") "none"))
+             #t)))))
     (native-inputs
      `(("doxygen" ,doxygen)
        ("graphviz" ,graphviz)
-- 
2.12.2


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

* [bug#27657] [PATCH] gnu: graphviz: Remove unnecessary inputs.
  2017-07-17  9:31   ` Ludovic Courtès
@ 2017-07-20  1:38     ` Arun Isaac
       [not found]     ` <cc8cb77c.ADkAACVAtRsAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZcAmW@mailjet.com>
  1 sibling, 0 replies; 22+ messages in thread
From: Arun Isaac @ 2017-07-20  1:38 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 27657


Ludovic Courtès writes:

>> * gnu/packages/graphviz.scm (graphviz)[inputs]: Remove libxrender, libx11,
>> libxaw, expat, libjpeg, libpng.
>> Move guile and swig to native-inputs.
>> [native-inputs]: Remove bison.
>
> Guile is most likely needed at run time, so it needs to be in ‘inputs’,
> possibly in addition to being in ‘native-inputs’.
>
> SWIG may also have a run-time support library, so it would need to be in
> ‘inputs’ in addition to ‘native-inputs’.
>
> Now, all this is theoretical until we actually try to cross-build
> Graphviz.

There is much lack of clarity about this patch. No one (including
myself) is sure about what inputs/native-inputs are actually
needed. Let's abandon this patch for now, and come back later if
necessary.

> So I think the patch is OK, with or without changes along the lines
> above.

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

* [bug#27657] [PATCH] gnu: graphviz: Remove unnecessary inputs.
       [not found]     ` <cc8cb77c.ADkAACVAtRsAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZcAmW@mailjet.com>
@ 2017-07-20  8:32       ` Ludovic Courtès
  0 siblings, 0 replies; 22+ messages in thread
From: Ludovic Courtès @ 2017-07-20  8:32 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 27657

Arun Isaac <arunisaac@systemreboot.net> skribis:

> Ludovic Courtès writes:
>
>>> * gnu/packages/graphviz.scm (graphviz)[inputs]: Remove libxrender, libx11,
>>> libxaw, expat, libjpeg, libpng.
>>> Move guile and swig to native-inputs.
>>> [native-inputs]: Remove bison.
>>
>> Guile is most likely needed at run time, so it needs to be in ‘inputs’,
>> possibly in addition to being in ‘native-inputs’.
>>
>> SWIG may also have a run-time support library, so it would need to be in
>> ‘inputs’ in addition to ‘native-inputs’.
>>
>> Now, all this is theoretical until we actually try to cross-build
>> Graphviz.
>
> There is much lack of clarity about this patch. No one (including
> myself) is sure about what inputs/native-inputs are actually
> needed. Let's abandon this patch for now, and come back later if
> necessary.

Sounds reasonable.

Ludo’.

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

* [bug#27657] [PATCH] gnu: wayland: Improve fix-graphviz phase.
  2017-07-20  1:35 ` [bug#27657] [PATCH] gnu: wayland: Improve fix-graphviz phase Arun Isaac
@ 2017-07-20  8:34   ` Ludovic Courtès
  2017-07-20 14:13     ` bug#27657: " Arun Isaac
  0 siblings, 1 reply; 22+ messages in thread
From: Ludovic Courtès @ 2017-07-20  8:34 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 27657

Arun Isaac <arunisaac@systemreboot.net> skribis:

> * gnu/packages/freedesktop.scm (wayland)[arguments]: Return #t from
> fix-graphviz phase. Add punctuation and upstream bug report link to comments.

OK for ‘staging’, thank you!

Ludo’.

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

* bug#27657: [PATCH] gnu: wayland: Improve fix-graphviz phase.
  2017-07-20  8:34   ` Ludovic Courtès
@ 2017-07-20 14:13     ` Arun Isaac
  0 siblings, 0 replies; 22+ messages in thread
From: Arun Isaac @ 2017-07-20 14:13 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 27657-done


Ludovic Courtès writes:

> Arun Isaac <arunisaac@systemreboot.net> skribis:
>
>> * gnu/packages/freedesktop.scm (wayland)[arguments]: Return #t from
>> fix-graphviz phase. Add punctuation and upstream bug report link to comments.
>
> OK for ‘staging’, thank you!

Pushed!

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

end of thread, other threads:[~2017-07-20 14:14 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-11 21:21 [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1 Arun Isaac
     [not found] ` <handler.27657.B.149980812621470.ack@debbugs.gnu.org>
2017-07-11 21:34   ` [bug#27657] Acknowledgement ([PATCH] gnu: graphviz: Update to 2.40.1.) Arun Isaac
2017-07-11 22:02     ` Tobias Geerinckx-Rice
2017-07-11 22:07     ` Marius Bakke
2017-07-12 14:32       ` Arun Isaac
2017-07-11 21:52 ` [bug#27657] [PATCH] gnu: graphviz: Update to 2.40.1 Marius Bakke
2017-07-12 12:19   ` Ludovic Courtès
2017-07-12 14:44     ` Arun Isaac
     [not found]     ` <6e577250.AEQAM_HdOgAAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZjXO@mailjet.com>
2017-07-12 20:48       ` Ludovic Courtès
2017-07-14 11:15     ` Arun Isaac
2017-07-14 13:58       ` Leo Famulari
2017-07-14 14:16         ` Arun Isaac
2017-07-12 14:41   ` Arun Isaac
2017-07-12 14:25 ` [bug#27657] [PATCH 1/3] gnu: graphviz: Use modify-phases Arun Isaac
2017-07-12 20:07   ` Marius Bakke
2017-07-14 11:37 ` [bug#27657] [PATCH] gnu: graphviz: Remove unnecessary inputs Arun Isaac
2017-07-17  9:31   ` Ludovic Courtès
2017-07-20  1:38     ` Arun Isaac
     [not found]     ` <cc8cb77c.ADkAACVAtRsAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZcAmW@mailjet.com>
2017-07-20  8:32       ` Ludovic Courtès
2017-07-20  1:35 ` [bug#27657] [PATCH] gnu: wayland: Improve fix-graphviz phase Arun Isaac
2017-07-20  8:34   ` Ludovic Courtès
2017-07-20 14:13     ` bug#27657: " Arun Isaac

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.