[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/18: gnu: sed: Make it build on SELinux-enabled kernels.
From: |
guix-commits |
Subject: |
18/18: gnu: sed: Make it build on SELinux-enabled kernels. |
Date: |
Wed, 24 Mar 2021 02:25:15 -0400 (EDT) |
marusich pushed a commit to branch master
in repository guix.
commit 65c46e79e0495fe4d32f6f2725d7233fff10fd70
Author: Chris Marusich <cmmarusich@gmail.com>
AuthorDate: Tue Jun 9 23:35:56 2020 -0700
gnu: sed: Make it build on SELinux-enabled kernels.
Fixes: <https://bugs.gnu.org/41498>.
* gnu/packages/base.scm (sed)[arguments]: New field. This adds a
snippet, equivalent to the patch submitted upstream, which fixes an
issue that prevents sed from building on SELinux-enabled kernels.
Adjusted by Efraim Flashner to apply to master.
---
gnu/packages/base.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 7c5ac61..f0f9353 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -148,6 +148,22 @@ including, for example, recursive directory searching.")
(base32
"0alqagh0nliymz23kfjg6g9w3cr086k0sfni56gi8fhzqwa3xksk"))))
(build-system gnu-build-system)
+ (arguments
+ ;; TODO: When merging this into core-updates, keep the version of
+ ;; this code (with comment!) applied as a snippet.
+ `(,@(if (string-prefix? "powerpc64le" (or (%current-target-system)
+ (%current-system)))
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'allow-building-on-selinux-systems
+ (lambda _
+ (substitute* "Makefile.in"
+ (("^ abs_srcdir='\\$\\(abs_srcdir\\)'.*" previous-line)
+ (string-append
+ previous-line
+ " CONFIG_HEADER='$(CONFIG_HEADER)'\t\t\\\n")))
+ #t))))
+ '())))
(synopsis "Stream editor")
(native-inputs
`(("perl" ,perl))) ;for tests
- branch master updated (dc68018 -> 65c46e7), guix-commits, 2021/03/24
- 01/18: gnu: bootstrap: Add support for powerpc64le-linux., guix-commits, 2021/03/24
- 05/18: gnu: gcc-boot0: Enable 128-bit long double for POWER9., guix-commits, 2021/03/24
- 08/18: gnu: bdb-4.8: Fix configure on powerpc64le-linux., guix-commits, 2021/03/24
- 09/18: gnu: guile-avahi: Fix compilation on powerpc64le-linux., guix-commits, 2021/03/24
- 02/18: utils: Add target-powerpc? procedure., guix-commits, 2021/03/24
- 10/18: gnu: texlive-bin: Fix compilation on powerpc64le*., guix-commits, 2021/03/24
- 11/18: gnu: texlive-latex-base: Fix compilation on powerpc64le*., guix-commits, 2021/03/24
- 13/18: Add powerpc64le-linux as a supported Guix architecture., guix-commits, 2021/03/24
- 18/18: gnu: sed: Make it build on SELinux-enabled kernels.,
guix-commits <=
- 03/18: gnu: gcc-4.7: On powerpc64le, fix /lib64 references., guix-commits, 2021/03/24
- 04/18: gnu: glibc: Fix ldd path on powerpc*., guix-commits, 2021/03/24
- 06/18: gnu: binutils-final: Provide bash for binary on powerpc-linux., guix-commits, 2021/03/24
- 07/18: gnu: binutils-final: Support more Power architectures., guix-commits, 2021/03/24
- 12/18: gnu: libelf: Fix compilation for powerpc64le-linux., guix-commits, 2021/03/24
- 15/18: syscalls: Fix RNDADDTOENTCNT on powerpc64le-linux., guix-commits, 2021/03/24
- 14/18: syscalls: Fix clone on powerpc64le-linux., guix-commits, 2021/03/24
- 16/18: ci: %cross-targets: Add powerpc64le-linux-gnu., guix-commits, 2021/03/24
- 17/18: utils: Fix target-64bit? on powerpc64le-linux., guix-commits, 2021/03/24