Re: [PATCH v8] gnu: Update ldc to 0.17.1.

2016-09-14 Thread Efraim Flashner
On Wed, Sep 14, 2016 at 05:55:37PM +0200, Danny Milosavljevic wrote:
> Hi,
> 
> > With this patch I got:
> > 
> > The following tests FAILED:
> > 238 - std.datetime (Failed)
> > 296 - std.regex.internal.tests (Failed)
> > 568 - std.datetime-debug (Failed)
> > 626 - std.regex.internal.tests-debug (Failed)
> > 670 - dmd-testsuite-debug (Failed)
> 
> Huh really?
> 
> I just cloned the guix git repo into a new directory, applied exactly this 
> patch, bootstrapped, built everything, then did ./pre-inst-env guix package 
> -i ldc and it worked, tests and all... (on x86_64 on GuixSD)
> 
> Which architecture was your test on?
> 
> Can you check what exactly failed? There should be a log in there (if you 
> built it using "--keep-failed" at least).

I'm running guix on debian, on x86_64. I didn't build with -K
unfortunately.

-- 
Efraim Flashner      אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature


Re: [PATCH v8] gnu: Update ldc to 0.17.1.

2016-09-14 Thread Danny Milosavljevic
Hi,

> With this patch I got:
> 
> The following tests FAILED:
> 238 - std.datetime (Failed)
> 296 - std.regex.internal.tests (Failed)
> 568 - std.datetime-debug (Failed)
> 626 - std.regex.internal.tests-debug (Failed)
> 670 - dmd-testsuite-debug (Failed)

Huh really?

I just cloned the guix git repo into a new directory, applied exactly this 
patch, bootstrapped, built everything, then did ./pre-inst-env guix package -i 
ldc and it worked, tests and all... (on x86_64 on GuixSD)

Which architecture was your test on?

Can you check what exactly failed? There should be a log in there (if you built 
it using "--keep-failed" at least).



Re: [PATCH v8] gnu: Update ldc to 0.17.1.

2016-09-14 Thread Ludovic Courtès
Hi Danny,

Here’s what I see in my inbox:

--8<---cut here---start->8---
Yesterday, 21:37 [  10: Danny Milosavljevic] [PATCH v5] gnu: Update ldc to 
0.17.1.
Yesterday, 21:51 [  10: Danny Milosavljevic] [PATCH v6] gnu: Update ldc to 
0.17.1.
Yesterday, 21:56 [  11: Danny Milosavljevic] [PATCH v7] gnu: Update ldc to 
0.17.1.
Yesterday, 22:02 [  60: Stefan Reichör ] New package: python-glances
Yesterday, 22:01 [  11: Danny Milosavljevic    ] [PATCH v8] gnu: Update ldc to 
0.17.1.
--8<---cut here---end--->8---

4 revisions of one patch in 20 minutes without any review in between.
:-)  This can be confusing to potential reviewers!

Ludo’.



Re: [PATCH v8] gnu: Update ldc to 0.17.1.

2016-09-14 Thread Efraim Flashner
On Tue, Sep 13, 2016 at 10:01:39PM +0200, Danny Milosavljevic wrote:
> gnu: Update ldc to 0.17.1.
> 
> * gnu/packages/ldc.scm (ldc): Changed.
> * gnu/packages/patches/ldc-0.17.1-disable-tests.patch: New patch.
> ---
>  gnu/packages/ldc.scm   | 25 ---
>  .../patches/ldc-0.17.1-disable-tests.patch | 86 
> ++
>  2 files changed, 101 insertions(+), 10 deletions(-)
>  create mode 100644 gnu/packages/patches/ldc-0.17.1-disable-tests.patch
> 

