[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/09: gnu: rottlog: Add gawk as an input.
From: |
guix-commits |
Subject: |
06/09: gnu: rottlog: Add gawk as an input. |
Date: |
Thu, 14 Sep 2023 11:21:25 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 9aeb9e7cc83d5d0e1aed7b34fb5a357645fd86a9
Author: Skyler <skyvine@protonmail.com>
AuthorDate: Thu Sep 7 02:01:51 2023 +0000
gnu: rottlog: Add gawk as an input.
This avoids an issue where rottlog will delete the entire /tmp directory
if gawk is not installed. See <https://issues.guix.gnu.org/65793>.
* gnu/packages/admin.scm (rottlog): Add gawk input, also update the
patch-paths build phase for awk invocations.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/admin.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 98ed3d4e61..1b2324bfc7 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1978,7 +1978,11 @@ at once based on a Perl regular expression.")
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "rc/rc"
(("/usr/sbin/sendmail")
- (search-input-file inputs "/bin/mail")))))
+ (search-input-file inputs "/bin/mail")))
+ (with-fluids ((%default-port-encoding "ISO-8859-1"))
+ (substitute* "src/rottlog"
+ (("awk")
+ (search-input-file inputs "/bin/awk"))))))
(add-after 'build 'set-packdir
(lambda _
;; Set a default location for archived logs.
@@ -1997,7 +2001,7 @@ at once based on a Perl regular expression.")
(lambda _
(invoke "make" "install-info"))))))
(native-inputs (list autoconf automake texinfo util-linux)) ; for 'cal'
- (inputs (list coreutils mailutils))
+ (inputs (list coreutils gawk mailutils))
(home-page "https://www.gnu.org/software/rottlog/")
(synopsis "Log rotation and management")
(description
- branch master updated (e5f7c14ef6 -> 6d12c16299), guix-commits, 2023/09/14
- 01/09: home: services: redshift: Use redshift package specified in configuration, guix-commits, 2023/09/14
- 02/09: gnu: Add stklos., guix-commits, 2023/09/14
- 03/09: gnu: syncthing: Update to 1.23.7., guix-commits, 2023/09/14
- 08/09: gnu: npiet: Use gexps., guix-commits, 2023/09/14
- 09/09: doc: Make “crash course” xref more visible., guix-commits, 2023/09/14
- 05/09: gnu: neofetch: Fix cross-compiling., guix-commits, 2023/09/14
- 06/09: gnu: rottlog: Add gawk as an input.,
guix-commits <=
- 04/09: gnu: tor: Update to 0.4.8.5., guix-commits, 2023/09/14
- 07/09: gnu: npiet: Fix cross-compilation., guix-commits, 2023/09/14