guix-commits
[Top][All Lists]
Advanced

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

08/08: gnu: lz4: Explicity declare the _FILE_OFFSET_BITS we want.


From: guix-commits
Subject: 08/08: gnu: lz4: Explicity declare the _FILE_OFFSET_BITS we want.
Date: Sun, 4 Oct 2020 03:30:12 -0400 (EDT)

dannym pushed a commit to branch wip-file-offset-bits-64-sledgehammer
in repository guix.

commit d1edfd01b898fac387c8cbbdd6fe9b33480f8b43
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Sun Oct 4 09:26:14 2020 +0200

    gnu: lz4: Explicity declare the _FILE_OFFSET_BITS we want.
    
    * gnu/packages/compression.scm (lz4)[arguments]<#:phases>[fix-testing]:
    Do not clobber CFLAGS.
---
 gnu/packages/compression.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 506a331..9392eaf 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -806,6 +806,15 @@ decompression of some loosely related file formats used by 
Microsoft.")
        #:make-flags (list "CC=gcc"
                           (string-append "prefix=" (assoc-ref %outputs "out")))
        #:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'fix-testing
+                    (lambda _
+                      ;; Setting variables in target "clangtest" influences
+                      ;; the target "test".
+                      ;; That is probably a bug in GNU Make.
+                      ;; Work around it.
+                      (substitute* "Makefile"
+                       (("clangtest: CFLAGS \\?= .*") "\n"))
+                      #t))
                   (delete 'configure)            ;no configure script
                   (add-before 'check 'disable-broken-test
                     (lambda _



reply via email to

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