[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/26: syscalls: Fix RNDADDTOENTCNT on powerpc64le-linux.
From: |
guix-commits |
Subject: |
15/26: syscalls: Fix RNDADDTOENTCNT on powerpc64le-linux. |
Date: |
Sun, 7 Mar 2021 22:00:16 -0500 (EST) |
marusich pushed a commit to branch wip-ppc64le
in repository guix.
commit 75aa7d0f03b08ce302291d960a59e7649081b217
Author: Chris Marusich <cmmarusich@gmail.com>
AuthorDate: Sun Feb 21 16:05:58 2021 -0800
syscalls: Fix RNDADDTOENTCNT on powerpc64le-linux.
This fixes the failing test add-to-entropy-count in tests/syscalls.scm on
powerpc64le-linux.
* guix/build/syscalls.scm (RNDADDTOENTCNT): When %host-type starts with
"powerpc64le", set this to #x80045201. Otherwise, set it to #x40045201 as
before.
---
guix/build/syscalls.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index e049d4d..3c93dd0 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -774,7 +775,11 @@ backend device."
;;;
;; From <uapi/linux/random.h>.
-(define RNDADDTOENTCNT #x40045201)
+(define RNDADDTOENTCNT
+ ;; Avoid using %current-system here to avoid depending on host-side code.
+ (if (string-prefix? "powerpc64le" %host-type)
+ #x80045201
+ #x40045201))
(define (add-to-entropy-count port-or-fd n)
"Add N to the kernel's entropy count (the value that can be read from
- 03/26: utils: Add target-powerpc? procedure., (continued)
- 03/26: utils: Add target-powerpc? procedure., guix-commits, 2021/03/07
- 04/26: gnu: binutils-final: Provide bash for binary on powerpc-linux., guix-commits, 2021/03/07
- 07/26: gnu: glibc: Fix ldd path on powerpc*., guix-commits, 2021/03/07
- 08/26: gnu: bdb-4.8: Fix configure on powerpc64le-linux., guix-commits, 2021/03/07
- 01/26: gnu: bootstrap: Add support for powerpc64le-linux., guix-commits, 2021/03/07
- 05/26: gnu: binutils-final: Support more Power architectures., guix-commits, 2021/03/07
- 06/26: gnu: gcc-4.7: On powerpc64le, fix /lib64 references., guix-commits, 2021/03/07
- 09/26: gnu: guile-avahi: Fix compilation on powerpc64le-linux., guix-commits, 2021/03/07
- 11/26: gnu: texlive-latex-base: Fix compilation on powerpc64le*., guix-commits, 2021/03/07
- 12/26: gnu: libelf: Fix compilation for powerpc64le-linux., guix-commits, 2021/03/07
- 15/26: syscalls: Fix RNDADDTOENTCNT on powerpc64le-linux.,
guix-commits <=
- 23/26: gnu: openjpeg: Disable failing tests group., guix-commits, 2021/03/07
- 24/26: gnu: rust: Make it "supported" on all systems but i686-linux., guix-commits, 2021/03/07
- 25/26: tests: guix-environment.sh: Use C_INCLUDE_PATH, not CPATH., guix-commits, 2021/03/07
- 10/26: gnu: texlive-bin: Fix compilation on powerpc64le*., guix-commits, 2021/03/07
- 13/26: Add powerpc64le-linux as a supported Guix architecture., guix-commits, 2021/03/07
- 14/26: syscalls: Fix clone on powerpc64le-linux., guix-commits, 2021/03/07
- 16/26: ci: %cross-targets: Add powerpc64le-linux-gnu., guix-commits, 2021/03/07
- 17/26: utils: Fix target-64bit? on powerpc64le-linux., guix-commits, 2021/03/07
- 18/26: tests: gremlin: Skip file-needed/recursive if DT_NEEDED is empty., guix-commits, 2021/03/07
- 19/26: tests: pack: Fix %gzip-compressor and a failing test., guix-commits, 2021/03/07