> diff --git a/gnu/packages/ldc.scm b/gnu/packages/ldc.scm
> index 560fa49..88f3443 100644
> --- a/gnu/packages/ldc.scm
> +++ b/gnu/packages/ldc.scm
> @@ -29,6 +29,7 @@
>#:use-module (gnu packages compression)
>#:use-module (gnu packages libedit)
>#:use-module (gnu packages llvm)
> +  #:use-module (gnu packages python)
>#:use-module (gnu packages textutils)
>#:use-module (gnu packages zip))
>  
> @@ -76,7 +77,7 @@ and freshness without requiring additional information from 
> the user.")
>  (define-public ldc
>(package
>  (name "ldc")
> -(version "0.16.1")
> +(version "0.17.1")
>  (source (origin
>(method url-fetch)
>(uri (string-append
> @@ -85,10 +86,9 @@ and freshness without requiring additional information 
> from the user.")
>(file-name (string-append name "-" version ".tar.gz"))
>(sha256
> (base32
> -"1jvilxx0rpqmkbja4m69fhd5g09697xq7vyqp2hz4hvxmmmv4j40"
> +"0rwggnbr60jbajfdw11kx058llmwljiss8rrv8df07vaygiv845i"
>  (build-system cmake-build-system)
> -;; LDC currently only supports the x86_64 and i686 architectures.
> -(supported-systems '("x86_64-linux" "i686-linux"))
> +(supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
>  (arguments
>   `(#:phases
> (modify-phases %standard-phases
> @@ -105,10 +105,13 @@ and freshness without requiring additional information 
> from the user.")
>   (add-after 'unpack-submodule-sources 'patch-dmd2
> (lambda* (#:key inputs #:allow-other-keys)
>   (substitute* "dmd2/root/port.c"
> +   (("#include ") "#include ")
> ((" ::isnan") " isnan")
> ((" ::isinf") " isinf")
> -   (("#undef isnan") "")
> -   (("#undef isinf") ""))
> +   (("#undef isnan") "#undef isnan
> +using namespace std;")
> +   (("#undef isinf") "#undef isinf
> +using namespace std;"))
>   #t))
>   (add-after 'unpack-submodule-sources 'patch-phobos
> (lambda* (#:key inputs #:allow-other-keys)
> @@ -130,6 +133,8 @@ and freshness without requiring additional information 
> from the user.")
>   `(("llvm" ,llvm-3.7)
> ("clang" ,clang-3.7)
> ("unzip" ,unzip)
> +   ("python-wrapper" ,python-wrapper) ; Needed for running tests
> +   ("python-lit" ,python-lit) ; Needed for running tests
> ("phobos-src"
>  ,(origin
> (method url-fetch)
> @@ -138,8 +143,8 @@ and freshness without requiring additional information 
> from the user.")
>   version ".tar.gz"))
> (sha256
>  (base32
> - "0sgdj0536c4nb118yiw1f8lqy5d3g3lpg9l99l165lk9xy45l9z4"))
> -   (patches (search-patches "ldc-disable-tests.patch"
> + "17nb1yvqblqj3q42c8nlnwvy823fw6kna28n2b48j4m6kd2w0nan"))
> +   (patches (search-patches "ldc-0.17.1-disable-tests.patch"
> ("druntime-src"
>  ,(origin
> (method url-fetch)
> @@ -148,7 +153,7 @@ and freshness without requiring additional information 
> from the user.")
>   version ".tar.gz"))
> (sha256
>  (base32
> - "0z4mkyddx6c4sy1vqgqvavz55083dsxws681qkh93jh1rpby9yg6"
> + "129j7mfd0vnzaw7i6hr5waxm5cb0qcm8gyawy2xy5avlv8hrw5m4"
> ("dmd-testsuite-src"
>  ,(origin
> (method url-fetch)
> @@ -157,7 +162,7 @@ and freshness without requiring additional information 
> from the user.")
>   version ".tar.gz"))
> (sha256
>  (base32
> - "0yc6miidzgl9k33ygk7xcppmfd6kivqj02cvv4fmkbs3qz4yy3z1"))
> + "18h16lwwmr3k9dh7mcip17il72mz680wnygv9d0mdnivczn80zyv"))
>  (home-page "http://wiki.dlang.org/LDC;)
>  (synopsis "LLVM compiler for the D programming language")
>  (description
> diff --git a/gnu/packages/patches/ldc-0.17.1-disable-tests.patch 
> b/gnu/packages/patches/ldc-0.17.1-disable-tests.patch
> new file mode 100644
> index 000..b213894
> --- /dev/null
> +++ b/gnu/packages/patches/ldc-0.17.1-disable-tests.patch
> @@ -0,0 +1,86 @@
> +Adapted from "ldc-disable-tests.patch" from Guix.
> +diff -ru a/std/datetime.d b/std/datetime.d
> +--- a/std/datetime.d 2016-08-02 23:56:13.969292202 +0200
>  b/std/datetime.d 2016-08-02 23:57:39.078408313 

[PATCH v8] gnu: Update ldc to 0.17.1.

2016-09-13 Thread Danny Milosavljevic
gnu: Update ldc to 0.17.1.

* gnu/packages/ldc.scm (ldc): Changed.
* gnu/packages/patches/ldc-0.17.1-disable-tests.patch: New patch.
---
 gnu/packages/ldc.scm   | 25 ---
 .../patches/ldc-0.17.1-disable-tests.patch | 86 ++
 2 files changed, 101 insertions(+), 10 deletions(-)
 create mode 100644 gnu/packages/patches/ldc-0.17.1-disable-tests.patch

diff --git a/gnu/packages/ldc.scm b/gnu/packages/ldc.scm
index 560fa49..88f3443 100644
--- a/gnu/packages/ldc.scm
+++ b/gnu/packages/ldc.scm
@@ -29,6 +29,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages libedit)
   #:use-module (gnu packages llvm)
+  #:use-module (gnu packages python)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages zip))
 
@@ -76,7 +77,7 @@ and freshness without requiring additional information from the user.")
 (define-public ldc
   (package
 (name "ldc")
-(version "0.16.1")
+(version "0.17.1")
 (source (origin
   (method url-fetch)
   (uri (string-append
@@ -85,10 +86,9 @@ and freshness without requiring additional information from the user.")
   (file-name (string-append name "-" version ".tar.gz"))
   (sha256
(base32
-"1jvilxx0rpqmkbja4m69fhd5g09697xq7vyqp2hz4hvxmmmv4j40"
+"0rwggnbr60jbajfdw11kx058llmwljiss8rrv8df07vaygiv845i"
 (build-system cmake-build-system)
-;; LDC currently only supports the x86_64 and i686 architectures.
-(supported-systems '("x86_64-linux" "i686-linux"))
+(supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
 (arguments
  `(#:phases
(modify-phases %standard-phases
@@ -105,10 +105,13 @@ and freshness without requiring additional information from the user.")
  (add-after 'unpack-submodule-sources 'patch-dmd2
(lambda* (#:key inputs #:allow-other-keys)
  (substitute* "dmd2/root/port.c"
+   (("#include ") "#include ")
((" ::isnan") " isnan")
((" ::isinf") " isinf")
-   (("#undef isnan") "")
-   (("#undef isinf") ""))
+   (("#undef isnan") "#undef isnan
+using namespace std;")
+   (("#undef isinf") "#undef isinf
+using namespace std;"))
  #t))
  (add-after 'unpack-submodule-sources 'patch-phobos
(lambda* (#:key inputs #:allow-other-keys)
@@ -130,6 +133,8 @@ and freshness without requiring additional information from the user.")
  `(("llvm" ,llvm-3.7)
("clang" ,clang-3.7)
("unzip" ,unzip)
+   ("python-wrapper" ,python-wrapper) ; Needed for running tests
+   ("python-lit" ,python-lit) ; Needed for running tests
("phobos-src"
 ,(origin
(method url-fetch)
@@ -138,8 +143,8 @@ and freshness without requiring additional information from the user.")
  version ".tar.gz"))
(sha256
 (base32
- "0sgdj0536c4nb118yiw1f8lqy5d3g3lpg9l99l165lk9xy45l9z4"))
-   (patches (search-patches "ldc-disable-tests.patch"
+ "17nb1yvqblqj3q42c8nlnwvy823fw6kna28n2b48j4m6kd2w0nan"))
+   (patches (search-patches "ldc-0.17.1-disable-tests.patch"
("druntime-src"
 ,(origin
(method url-fetch)
@@ -148,7 +153,7 @@ and freshness without requiring additional information from the user.")
  version ".tar.gz"))
(sha256
 (base32
- "0z4mkyddx6c4sy1vqgqvavz55083dsxws681qkh93jh1rpby9yg6"
+ "129j7mfd0vnzaw7i6hr5waxm5cb0qcm8gyawy2xy5avlv8hrw5m4"
("dmd-testsuite-src"
 ,(origin
(method url-fetch)
@@ -157,7 +162,7 @@ and freshness without requiring additional information from the user.")
  version ".tar.gz"))
(sha256
 (base32
- "0yc6miidzgl9k33ygk7xcppmfd6kivqj02cvv4fmkbs3qz4yy3z1"))
+ "18h16lwwmr3k9dh7mcip17il72mz680wnygv9d0mdnivczn80zyv"))
 (home-page "http://wiki.dlang.org/LDC;)
 (synopsis "LLVM compiler for the D programming language")
 (description
diff --git a/gnu/packages/patches/ldc-0.17.1-disable-tests.patch b/gnu/packages/patches/ldc-0.17.1-disable-tests.patch
new file mode 100644
index 000..b213894
--- /dev/null
+++ b/gnu/packages/patches/ldc-0.17.1-disable-tests.patch
@@ -0,0 +1,86 @@
+Adapted from "ldc-disable-tests.patch" from Guix.
+diff -ru a/std/datetime.d b/std/datetime.d
+--- a/std/datetime.d	2016-08-02 23:56:13.969292202 +0200
 b/std/datetime.d	2016-08-02 23:57:39.078408313 +0200
+@@ -28080,9 +28080,6 @@
+ import std.algorithm : sort;
+ import std.range : retro;
+ import std.format : format;
+-
+-name = strip(name);
+-
+ enforce(tzDatabaseDir.exists(), new DateTimeException(format("Directory %s does not exist.", tzDatabaseDir)));
+