guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: telegram-cli: Update compiler flags.


From: guix-commits
Subject: 02/02: gnu: telegram-cli: Update compiler flags.
Date: Fri, 8 Mar 2024 18:01:08 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit c7c99aeb3c6f974a41b9fc79bce1e6ce4d8f1904
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Mar 8 23:57:15 2024 +0100

    gnu: telegram-cli: Update compiler flags.
    
    * gnu/packages/telegram.scm (telegram-cli)[arguments]: Add phase to remove
    -Werror and add -fcommon; remove trailing #T.
    
    Change-Id: I1c82fdd914b5f27f00e4bf87e4adc3eb559a874c
---
 gnu/packages/telegram.scm | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm
index 4be33e6003..8d835bf243 100644
--- a/gnu/packages/telegram.scm
+++ b/gnu/packages/telegram.scm
@@ -687,25 +687,29 @@ formerly a part of telegram-cli, but now being maintained 
separately.")
           (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6"))))
       (build-system gnu-build-system)
       (arguments
-       `(#:tests? #f                    ; No target
-         #:imported-modules
-         ((guix build copy-build-system)
+       (list
+        #:tests? #f                     ; No target
+        #:imported-modules
+        `((guix build copy-build-system)
           ,@%gnu-build-system-modules)
-         #:modules
-         (((guix build copy-build-system)
+        #:modules
+        '(((guix build copy-build-system)
            #:prefix copy:)
           (guix build gnu-build-system)
           (guix build utils))
-         #:configure-flags
-         (list
+        #:configure-flags
+        '(list
           ;; Use gcrypt instead of openssl.
           "--disable-openssl")
-         #:phases
-         (modify-phases %standard-phases
+        #:phases
+        '(modify-phases %standard-phases
+           (add-after 'unpack 'remove-Werror
+             (lambda _
+               (substitute* "Makefile.in"
+                 (("-Werror") "-fcommon"))))
            (add-after 'unpack 'trigger-bootstrap
              (lambda _
-               (delete-file "configure")
-               #t))
+               (delete-file "configure")))
            (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser
              (lambda* (#:key inputs #:allow-other-keys)
                (for-each delete-file
@@ -725,8 +729,7 @@ formerly a part of telegram-cli, but now being maintained 
separately.")
                                  "/include/tgl/auto"))
                  (("LIB=libs")
                   (string-append "LIB=" (assoc-ref inputs "tgl")
-                                 "/lib/tgl")))
-               #t))
+                                 "/lib/tgl")))))
            (replace 'install
              (lambda args
                (apply (assoc-ref copy:%standard-phases 'install)



reply via email to

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