unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#35930] haskell Setup.hs-related changes
@ 2019-05-27 19:52 Robert Vollmert
  2019-05-27 19:52 ` [bug#35934] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Robert Vollmert @ 2019-05-27 19:52 UTC (permalink / raw)
  To: 35930

This primarily moves the substitution of missing Setup.hs files to
haskell-build-system. There was already duplicate code in a number
of packages to generated boilerplate Setup.hs, and I ran into a
couple more while trying to import some other packages.

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

* [bug#35934] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step
  2019-05-27 19:52 [bug#35930] haskell Setup.hs-related changes Robert Vollmert
@ 2019-05-27 19:52 ` Robert Vollmert
  2019-05-27 19:52 ` [bug#35931] [PATCH 2/4] guix: haskell-build-system: correct haddock phase documentation Robert Vollmert
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Robert Vollmert @ 2019-05-27 19:52 UTC (permalink / raw)
  To: 35934; +Cc: Robert Vollmert

haskell-build-system already uses whichever of Setup.hs and
Setup.lhs exists.

* gnu/packages/haskell.scm (ghc-easy-plot): don't rename
Setup.lhs to Setup.hs
---
 gnu/packages/haskell.scm | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 33c9c6484d..44b9e9066a 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -8063,10 +8063,6 @@ interface for statistics based on hmatrix and GSL.")
         (base32 "18kndgvdj2apjpfga6fp7m16y1gx8zrwp3c5vfj03sx4v6jvciqk"))))
     (build-system haskell-build-system)
     (propagated-inputs `(("gnuplot" ,gnuplot)))
