GNU bug report logs -
#65792
[PATCH] gnu: rottlog: Add gawk as an input.
Previous Next
Reported by: Skyler <skyvine <at> protonmail.com>
Date: Thu, 7 Sep 2023 02:03:01 UTC
Severity: normal
Tags: patch
Merged with 65793
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Thu, 14 Sep 2023 16:54:06 +0200
with message-id <87a5toajqp.fsf <at> gnu.org>
and subject line Re: bug#65792: [PATCH] gnu: rottlog: Add gawk as an input.
has caused the debbugs.gnu.org bug report #65792,
regarding [PATCH] gnu: rottlog: Add gawk as an input.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
65792: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65792
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
This avoids an issue where rottlog will delete the entire /tmp directory
if gawk is not installed.
* gnu/packages/admin.scm (rottlog): Add gawk input, also update the
patch-paths build phase for awk invocations.
---
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 604cd70c02..ea437e9f26 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1931,7 +1931,11 @@ (define-public rottlog
(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.
@@ -1950,7 +1954,7 @@ (define-public rottlog
(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
base-commit: e365c26a34fa485f9af46538fcea128db681c33d
--
2.41.0
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
Hi,
Skyler <skyvine <at> protonmail.com> skribis:
> This avoids an issue where rottlog will delete the entire /tmp directory
> if gawk is not installed.
>
> * gnu/packages/admin.scm (rottlog): Add gawk input, also update the
> patch-paths build phase for awk invocations.
Applied, thank you, and thanks for explaining!
Ludo’.
This bug report was last modified 1 year and 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.