guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

16/74: gnu: Re-Add automake-1.16.5.


From: guix-commits
Subject: 16/74: gnu: Re-Add automake-1.16.5.
Date: Mon, 16 Dec 2024 03:34:54 -0500 (EST)

janneke pushed a commit to branch core-packages-team
in repository guix.

commit c81f8033120fbe41b7beb8e2387b541c2b186212
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Dec 5 12:52:50 2024 +0100

    gnu: Re-Add automake-1.16.5.
    
    * gnu/packages/autotools.scm (automake): Rename to...
    (automake-1.16.5): ...this, and downgrade version to 1.16.5.
    [arguments]: Rename phase "skip-test" to "skip-tests", skip 8 more tests
    that fail with gcc-14.
    [source]:  Move to...
    (automake): ...this new variable.
    [arguments]: Replace "skip-tests" phase.
    
    Change-Id: Iacc2ca3bc84f0a4b261663b9178922bcb1c18578
---
 gnu/packages/autotools.scm | 54 ++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 45 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm
index 10c01640ce..2f9d66660e 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -32,6 +32,7 @@
 (define-module (gnu packages autotools)
   #:use-module (guix licenses)
   #:use-module (gnu packages)
+  #:use-module (gnu packages gcc)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages python)
   #:use-module (gnu packages m4)
@@ -317,17 +318,17 @@ output is indexed in many ways to simplify browsing.")
     (home-page "https://josefsson.org/autobuild/";)
     (license gpl3+)))
 
-(define-public automake
+(define-public automake-1.16.5
   (package
     (name "automake")
-    (version "1.17")
+    (version "1.16.5")
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://gnu/automake/automake-"
                                   version ".tar.xz"))
               (sha256
                (base32
-                "146rkdcwri2dkwn3pjrjs9v0wm4xyav9vvq4yw5vj4qy87yc2849"))
+                "0sdl32qxdy7m06iggmkkvf7j520rmmgbsjzbm7fgnxwxdp6mh7gh"))
               (patches
                (search-patches "automake-skip-amhello-tests.patch"))))
     (build-system gnu-build-system)
@@ -359,16 +360,23 @@ output is indexed in many ways to simplify browsing.")
                 ;; that occur during the test suite.
                 (setenv "SHELL" sh)
                 (setenv "CONFIG_SHELL" sh))))
-          (add-before 'check 'skip-test
+          (add-before 'check 'skip-tests
             (lambda _
               (substitute*
                   ;; This test requires 'etags' and fails if it's missing.
+                  ;; Skip it.
                   '("t/tags-lisp-space.sh"
-                    ;; This test fails, probably a timestamp thing:
-                    ;; make: Nothing to be done for 'all'.
-                    "t/remake-aclocal-version-mismatch.sh")
-                (("^#!.*" all)
-                 (string-append all "exit 77;\n")))))
+                    ;; These tests fail with gcc-14
+                    "t/c-demo.sh"
+                    "t/depcomp-auto.tap"
+                    "t/depcomp-cpp.tap"
+                    "t/depcomp-dashmstdout.tap"
+                    "t/depcomp-gcc.tap"
+                    "t/dist-vs-built-sources.sh"
+                    "t/link_cond.sh"
+                    "t/subobj-clean-pr10697.sh")
+                  (("^#!.*" all)
+                   (string-append all "exit 77;\n")))))
 
           #$@(if (%current-target-system)
                  #~((add-after 'install 'patch-non-shebang-references
@@ -430,6 +438,34 @@ intuitive format and then Automake works with Autoconf to 
produce a robust
 Makefile, simplifying the entire process for the developer.")
     (license gpl2+)))                      ; some files are under GPLv3+
 
+(define-public automake
+  (package/inherit automake-1.16.5
+    (name "automake")
+    (version "1.17")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnu/automake/automake-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "146rkdcwri2dkwn3pjrjs9v0wm4xyav9vvq4yw5vj4qy87yc2849"))
+              (patches
+               (search-patches "automake-skip-amhello-tests.patch"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments automake-1.16.5)
+       ((#:phases phases)
+        #~(modify-phases #$phases
+            (replace 'skip-tests
+              (lambda _
+                (substitute*
+                    ;; This test requires 'etags' and fails if it's missing.
+                    '("t/tags-lisp-space.sh"
+                      ;; This test fails, probably a timestamp thing:
+                      ;; make: Nothing to be done for 'all'.
+                      "t/remake-aclocal-version-mismatch.sh")
+                  (("^#!.*" all)
+                   (string-append all "exit 77;\n")))))))))))
+
 (define-public libtool
   (package
     (name "libtool")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]