GNU bug report logs - #27412
[PATCH] gnu: rustc: Enable tests.

Previous Next

Package: guix-patches;

Reported by: Danny Milosavljevic <dannym <at> scratchpost.org>

Date: Sat, 17 Jun 2017 18:38:02 UTC

Severity: normal

Tags: patch

Done: Danny Milosavljevic <dannym <at> scratchpost.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 27412 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Danny Milosavljevic <dannym <at> scratchpost.org>, 27412 <at> debbugs.gnu.org
Subject: Re: [bug#27412] [PATCH] gnu: rustc: Enable tests.
Date: Sun, 18 Jun 2017 18:17:48 +0200
[Message part 1 (text/plain, inline)]
Danny Milosavljevic <dannym <at> scratchpost.org> writes:

> * gnu/packages/rust.scm (rustc)[source]: Remove bundled llvm.
> [native-inputs]: Add bison, flex, procps.
> [inputs]: Update llvm to llvm-3.9.1.
> [arguments]: Patch and enable tests.

Great!

[...]

> @@ -254,7 +262,18 @@ rustc-bootstrap and cargo-bootstrap packages.")
>                 (substitute* "src/tools/tidy/src/main.rs"
>                   (("^.*cargo.*::check.*$") ""))
>                 (substitute* "src/libstd/process.rs"
> -                 (("\"/bin/sh\"") (string-append "\"" bash "/bin/sh\"")))
> +                 ;; The newline is intentional.
> +                 ;; There's a line length "tidy" check in Rust which would
> +                 ;; fail otherwise.
> +                 (("\"/bin/sh\"") (string-append "
> +\"" bash "/bin/sh\"")))

Can you use '\n' instead?

> +               (substitute* "src/libstd/sys/unix/process/process_common.rs"
> +                 (("fn test_process_mask") "#[cfg_attr(target_os = \"linux\", ignore)]
> +fn test_process_mask"))

I'm guessing this is disabled due to some build container oddity?

> +               (substitute* "src/vendor/libc/src/lib.rs"
> +                 (("TODO") "TXDO"))

A comment about this would be nice.

> +               ;; Our ld-wrapper cannot process non-UTF8 bytes in LIBRARY_PATH.
> +               (delete-file-recursively "src/test/run-make/linker-output-non-utf8")

This is temporary, right? Maybe add the guix-devel URL?

LGTM!
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 8 years and 41 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.