-    (arguments
-     `(#:phases (modify-phases %standard-phases
-                  (add-after 'unpack 'fix-setup-suffix
-                    (lambda _ (rename-file "Setup.lhs" "Setup.hs") #t)))))
     (home-page "https://hub.darcs.net/scravy/easyplot")
     (synopsis "Haskell plotting library based on gnuplot")
     (description "This package provides a plotting library for
-- 
2.20.1 (Apple Git-117)

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

* [bug#35931] [PATCH 2/4] guix: haskell-build-system: correct haddock phase documentation
  2019-05-27 19:52 [bug#35930] haskell Setup.hs-related changes Robert Vollmert
  2019-05-27 19:52 ` [bug#35934] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
@ 2019-05-27 19:52 ` Robert Vollmert
  2019-05-27 19:52 ` [bug#35932] [PATCH 3/4] guix: haskell-build-system: generate Setup.hs if not exists Robert Vollmert
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Robert Vollmert @ 2019-05-27 19:52 UTC (permalink / raw)
  To: 35931; +Cc: Robert Vollmert

* guix/build/haskell-build-system.scm (haddock): Correct docstring
---
 guix/build/haskell-build-system.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/build/haskell-build-system.scm b/guix/build/haskell-build-system.scm
index 23d97e6602..5c5b32322b 100644
--- a/guix/build/haskell-build-system.scm
+++ b/guix/build/haskell-build-system.scm
@@ -260,7 +260,7 @@ given Haskell package."
   #t)
 
 (define* (haddock #:key outputs haddock? haddock-flags #:allow-other-keys)
-  "Run the test suite of a given Haskell package."
+  "Generate haddock documentation of a given Haskell package."
   (when haddock?
     (run-setuphs "haddock" haddock-flags))
   #t)
-- 
2.20.1 (Apple Git-117)

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

* [bug#35932] [PATCH 3/4] guix: haskell-build-system: generate Setup.hs if not exists
  2019-05-27 19:52 [bug#35930] haskell Setup.hs-related changes Robert Vollmert
  2019-05-27 19:52 ` [bug#35934] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
  2019-05-27 19:52 ` [bug#35931] [PATCH 2/4] guix: haskell-build-system: correct haddock phase documentation Robert Vollmert
@ 2019-05-27 19:52 ` Robert Vollmert
  2019-05-27 19:52 ` [bug#35933] [PATCH 4/4] gnu: haskell: leave Setup.hs generation to build system Robert Vollmert
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Robert Vollmert @ 2019-05-27 19:52 UTC (permalink / raw)
  To: 35932; +Cc: Robert Vollmert

The default Setup.hs is boilerplate that is frequently left out of
source packages, causing build failure for package definitions as
generated by `guix import hackage`. Compare
<https://github.com/phadej/time-compat/issues/4>

* guix/build/haskell-build-system.scm: Generate Setup.hs if missing,
after unpack phase.
---
 guix/build/haskell-build-system.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/guix/build/haskell-build-system.scm b/guix/build/haskell-build-system.scm
index 5c5b32322b..0c648e510f 100644
--- a/guix/build/haskell-build-system.scm
+++ b/guix/build/haskell-build-system.scm
@@ -275,9 +275,21 @@ given Haskell package."
       (_ (error "Could not find a Cabal file to patch."))))
   #t)
 
+(define* (generate-setup #:rest empty)
+  "Generate boilerplate Setup.hs if missing."
+  (when (not (or (file-exists? "Setup.hs")
+                 (file-exists? "Setup.lhs")))
+    (format #t "generating missing Setup.hs~%")
+    (with-output-to-file "Setup.hs"
+      (lambda ()
+        (format #t "import Distribution.Simple~%")
+        (format #t "main = defaultMain~%"))))
+  #t)
+
 (define %standard-phases
   (modify-phases gnu:%standard-phases
     (add-after 'unpack 'patch-cabal-file patch-cabal-file)
+    (add-after 'unpack 'generate-setup generate-setup)
     (delete 'bootstrap)
     (add-before 'configure 'setup-compiler setup-compiler)
     (add-before 'install 'haddock haddock)
-- 
2.20.1 (Apple Git-117)

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

* [bug#35933] [PATCH 4/4] gnu: haskell: leave Setup.hs generation to build system
  2019-05-27 19:52 [bug#35930] haskell Setup.hs-related changes Robert Vollmert
                   ` (2 preceding siblings ...)
  2019-05-27 19:52 ` [bug#35932] [PATCH 3/4] guix: haskell-build-system: generate Setup.hs if not exists Robert Vollmert
@ 2019-05-27 19:52 ` Robert Vollmert
  2019-05-27 19:56 ` [bug#35930] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
  2019-06-13  8:36 ` [bug#35930] haskell Setup.hs-related changes Ludovic Courtès
  5 siblings, 0 replies; 13+ messages in thread
From: Robert Vollmert @ 2019-05-27 19:52 UTC (permalink / raw)
  To: 35933; +Cc: Robert Vollmert

Remove explicit Setup.hs generation from the configure step
now that haskell-build-system does it.

* gnu/packages/haskell.scm (ghc-foundation, ghc-inline-c,
ghc-inline-c-cpp, ghc-rio): Don't generate Setup.hs
---
 gnu/packages/haskell.scm | 42 ----------------------------------------
 1 file changed, 42 deletions(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 44b9e9066a..160b0a1fca 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -9688,16 +9688,6 @@ packages.")
         (base32
          "1q43y8wfj0wf9gdq2kzphwjwq6m5pvryy1lqgk954aq5z3ks1lsf"))))
     (build-system haskell-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'add-setup-script
-           (lambda _
-             ;; The usual "Setup.hs" script is missing from the source.
-             (with-output-to-file "Setup.hs"
-               (lambda ()
-                 (format #t "import Distribution.Simple~%")
-                 (format #t "main = defaultMain~%"))))))))
     (inputs `(("ghc-basement" ,ghc-basement)))
     (home-page "https://github.com/haskell-foundation/foundation")
     (synopsis "Alternative prelude with batteries and no dependencies")
@@ -10575,16 +10565,6 @@ widths to the Char type.")
         (base32
          "064h8a4hp53a479d3ak0vmqbx8hi0cpg7zn4wp23rjy26dka8p7g"))))
     (build-system haskell-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'add-setup-script
-           (lambda _
-             ;; The usual "Setup.hs" script is missing from the source.
-             (with-output-to-file "Setup.hs"
-               (lambda ()
-                 (format #t "import Distribution.Simple~%")
-                 (format #t "main = defaultMain~%"))))))))
     (inputs
      `(("ghc-exceptions" ,ghc-exceptions)
        ("ghc-hashable" ,ghc-hashable)
@@ -11107,17 +11087,6 @@ DOS/Windows paths and markup languages (such as XML).")
         (base32
          "0vbfrsqsi7mdziqsnj68bsqlwbqxxhvrmy9rv6w8z18d1m8w3n6h"))))
     (build-system haskell-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'create-Setup.hs
-           (lambda _
-             (with-output-to-file "Setup.hs"
-               (lambda _
-                 (display "\
-import Distribution.Simple
-main = defaultMain")))
-             #t)))))
     (inputs
      `(("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
        ("ghc-cryptohash" ,ghc-cryptohash)
@@ -11251,17 +11220,6 @@ handling wrong.")
         (base32
          "1rk7fmpkmxw9hhwr8df29kadnf0ybnwj64ggdbnsdrpfyhnkisci"))))
     (build-system haskell-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'create-Setup.hs
-           (lambda _
-             (with-output-to-file "Setup.hs"
-               (lambda _
-                 (display "\
-import Distribution.Simple
-main = defaultMain")))
-             #t)))))
     (inputs
      `(("ghc-inline-c" ,ghc-inline-c)
        ("ghc-safe-exceptions" ,ghc-safe-exceptions)))
-- 
2.20.1 (Apple Git-117)

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

* [bug#35930] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step
  2019-05-27 19:52 [bug#35930] haskell Setup.hs-related changes Robert Vollmert
                   ` (3 preceding siblings ...)
  2019-05-27 19:52 ` [bug#35933] [PATCH 4/4] gnu: haskell: leave Setup.hs generation to build system Robert Vollmert
@ 2019-05-27 19:56 ` Robert Vollmert
  2019-05-27 19:56   ` [bug#35930] [PATCH 2/4] guix: haskell-build-system: correct haddock phase documentation Robert Vollmert
                     ` (2 more replies)
  2019-06-13  8:36 ` [bug#35930] haskell Setup.hs-related changes Ludovic Courtès
  5 siblings, 3 replies; 13+ messages in thread
From: Robert Vollmert @ 2019-05-27 19:56 UTC (permalink / raw)
  To: 35930; +Cc: Robert Vollmert

haskell-build-system already uses whichever of Setup.hs and
Setup.lhs exists.

* gnu/packages/haskell.scm (ghc-easy-plot): don't rename
Setup.lhs to Setup.hs
---
 gnu/packages/haskell.scm | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 33c9c6484d..44b9e9066a 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -8063,10 +8063,6 @@ interface for statistics based on hmatrix and GSL.")
         (base32 "18kndgvdj2apjpfga6fp7m16y1gx8zrwp3c5vfj03sx4v6jvciqk"))))
     (build-system haskell-build-system)
     (propagated-inputs `(("gnuplot" ,gnuplot)))
-    (arguments
-     `(#:phases (modify-phases %standard-phases
-                  (add-after 'unpack 'fix-setup-suffix
-                    (lambda _ (rename-file "Setup.lhs" "Setup.hs") #t)))))
     (home-page "https://hub.darcs.net/scravy/easyplot")
     (synopsis "Haskell plotting library based on gnuplot")
     (description "This package provides a plotting library for
-- 
2.20.1 (Apple Git-117)

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

* [bug#35930] [PATCH 2/4] guix: haskell-build-system: correct haddock phase documentation
  2019-05-27 19:56 ` [bug#35930] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
@ 2019-05-27 19:56   ` Robert Vollmert
  2019-05-27 19:56   ` [bug#35930] [PATCH 3/4] guix: haskell-build-system: generate Setup.hs if not exists Robert Vollmert
  2019-05-27 19:56   ` [bug#35930] [PATCH 4/4] gnu: haskell: leave Setup.hs generation to build system Robert Vollmert
  2 siblings, 0 replies; 13+ messages in thread
From: Robert Vollmert @ 2019-05-27 19:56 UTC (permalink / raw)
  To: 35930; +Cc: Robert Vollmert

* guix/build/haskell-build-system.scm (haddock): Correct docstring
---
 guix/build/haskell-build-system.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/build/haskell-build-system.scm b/guix/build/haskell-build-system.scm
index 23d97e6602..5c5b32322b 100644
--- a/guix/build/haskell-build-system.scm
+++ b/guix/build/haskell-build-system.scm
@@ -260,7 +260,7 @@ given Haskell package."
   #t)
 
 (define* (haddock #:key outputs haddock? haddock-flags #:allow-other-keys)
-  "Run the test suite of a given Haskell package."
+  "Generate haddock documentation of a given Haskell package."
   (when haddock?
     (run-setuphs "haddock" haddock-flags))
   #t)
-- 
2.20.1 (Apple Git-117)

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

* [bug#35930] [PATCH 3/4] guix: haskell-build-system: generate Setup.hs if not exists
  2019-05-27 19:56 ` [bug#35930] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
  2019-05-27 19:56   ` [bug#35930] [PATCH 2/4] guix: haskell-build-system: correct haddock phase documentation Robert Vollmert
@ 2019-05-27 19:56   ` Robert Vollmert
  2019-05-27 19:56   ` [bug#35930] [PATCH 4/4] gnu: haskell: leave Setup.hs generation to build system Robert Vollmert
  2 siblings, 0 replies; 13+ messages in thread
From: Robert Vollmert @ 2019-05-27 19:56 UTC (permalink / raw)
  To: 35930; +Cc: Robert Vollmert

The default Setup.hs is boilerplate that is frequently left out of
source packages, causing build failure for package definitions as
generated by `guix import hackage`. Compare
<https://github.com/phadej/time-compat/issues/4>

* guix/build/haskell-build-system.scm: Generate Setup.hs if missing,
after unpack phase.
---
 guix/build/haskell-build-system.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/guix/build/haskell-build-system.scm b/guix/build/haskell-build-system.scm
index 5c5b32322b..0c648e510f 100644
--- a/guix/build/haskell-build-system.scm
+++ b/guix/build/haskell-build-system.scm
@@ -275,9 +275,21 @@ given Haskell package."
       (_ (error "Could not find a Cabal file to patch."))))
   #t)
 
+(define* (generate-setup #:rest empty)
+  "Generate boilerplate Setup.hs if missing."
+  (when (not (or (file-exists? "Setup.hs")
+                 (file-exists? "Setup.lhs")))
+    (format #t "generating missing Setup.hs~%")
+    (with-output-to-file "Setup.hs"
+      (lambda ()
+        (format #t "import Distribution.Simple~%")
+        (format #t "main = defaultMain~%"))))
+  #t)
+
 (define %standard-phases
   (modify-phases gnu:%standard-phases
     (add-after 'unpack 'patch-cabal-file patch-cabal-file)
+    (add-after 'unpack 'generate-setup generate-setup)
     (delete 'bootstrap)
     (add-before 'configure 'setup-compiler setup-compiler)
     (add-before 'install 'haddock haddock)
-- 
2.20.1 (Apple Git-117)

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

* [bug#35930] [PATCH 4/4] gnu: haskell: leave Setup.hs generation to build system
  2019-05-27 19:56 ` [bug#35930] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
  2019-05-27 19:56   ` [bug#35930] [PATCH 2/4] guix: haskell-build-system: correct haddock phase documentation Robert Vollmert
  2019-05-27 19:56   ` [bug#35930] [PATCH 3/4] guix: haskell-build-system: generate Setup.hs if not exists Robert Vollmert
@ 2019-05-27 19:56   ` Robert Vollmert
  2 siblings, 0 replies; 13+ messages in thread
From: Robert Vollmert @ 2019-05-27 19:56 UTC (permalink / raw)
  To: 35930; +Cc: Robert Vollmert

Remove explicit Setup.hs generation from the configure step
now that haskell-build-system does it.

* gnu/packages/haskell.scm (ghc-foundation, ghc-inline-c,
ghc-inline-c-cpp, ghc-rio): Don't generate Setup.hs
---
 gnu/packages/haskell.scm | 42 ----------------------------------------
 1 file changed, 42 deletions(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 44b9e9066a..160b0a1fca 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -9688,16 +9688,6 @@ packages.")
         (base32
          "1q43y8wfj0wf9gdq2kzphwjwq6m5pvryy1lqgk954aq5z3ks1lsf"))))
     (build-system haskell-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'add-setup-script
-           (lambda _
-             ;; The usual "Setup.hs" script is missing from the source.
-             (with-output-to-file "Setup.hs"
-               (lambda ()
-                 (format #t "import Distribution.Simple~%")
-                 (format #t "main = defaultMain~%"))))))))
     (inputs `(("ghc-basement" ,ghc-basement)))
     (home-page "https://github.com/haskell-foundation/foundation")
     (synopsis "Alternative prelude with batteries and no dependencies")
@@ -10575,16 +10565,6 @@ widths to the Char type.")
         (base32
          "064h8a4hp53a479d3ak0vmqbx8hi0cpg7zn4wp23rjy26dka8p7g"))))
     (build-system haskell-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'add-setup-script
-           (lambda _
-             ;; The usual "Setup.hs" script is missing from the source.
-             (with-output-to-file "Setup.hs"
-               (lambda ()
-                 (format #t "import Distribution.Simple~%")
-                 (format #t "main = defaultMain~%"))))))))
     (inputs
      `(("ghc-exceptions" ,ghc-exceptions)
        ("ghc-hashable" ,ghc-hashable)
@@ -11107,17 +11087,6 @@ DOS/Windows paths and markup languages (such as XML).")
         (base32
          "0vbfrsqsi7mdziqsnj68bsqlwbqxxhvrmy9rv6w8z18d1m8w3n6h"))))
     (build-system haskell-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'create-Setup.hs
-           (lambda _
-             (with-output-to-file "Setup.hs"
-               (lambda _
-                 (display "\
-import Distribution.Simple
-main = defaultMain")))
-             #t)))))
     (inputs
      `(("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
        ("ghc-cryptohash" ,ghc-cryptohash)
@@ -11251,17 +11220,6 @@ handling wrong.")
         (base32
          "1rk7fmpkmxw9hhwr8df29kadnf0ybnwj64ggdbnsdrpfyhnkisci"))))
     (build-system haskell-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'create-Setup.hs
-           (lambda _
-             (with-output-to-file "Setup.hs"
-               (lambda _
-                 (display "\
-import Distribution.Simple
-main = defaultMain")))
-             #t)))))
     (inputs
      `(("ghc-inline-c" ,ghc-inline-c)
        ("ghc-safe-exceptions" ,ghc-safe-exceptions)))
-- 
2.20.1 (Apple Git-117)

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

* [bug#35930] haskell Setup.hs-related changes
  2019-05-27 19:52 [bug#35930] haskell Setup.hs-related changes Robert Vollmert
                   ` (4 preceding siblings ...)
  2019-05-27 19:56 ` [bug#35930] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
@ 2019-06-13  8:36 ` Ludovic Courtès
  2019-06-13 15:57   ` Timothy Sample
  5 siblings, 1 reply; 13+ messages in thread
From: Ludovic Courtès @ 2019-06-13  8:36 UTC (permalink / raw)
  To: Robert Vollmert; +Cc: 35930

Hi Robert,

Robert Vollmert <rob@vllmrt.net> skribis:

> This primarily moves the substitution of missing Setup.hs files to
> haskell-build-system. There was already duplicate code in a number
> of packages to generated boilerplate Setup.hs, and I ran into a
> couple more while trying to import some other packages.

This looks like a welcome and harmless factorization; Timothy, Ricardo:
WDYT?

  https://issues.guix.gnu.org/issue/35930

Thanks,
Ludo’.

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

* [bug#35930] haskell Setup.hs-related changes
  2019-06-13  8:36 ` [bug#35930] haskell Setup.hs-related changes Ludovic Courtès
@ 2019-06-13 15:57   ` Timothy Sample
  2019-06-13 16:20     ` Robert Vollmert
  0 siblings, 1 reply; 13+ messages in thread
From: Timothy Sample @ 2019-06-13 15:57 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 35930, Robert Vollmert

Hi!

Ludovic Courtès <ludo@gnu.org> writes:

> Hi Robert,
>
> Robert Vollmert <rob@vllmrt.net> skribis:
>
>> This primarily moves the substitution of missing Setup.hs files to
>> haskell-build-system. There was already duplicate code in a number
>> of packages to generated boilerplate Setup.hs, and I ran into a
>> couple more while trying to import some other packages.
>
> This looks like a welcome and harmless factorization; Timothy, Ricardo:
> WDYT?
>
>   https://issues.guix.gnu.org/issue/35930

The first patch breaks “ghc-easyplot”.

I’m currently building some packages to test the other patches, and if
everything builds fine, they LGTM with some minor tweaks (which I’ve
already made).  Should I push it to master or staging?  It means
rebuilding all of our Haskell packages, which is a few hundered
packages.

Robert, do you know why the first patch doesn’t work?  Should I just
omit it?


-- Tim

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

* [bug#35930] haskell Setup.hs-related changes
  2019-06-13 15:57   ` Timothy Sample
@ 2019-06-13 16:20     ` Robert Vollmert
  2019-06-14  3:05       ` bug#35930: " Timothy Sample
  0 siblings, 1 reply; 13+ messages in thread
From: Robert Vollmert @ 2019-06-13 16:20 UTC (permalink / raw)
  To: Timothy Sample; +Cc: 35930



> On 13. Jun 2019, at 17:57, Timothy Sample <samplet@ngyro.com> wrote:
>>  https://issues.guix.gnu.org/issue/35930
> 
> The first patch breaks “ghc-easyplot”.
> 
> I’m currently building some packages to test the other patches, and if
> everything builds fine, they LGTM with some minor tweaks (which I’ve
> already made).  Should I push it to master or staging?  It means
> rebuilding all of our Haskell packages, which is a few hundered
> packages.
> 
> Robert, do you know why the first patch doesn’t work?  Should I just
> omit it?

Yes go head, I thought it worked at some point but am very doubtful
right now. I’ll look into it again, but it’s not a necessary part here
I think.

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

* bug#35930: haskell Setup.hs-related changes
  2019-06-13 16:20     ` Robert Vollmert
@ 2019-06-14  3:05       ` Timothy Sample
  0 siblings, 0 replies; 13+ messages in thread
From: Timothy Sample @ 2019-06-14  3:05 UTC (permalink / raw)
  To: Robert Vollmert; +Cc: 35930-done

Hello,

Robert Vollmert <rob@vllmrt.net> writes:

>> On 13. Jun 2019, at 17:57, Timothy Sample <samplet@ngyro.com> wrote:
>>>  https://issues.guix.gnu.org/issue/35930
>> 
>> The first patch breaks “ghc-easyplot”.
>> 
>> I’m currently building some packages to test the other patches, and if
>> everything builds fine, they LGTM with some minor tweaks (which I’ve
>> already made).  Should I push it to master or staging?  It means
>> rebuilding all of our Haskell packages, which is a few hundered
>> packages.
>> 
>> Robert, do you know why the first patch doesn’t work?  Should I just
>> omit it?
>
> Yes go head, I thought it worked at some point but am very doubtful
> right now. I’ll look into it again, but it’s not a necessary part here
> I think.

Pushed to staging, since ~550 packages is well over the manual’s
recommended limit of 300.

I omitted the first patch and merged the last two together (doing so is
consistent with similar changes in the past).

Thanks Robert!


-- Tim

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

end of thread, other threads:[~2019-06-14  3:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27 19:52 [bug#35930] haskell Setup.hs-related changes Robert Vollmert
2019-05-27 19:52 ` [bug#35934] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
2019-05-27 19:52 ` [bug#35931] [PATCH 2/4] guix: haskell-build-system: correct haddock phase documentation Robert Vollmert
2019-05-27 19:52 ` [bug#35932] [PATCH 3/4] guix: haskell-build-system: generate Setup.hs if not exists Robert Vollmert
2019-05-27 19:52 ` [bug#35933] [PATCH 4/4] gnu: haskell: leave Setup.hs generation to build system Robert Vollmert
2019-05-27 19:56 ` [bug#35930] [PATCH 1/4] gnu: ghc-easy-plot: remove superfluous Setup.hs rename step Robert Vollmert
2019-05-27 19:56   ` [bug#35930] [PATCH 2/4] guix: haskell-build-system: correct haddock phase documentation Robert Vollmert
2019-05-27 19:56   ` [bug#35930] [PATCH 3/4] guix: haskell-build-system: generate Setup.hs if not exists Robert Vollmert
2019-05-27 19:56   ` [bug#35930] [PATCH 4/4] gnu: haskell: leave Setup.hs generation to build system Robert Vollmert
2019-06-13  8:36 ` [bug#35930] haskell Setup.hs-related changes Ludovic Courtès
2019-06-13 15:57   ` Timothy Sample
2019-06-13 16:20     ` Robert Vollmert
2019-06-14  3:05       ` bug#35930: " Timothy Sample

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).