GNU bug report logs - #65075
[PATCH 01/13] gnu: Add go-github-com-chyzer-logex

Previous Next

Package: guix-patches;

Reported by: Fries <fries1234 <at> protonmail.com>

Date: Sat, 5 Aug 2023 08:53:08 UTC

Severity: normal

Tags: moreinfo, patch

Merged with 65072, 65073, 65074, 65076, 65077, 65078, 65079, 65080, 65081, 65082, 65083, 65084, 65085

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 65075 in the body.
You can then email your comments to 65075 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#65075; Package guix-patches. (Sat, 05 Aug 2023 08:53:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fries <fries1234 <at> protonmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 05 Aug 2023 08:53:08 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Fries <fries1234 <at> protonmail.com>
To: guix-patches <at> gnu.org
Cc: Fries <fries1234 <at> protonmail.com>
Subject: [PATCH 01/13] gnu: Add go-github-com-chyzer-logex
Date: Sat, 05 Aug 2023 07:00:06 +0000
* gnu/packages/golang.scm (go-github-com-chyzer-logex): New variable.
* gnu/packages/patches/go-github-com-chyzer-logex-fix-tests.patch: New file.
---
 gnu/packages/golang.scm                       | 28 +++++++++++++++++++
 ...go-github-com-chzyer-logex-fix-tests.patch | 28 +++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ea6aadbe80..d99f76dc7d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -41,6 +41,7 @@
 ;;; Copyright © 2022 Christopher Howard <christopher <at> librehacker.com>
 ;;; Copyright © 2023 Hilton Chain <hako <at> ultrarare.space>
 ;;; Copyright © 2023 Timo Wilken <guix <at> twilken.net>
+;;; Copyright © 2023 Fries <fries1234 <at> protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2112,6 +2113,33 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-chzyer-logex
+  (package
+    (name "go-github-com-chzyer-logex")
+    (version "1.2.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/chzyer/logex")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0c9yr3r7dl3lcs22cvmh9iknihi9568wzmdywmc2irkjdrn8bpxw"))
+              (patches (search-patches
+                        "go-github-com-chzyer-logex-fix-tests.patch"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/chzyer/logex"
+       #:phases (modify-phases %standard-phases
+                  ;; Tests are completely broken on this package.
+                  (delete 'check))))
+    (home-page "https://github.com/chzyer/logex")
+    (synopsis "Golang log library")
+    (description "A Golang log library that supports tracing and log levels
+that works by wrapping the standard log library.")
+    (license license:expat)))
+
 (define-public go-github-com-blanu-dust
   (package
     (name "go-github-com-blanu-dust")
diff --git a/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch
new file mode 100644
index 0000000000..2a9b7a228b
--- /dev/null
+++ b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch
@@ -0,0 +1,28 @@
+From bb4921ff5ab77a047ae46d3da0f35abbe3f01f41 Mon Sep 17 00:00:00 2001
+From: Fries <fries1234 <at> protonmail.com>
+Date: Fri, 4 Aug 2023 20:06:20 -0700
+Subject: [PATCH] fix logex tests
+
+---
+ logex_test.go | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/logex_test.go b/logex_test.go
+index e6027f2..4c07d45 100644
+--- a/logex_test.go
++++ b/logex_test.go
+@@ -46,9 +46,9 @@ func TestLogex(t *testing.T) {
+ 
+ 	except := []string{
+ 		".test:logex_test.go:19]aa",
+-		".test:logex_test.go:20][INFO] b",
++		".TestLogex:logex_test.go:42][INFO] b",
+ 		".test:logex_test.go:21][INFO] c",
+-		".test:logex_test.go:22][ERROR] ec",
++		".TestLogex:logex_test.go:42][ERROR] ec",
+ 		".(*S).hello:logex_test.go:11][WARN] warn in hello",
+ 	}
+ 
+-- 
+2.41.0
+
-- 
2.41.0






Information forwarded to guix-patches <at> gnu.org:
bug#65075; Package guix-patches. (Sat, 05 Aug 2023 09:14:02 GMT) Full text and rfc822 format available.

Message #8 received at 65075 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: Fries <fries1234 <at> protonmail.com>
Cc: 65075 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex
Date: Sat, 05 Aug 2023 10:08:50 +0100
Hi!

Fries via Guix-patches via <guix-patches <at> gnu.org> writes:
> +    (arguments
> +     '(#:import-path "github.com/chzyer/logex"
> +       #:phases (modify-phases %standard-phases
> +                  ;; Tests are completely broken on this package.
> +                  (delete 'check))))

Generally this should look like this now:

  (arguments
   (list #:import-path "github.com/chzyer/logex"
         #:phases
         #~(modify-phases %standard-phases
             (delete 'check))))

Also, generally, you'd use ``#:tests? #f'' rather than
``(delete 'check)'' to disable tests.

> --- /dev/null
> +++ b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch

Doesn't this effectively do nothing, since you disabled tests?

  -- (




Information forwarded to guix-patches <at> gnu.org:
bug#65075; Package guix-patches. (Sat, 05 Aug 2023 09:15:01 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082 65083 65084 65085. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sat, 05 Aug 2023 10:27:02 GMT) Full text and rfc822 format available.

Disconnected #65072 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:04 GMT) Full text and rfc822 format available.

Disconnected #65073 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:05 GMT) Full text and rfc822 format available.

Disconnected #65075 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:06 GMT) Full text and rfc822 format available.

Merged 65074 65075. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:11 GMT) Full text and rfc822 format available.

Merged 65072 65074 65075. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:11 GMT) Full text and rfc822 format available.

Merged 65072 65074 65075 65076. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:11 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:12 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65078. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:12 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:12 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:13 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65082. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:13 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65082. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:14 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:15 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082 65084. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:15 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082 65084 65085. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:16 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082 65083 65084 65085. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:17 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 01 Sep 2023 12:09:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#65075; Package guix-patches. (Sat, 06 Apr 2024 15:56:02 GMT) Full text and rfc822 format available.

Message #50 received at 65075-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 65075-done <at> debbugs.gnu.org
Subject: [PATCH 01/13] gnu: Add go-github-com-chyzer-logex
Date: Sat, 06 Apr 2024 16:55:37 +0100
[Message part 1 (text/plain, inline)]

Pushed as c28b319640..cf4f87986a to master by closing
<https://issues.guix.gnu.org/65074>.

--
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. (Sun, 05 May 2024 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.