[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: sharutils: Prepare for GCC 10.
From: |
guix-commits |
Subject: |
02/10: gnu: sharutils: Prepare for GCC 10. |
Date: |
Sat, 22 May 2021 10:08:34 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 9fe4e45be705f98d89e1e49e6ca0c444a9aca00e
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed May 19 00:27:10 2021 +0200
gnu: sharutils: Prepare for GCC 10.
* gnu/packages/compression.scm (sharutils)[source](snippet): Add
substitution
to avoid duplicate header definitions.
[arguments]: Remove trailing #t.
---
gnu/packages/compression.scm | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 3dbe517..8a077c4 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -13,7 +13,7 @@
;;; Copyright © 2016–2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2016, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
-;;; Copyright © 2016, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016, 2018, 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2017 Nikita <nikita@n0.is>
;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
@@ -672,6 +672,7 @@ decompressors when faced with corrupted input.")
(modules '((guix build utils)))
(snippet
'(begin
+ ;; Adjust for newer libc versions.
(substitute* (find-files "lib" "\\.c$")
(("#if defined _IO_ftrylockfile")
"#if defined _IO_EOF_SEEN"))
@@ -681,7 +682,13 @@ decompressors when faced with corrupted input.")
"# define _IO_IN_BACKUP 0x100\n"
"#endif\n\n"
"/* BSD stdio derived implementations")))
- #t))))
+ ;; ... and for newer GCC with -fno-common.
+ (substitute* '("src/shar-opts.h"
+ "src/unshar-opts.h"
+ "src/uudecode-opts.h"
+ "src/uuencode-opts.h")
+ (("char const \\* const program_name" all)
+ (string-append "extern " all)))))))
(build-system gnu-build-system)
(inputs
`(("which" ,which)))
@@ -693,8 +700,7 @@ decompressors when faced with corrupted input.")
;; in fact test data
(lambda _
(substitute* "tests/shar-1.ok"
- (((which "sh")) "/bin/sh"))
- #t)))))
+ (((which "sh")) "/bin/sh")))))))
(home-page "https://www.gnu.org/software/sharutils/")
(synopsis "Archives in shell scripts, uuencode/uudecode")
(description
- branch master updated (7003b2d -> d58e2f2), guix-commits, 2021/05/22
- 01/10: gnu: ntp: Prepare for GCC 10., guix-commits, 2021/05/22
- 02/10: gnu: sharutils: Prepare for GCC 10.,
guix-commits <=
- 03/10: gnu: sharutils: 'which' is a native input., guix-commits, 2021/05/22
- 04/10: gnu: python-coverage-test-runner: Add Python 3 variant., guix-commits, 2021/05/22
- 05/10: gnu: python2-cliapp: Add Python 3 variant., guix-commits, 2021/05/22
- 08/10: gnu: cmdtest: Do not propagate any inputs., guix-commits, 2021/05/22
- 09/10: gnu: ucx: Restore (and adapt) ioctl fallback patch., guix-commits, 2021/05/22
- 10/10: gnu: libblockdev: Prepare for GLib 2.58., guix-commits, 2021/05/22
- 06/10: gnu: python2-ttystatus: Add Python 3 variant., guix-commits, 2021/05/22
- 07/10: gnu: cmdtest: Update to 0.32-14-gcdfe14e., guix-commits, 2021/05/22