Re: GNU RCS 5.7.93 (pretest for 5.8) available

[email protected] (Ludovic Courtès)
Newsgroups gmane.comp.version-control.rcs.bugs
Message-ID <[email protected]>
Hi!

Thien-Thi Nguyen <[email protected]> writes:

>      5. The ‘rlog’ program as run by the tests segfaults:
>
>      [details]
>
> Interesting.  Can you reproduce this on the gcc compile farm
> somewhere?

Sorry, I’ll let this as an exercise for you.  :-)

I’d expect it to be reproducible on any recent x86_64-linux-gnu machine
(this was with Glibc 2.11.1 and GCC 4.4.3, FWIW).  Perhaps Valgrind can
provide hints, too.

> Alternatively, what do i need to do to get a shell account where this
> occurs for debugging purposes?

The best would be to install Nix and Nixpkgs/trunk on an
x86_64-linux-gnu machine, patch Nixpkgs with the attached patch, and run
“nix-build -A rcs -K”.

It takes time, though, and may be inconvenient if you don’t plan to use
Nix otherwise.

Thanks,
Ludo’.
(unnamed) (text/x-patch, 1 KB)
diff --git a/pkgs/applications/version-management/rcs/default.nix b/pkgs/applications/version-manag
index 333266d..253d64f 100644
--- a/pkgs/applications/version-management/rcs/default.nix
+++ b/pkgs/applications/version-management/rcs/default.nix
@@ -1,19 +1,43 @@
-{stdenv, fetchurl}:
+{ stdenv, fetchurl, ed }:
 
-stdenv.mkDerivation {
-  name = "rcs-5.7";
+stdenv.mkDerivation rec {
+  name = "rcs-5.7.93"; # pre-test for 5.8
 
   src = fetchurl {
-    url = ftp://ftp.cs.purdue.edu/pub/RCS/rcs-5.7.tar;
-    md5 = "f7b3f106bf87ff6344df38490f6a02c5";
+    url = "ftp://alpha.gnu.org/gnu/rcs/${name}.tar.gz";
+    sha256 = "0iyp30lix6ywfspbnkj5zxkf9pwgvr25a5pcb22v3rdbmfmda5vm";
   };
 
-  patches = [ ./no-root.patch ];
+  buildInputs = [ ed ];
+
+  configureFlags = "RCS_PRETEST=acknowledged";
+
+  preBuild =
+    '' export dontStrip=1
+       unset NIX_STRIP_DEBUG
+       unset NIX_CFLAGS_STRIP
+    '';
+
+#  patches = [ ./no-root.patch ];
+
+  doCheck = true;
+
+  # The `alive.test' scripts wants $USER.
+  preCheck = "export USER=nix-build";
 
   meta = {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.