[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/15: gnu: datefudge: Only use glibc-2.31 workaround on supported platf
From: |
guix-commits |
Subject: |
05/15: gnu: datefudge: Only use glibc-2.31 workaround on supported platforms. |
Date: |
Mon, 4 May 2020 15:42:55 -0400 (EDT) |
efraim pushed a commit to branch wip-ppc
in repository guix.
commit 09a14fdc11d61a16769415a7449a029924040264
Author: Efraim Flashner <address@hidden>
AuthorDate: Sat Apr 25 22:21:27 2020 +0300
gnu: datefudge: Only use glibc-2.31 workaround on supported platforms.
The powerPC port is using glibc-2.30.
* gnu/packages/time.scm (datefudge)[source]: Remove patch.
[arguments]: When not on powerpc-linux, add phase to adapt the code for
glibc-2.31.
* gnu/packages/patches/datefudge-gettimeofday.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove it.
---
gnu/local.mk | 1 -
gnu/packages/patches/datefudge-gettimeofday.patch | 13 -------------
gnu/packages/time.scm | 12 ++++++++++--
3 files changed, 10 insertions(+), 16 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 71ca47e..c1d7442 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -839,7 +839,6 @@ dist_patch_DATA =
\
%D%/packages/patches/cyrus-sasl-ac-try-run-fix.patch \
%D%/packages/patches/date-output-pkg-config-files.patch \
%D%/packages/patches/darkice-workaround-fpermissive-error.patch \
- %D%/packages/patches/datefudge-gettimeofday.patch \
%D%/packages/patches/dbacl-include-locale.h.patch \
%D%/packages/patches/dbus-helper-search-path.patch \
%D%/packages/patches/dbus-c++-gcc-compat.patch \
diff --git a/gnu/packages/patches/datefudge-gettimeofday.patch
b/gnu/packages/patches/datefudge-gettimeofday.patch
deleted file mode 100644
index 11c7640..0000000
--- a/gnu/packages/patches/datefudge-gettimeofday.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Add the 'restrict' qualifier to match the 'gettimeofday' declaration found
-in glibc 2.31.
-
---- datefudge-1.23/datefudge.c 2020-02-17 22:35:21.343341725 +0100
-+++ datefudge-1.23/datefudge.c 2020-02-17 22:35:49.619117874 +0100
-@@ -78,6 +78,6 @@
- return 0;
- }
-
--int gettimeofday(struct timeval *x, struct timezone *y) {
-+int gettimeofday(struct timeval *restrict x, void *restrict y) {
- return __gettimeofday(x,y);
- }
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index a059976..f845ccb 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -463,8 +463,7 @@ datetime type.")
version ".tar.xz"))
(sha256
(base32
- "0ifnlb0mc8qc2kb5042pbz0ns6rwcb7201di8wyrsphl0yhnhxiv"))
- (patches (search-patches "datefudge-gettimeofday.patch"))))
+ "0ifnlb0mc8qc2kb5042pbz0ns6rwcb7201di8wyrsphl0yhnhxiv"))))
(build-system gnu-build-system)
(arguments
`(#:test-target "test"
@@ -479,6 +478,15 @@ datetime type.")
(("VERSION := \\$\\(shell dpkg-parsechangelog .*")
(string-append "VERSION = " ,version)))
#t))
+ ,@(if (string-prefix? "powerpc" (or (%current-target-system)
+ (%current-system)))
+ '()
+ '((add-after 'unpack 'patch-for-glibc-2.31
+ (lambda _
+ (substitute* "datefudge.c"
+ (("int gettimeofday\\(struct timeval \\*x, struct
timezone \\*y")
+ "int gettimeofday(struct timeval *restrict x, void
*restrict y"))
+ #t))))
(delete 'configure))))
(native-inputs
`(("perl" ,perl)))
- branch wip-ppc created (now c01e2c8), guix-commits, 2020/05/04
- 01/15: gnu: libffi: Fix building on powerpc., guix-commits, 2020/05/04
- 02/15: FIXME: Downgrade glibc to 2.30., guix-commits, 2020/05/04
- 04/15: FIXME: allow reference to bootstrap-binaries in binutils-final, guix-commits, 2020/05/04
- 05/15: gnu: datefudge: Only use glibc-2.31 workaround on supported platforms.,
guix-commits <=
- 03/15: WIP add powerpc support, guix-commits, 2020/05/04
- 06/15: gnu: valgrind: Fix build on powerpc., guix-commits, 2020/05/04
- 07/15: gnu: icu4c: Update to 67.1., guix-commits, 2020/05/04
- 14/15: build: qemu-command: Add support for powerpc., guix-commits, 2020/05/04
- 08/15: gnu: elfutils: Skip tests on powerpc., guix-commits, 2020/05/04
- 10/15: gnu: mesa: Add support for powerpc-linux., guix-commits, 2020/05/04
- 11/15: gnu: qemu-minimal: Only build for the host's architecture., guix-commits, 2020/05/04
- 09/15: gnu: gd: Fix tests., guix-commits, 2020/05/04
- 12/15: gnu: Add mac-fdisk., guix-commits, 2020/05/04
- 15/15: WIP add powerpc kernel, guix-commits, 2020/05/04