GNU bug report logs -
#72595
[PATCH] gnu: Add goawk.
Previous Next
Reported by: ashish.is <at> lostca.se
Date: Mon, 12 Aug 2024 18:40:02 UTC
Severity: normal
Tags: patch
Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72595 in the body.
You can then email your comments to 72595 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#72595
; Package
guix-patches
.
(Mon, 12 Aug 2024 18:40:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
ashish.is <at> lostca.se
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 12 Aug 2024 18:40:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Ashish SHUKLA <ashish.is <at> lostca.se>
* gnu/packages/gawk.scm (goawk): New variable.
Change-Id: Ib611f1ea55b6a4e115f82e08054ea8d04ec57329
---
gnu/packages/gawk.scm | 47 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 46 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gawk.scm b/gnu/packages/gawk.scm
index 16a4ca5b0a..f407da9d94 100644
--- a/gnu/packages/gawk.scm
+++ b/gnu/packages/gawk.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2018, 2022 Efraim Flashner <efraim <at> flashner.co.il>
;;; Copyright © 2021, 2022 Marius Bakke <marius <at> gnu.org>
;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
+;;; Copyright © 2024 Ashish SHUKLA <ashish.is <at> lostca.se>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -34,7 +35,8 @@ (define-module (gnu packages gawk)
#:use-module (guix git-download)
#:use-module (guix utils)
#:use-module (guix build-system copy)
- #:use-module (guix build-system gnu))
+ #:use-module (guix build-system gnu)
+ #:use-module (guix build-system go))
(define-public gawk
(package
@@ -236,3 +238,46 @@ (define-public cppawk-egawk
(delete "gawk-mpfr")
(prepend egawk-next)))
(synopsis "cppawk that calls Enhanced GNU Awk by default")))
+
+(define-public goawk
+ (package
+ (name "goawk")
+ (version "1.27.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/benhoyt/goawk")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "003idgqj1g41y4sja9gzbds95fl3ba0l20wfgh7hp4kiivgls7r8"))))
+ (build-system go-build-system)
+ (native-inputs (list gawk bash-minimal))
+ (arguments
+ (list
+ #:import-path "github.com/benhoyt/goawk"
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'patch-bin-sh
+ (lambda* (#:key inputs import-path #:allow-other-keys)
+ (for-each (lambda (f)
+ (substitute* (string-append "src/" import-path "/" f)
+ (("/bin/sh")
+ (string-append (assoc-ref inputs "bash-minimal") "/bin/sh"))
+ (("TestCommandLine") ;; failing test case
+ "SkipCommandLine")))
+ (list "goawk_test.go" "interp/interp.go"))))
+ (replace 'check
+ (lambda* (#:key inputs import-path #:allow-other-keys)
+ (let ((test-output (string-append "src/" import-path "/testdata/output")))
+ (chmod test-output #o755)
+ (for-each (lambda (f)
+ (chmod f #o644))
+ (find-files test-output))
+ (invoke "go" "test" import-path
+ "-awk" (string-append (assoc-ref inputs "gawk") "/bin/gawk"))))))))
+ (home-page "https://github.com/benhoyt/goawk")
+ (synopsis "GoAWK: an AWK interpreter with CSV support")
+ (description "Package goawk is an implementation of AWK with CSV support.")
+ (license license:expat)))
base-commit: 2b7e2f44169c3da710534a614b4a0a313a7d272a
--
2.46.0
Reply sent
to
Sharlatan Hellseher <sharlatanus <at> gmail.com>
:
You have taken responsibility.
(Wed, 14 Aug 2024 08:48:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
ashish.is <at> lostca.se
:
bug acknowledged by developer.
(Wed, 14 Aug 2024 08:48:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 72595-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
Pushed as 4bd880624978dfd0c14c7f751b8b725c2d2e7d22 to master.
It's compbined work from <https://issues.guix.gnu.org/56474>.
---
Oleg
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 11 Sep 2024 11:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 281 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.