* [bug#68549] [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages.
@ 2024-01-17 19:53 Artyom V. Poptsov
2024-01-24 12:40 ` Sharlatan Hellseher
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Artyom V. Poptsov @ 2024-01-17 19:53 UTC (permalink / raw)
To: 68549
[-- Attachment #1.1: Type: text/plain, Size: 208 bytes --]
Hello,
this patch set adds most of the missing sub-packages for
"go-systemd"[1].
I wasn't able to package "sdjournal" as it requires systemd headers
which are seems to be not present in Guix at the moment.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-go-github-com-coreos-go-systemd-daemon.patch --]
[-- Type: text/x-diff, Size: 1623 bytes --]
From 790fc4be076e488bbbfcecd2dffba66bf884cf99 Mon Sep 17 00:00:00 2001
Message-ID: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:25:00 +0300
Subject: [PATCH 1/6] gnu: Add go-github-com-coreos-go-systemd-daemon.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-daemon): New
variable.
Change-Id: If79215d0676b9bb8dfe6e12a144a9b156f43f9be
---
gnu/packages/golang.scm | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 8fea581248..3499c21b8b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9272,6 +9272,19 @@ (define-public go-github-com-coreos-go-systemd-activation
using socket activation from Go.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-daemon
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-daemon")
+ (arguments
+ '(#:import-path "github.com/coreos/go-systemd/daemon"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for notifications")
+ (description "Go bindings to systemd for notifying the daemon of service status
+changes")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
base-commit: 8ca490e6600c55b2dab5db12cf1aefa2b1b27f9a
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: 0002-gnu-Add-go-github-com-coreos-go-systemd-dbus.patch --]
[-- Type: text/x-diff, Size: 1857 bytes --]
From e0f4fb0a916138d4ad8ae12f4be28d6d4b9c1a2a Mon Sep 17 00:00:00 2001
Message-ID: <e0f4fb0a916138d4ad8ae12f4be28d6d4b9c1a2a.1705520948.git.poptsov.artyom@gmail.com>
In-Reply-To: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
References: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:34:12 +0300
Subject: [PATCH 2/6] gnu: Add go-github-com-coreos-go-systemd-dbus.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-dbus): New
variable.
Change-Id: Ib50ff86ec7c03fd8b5e732dc9b3ec5e4196d8d3b
---
gnu/packages/golang.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 3499c21b8b..17f880ef97 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9285,6 +9285,22 @@ (define-public go-github-com-coreos-go-systemd-daemon
changes")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-dbus
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-dbus")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/dbus"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (native-inputs (list go-github-com-godbus-dbus))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for managing services")
+ (description
+ "Go bindings to systemd for starting/stopping/inspecting running services and
+units.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.4: 0003-gnu-Add-go-github-com-coreos-go-systemd-journal.patch --]
[-- Type: text/x-diff, Size: 1808 bytes --]
From fa03c3fc20d98df436c6db31d41d4a272d512a6e Mon Sep 17 00:00:00 2001
Message-ID: <fa03c3fc20d98df436c6db31d41d4a272d512a6e.1705520948.git.poptsov.artyom@gmail.com>
In-Reply-To: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
References: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:38:38 +0300
Subject: [PATCH 3/6] gnu: Add go-github-com-coreos-go-systemd-journal.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-journal): New
variable.
Change-Id: I6a8ae9d416ce7c4236ce0d8a8388da130964144c
---
gnu/packages/golang.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 17f880ef97..8f0298c1cb 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9301,6 +9301,21 @@ (define-public go-github-com-coreos-go-systemd-dbus
units.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-journal
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-journal")
+ (arguments
+ '(#:tests? #f ;Tests require access to journald socket.
+ #:import-path "github.com/coreos/go-systemd/journal"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for writing journald")
+ (description
+ "Go bindings to systemd for writing to systemd's logging service,
+journald.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.5: 0004-gnu-Add-go-github-com-coreos-go-systemd-login1.patch --]
[-- Type: text/x-diff, Size: 1861 bytes --]
From aecdd94e009199f88a2b9d03f651964d0b7f944c Mon Sep 17 00:00:00 2001
Message-ID: <aecdd94e009199f88a2b9d03f651964d0b7f944c.1705520948.git.poptsov.artyom@gmail.com>
In-Reply-To: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
References: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:43:37 +0300
Subject: [PATCH 4/6] gnu: Add go-github-com-coreos-go-systemd-login1.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-login1): New
variable.
Change-Id: I815e67c119b00232a620004f72e6b61d90d2c06a
---
gnu/packages/golang.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 8f0298c1cb..40cc864341 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9316,6 +9316,21 @@ (define-public go-github-com-coreos-go-systemd-journal
journald.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-login1
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-login1")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/login1"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (native-inputs (list go-github-com-godbus-dbus))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for integration with logind API")
+ (description
+ "Go bindings to systemd for integration with the systemd logind API.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.6: 0005-gnu-Add-go-github-com-coreos-go-systemd-machine1.patch --]
[-- Type: text/x-diff, Size: 1922 bytes --]
From 5d9893550632c97143d2dcc28f8f9025e2dcaf5c Mon Sep 17 00:00:00 2001
Message-ID: <5d9893550632c97143d2dcc28f8f9025e2dcaf5c.1705520948.git.poptsov.artyom@gmail.com>
In-Reply-To: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
References: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:46:31 +0300
Subject: [PATCH 5/6] gnu: Add go-github-com-coreos-go-systemd-machine1.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-machine1): New
variable.
Change-Id: I2d9340a2b70dd68e24e4a88bdcd1f4c289100c6d
---
gnu/packages/golang.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 40cc864341..5c2c2eb407 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9331,6 +9331,20 @@ (define-public go-github-com-coreos-go-systemd-login1
"Go bindings to systemd for integration with the systemd logind API.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-machine1
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-machine1")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/machine1"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (native-inputs (list go-github-com-godbus-dbus))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for registering machines/containers")
+ (description "Go bindings to systemd for registering machines/containers.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.7: 0006-gnu-Add-go-github-com-coreos-go-systemd-unit.patch --]
[-- Type: text/x-diff, Size: 1926 bytes --]
From c193b9a4b34b4f63ff57c7990aea160f0f443998 Mon Sep 17 00:00:00 2001
Message-ID: <c193b9a4b34b4f63ff57c7990aea160f0f443998.1705520948.git.poptsov.artyom@gmail.com>
In-Reply-To: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
References: <790fc4be076e488bbbfcecd2dffba66bf884cf99.1705520948.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:48:36 +0300
Subject: [PATCH 6/6] gnu: Add go-github-com-coreos-go-systemd-unit.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-unit): New
variable.
Change-Id: I4103a0a8a3fe8f0efe4e21b053cecda9825efdc1
---
gnu/packages/golang.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5c2c2eb407..a2d697bebd 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9345,6 +9345,22 @@ (define-public go-github-com-coreos-go-systemd-machine1
(description "Go bindings to systemd for registering machines/containers.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-unit
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-unit")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/unit"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (native-inputs (list go-github-com-godbus-dbus))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for working with unit files")
+ (description
+ "Go bindings to systemd for (de)serialization and comparison of unit
+files.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Attachment #1.8: Type: text/plain, Size: 281 bytes --]
Thanks,
- avp
References:
1. https://github.com/coreos/go-systemd
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 869 bytes --]
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#68549] [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages.
2024-01-17 19:53 [bug#68549] [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages Artyom V. Poptsov
@ 2024-01-24 12:40 ` Sharlatan Hellseher
2024-01-24 15:09 ` Maxim Cournoyer
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Sharlatan Hellseher @ 2024-01-24 12:40 UTC (permalink / raw)
To: 68549
[-- Attachment #1: Type: text/plain, Size: 206 bytes --]
Hi,
This patch series adds binding to Systemd which is not provided by Guix.
If they are required for some other packages, please let me know and
I'll review upstream for any workaround(s).
Thanks,
Oleg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#68549] [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages.
2024-01-17 19:53 [bug#68549] [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages Artyom V. Poptsov
2024-01-24 12:40 ` Sharlatan Hellseher
@ 2024-01-24 15:09 ` Maxim Cournoyer
2024-02-11 20:19 ` Artyom V. Poptsov
2024-02-14 23:08 ` bug#68549: " Sharlatan Hellseher
[not found] ` <handler.68549.D68549.170795218227369.notifdone@debbugs.gnu.org>
3 siblings, 1 reply; 6+ messages in thread
From: Maxim Cournoyer @ 2024-01-24 15:09 UTC (permalink / raw)
To: Artyom V. Poptsov; +Cc: 68549
Hi!
"Artyom V. Poptsov" <poptsov.artyom@gmail.com> writes:
> Hello,
>
> this patch set adds most of the missing sub-packages for
> "go-systemd"[1].
>
> I wasn't able to package "sdjournal" as it requires systemd headers
> which are seems to be not present in Guix at the moment.
sdjournal is made available via our elogind package, which extracts the
logind bits of systemd.
Could you please resubmit a v2 version of your patch via git send-email,
it seems QA could not apply it cleanly:
https://qa.guix.gnu.org/issue/68549
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#68549] [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages.
2024-01-24 15:09 ` Maxim Cournoyer
@ 2024-02-11 20:19 ` Artyom V. Poptsov
0 siblings, 0 replies; 6+ messages in thread
From: Artyom V. Poptsov @ 2024-02-11 20:19 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: 68549
[-- Attachment #1.1: Type: text/plain, Size: 88 bytes --]
Hello Maxim!
Thank you for the patch review!
Here's the fixed version of the patches.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-go-github-com-coreos-go-systemd-daemon.patch --]
[-- Type: text/x-diff, Size: 1623 bytes --]
From b580cf281893bca1cf42296430099668e12d3d5e Mon Sep 17 00:00:00 2001
Message-ID: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:25:00 +0300
Subject: [PATCH 1/7] gnu: Add go-github-com-coreos-go-systemd-daemon.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-daemon): New
variable.
Change-Id: If79215d0676b9bb8dfe6e12a144a9b156f43f9be
---
gnu/packages/golang.scm | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 163691a1e6..9d732b595d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8625,6 +8625,19 @@ (define-public go-github-com-coreos-go-systemd-activation
using socket activation from Go.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-daemon
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-daemon")
+ (arguments
+ '(#:import-path "github.com/coreos/go-systemd/daemon"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for notifications")
+ (description "Go bindings to systemd for notifying the daemon of service status
+changes")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
base-commit: 9edbb2d7a40c9da7583a1046e39b87633459f656
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: 0002-gnu-Add-go-github-com-coreos-go-systemd-dbus.patch --]
[-- Type: text/x-diff, Size: 1857 bytes --]
From 2990002874fcec1feca941b5d1137fc73ef04138 Mon Sep 17 00:00:00 2001
Message-ID: <2990002874fcec1feca941b5d1137fc73ef04138.1707682476.git.poptsov.artyom@gmail.com>
In-Reply-To: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
References: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:34:12 +0300
Subject: [PATCH 2/7] gnu: Add go-github-com-coreos-go-systemd-dbus.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-dbus): New
variable.
Change-Id: Ib50ff86ec7c03fd8b5e732dc9b3ec5e4196d8d3b
---
gnu/packages/golang.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9d732b595d..ec5f4f1919 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8638,6 +8638,22 @@ (define-public go-github-com-coreos-go-systemd-daemon
changes")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-dbus
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-dbus")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/dbus"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (native-inputs (list go-github-com-godbus-dbus))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for managing services")
+ (description
+ "Go bindings to systemd for starting/stopping/inspecting running services and
+units.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.4: 0003-gnu-Add-go-github-com-coreos-go-systemd-journal.patch --]
[-- Type: text/x-diff, Size: 1808 bytes --]
From 529d69e701b8bf8eb33d0bae832618ddbe0c8a1c Mon Sep 17 00:00:00 2001
Message-ID: <529d69e701b8bf8eb33d0bae832618ddbe0c8a1c.1707682476.git.poptsov.artyom@gmail.com>
In-Reply-To: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
References: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:38:38 +0300
Subject: [PATCH 3/7] gnu: Add go-github-com-coreos-go-systemd-journal.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-journal): New
variable.
Change-Id: I6a8ae9d416ce7c4236ce0d8a8388da130964144c
---
gnu/packages/golang.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ec5f4f1919..4fae497d87 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8654,6 +8654,21 @@ (define-public go-github-com-coreos-go-systemd-dbus
units.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-journal
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-journal")
+ (arguments
+ '(#:tests? #f ;Tests require access to journald socket.
+ #:import-path "github.com/coreos/go-systemd/journal"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for writing journald")
+ (description
+ "Go bindings to systemd for writing to systemd's logging service,
+journald.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.5: 0004-gnu-Add-go-github-com-coreos-go-systemd-login1.patch --]
[-- Type: text/x-diff, Size: 1861 bytes --]
From b19724ad1418b870b1cc121960ac1b547feceb26 Mon Sep 17 00:00:00 2001
Message-ID: <b19724ad1418b870b1cc121960ac1b547feceb26.1707682476.git.poptsov.artyom@gmail.com>
In-Reply-To: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
References: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:43:37 +0300
Subject: [PATCH 4/7] gnu: Add go-github-com-coreos-go-systemd-login1.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-login1): New
variable.
Change-Id: I815e67c119b00232a620004f72e6b61d90d2c06a
---
gnu/packages/golang.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4fae497d87..2a36f6b299 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8669,6 +8669,21 @@ (define-public go-github-com-coreos-go-systemd-journal
journald.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-login1
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-login1")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/login1"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (native-inputs (list go-github-com-godbus-dbus))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for integration with logind API")
+ (description
+ "Go bindings to systemd for integration with the systemd logind API.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.6: 0005-gnu-Add-go-github-com-coreos-go-systemd-machine1.patch --]
[-- Type: text/x-diff, Size: 1922 bytes --]
From f824cfcd0db64e77715fa1a8a8f37e3e520a17c4 Mon Sep 17 00:00:00 2001
Message-ID: <f824cfcd0db64e77715fa1a8a8f37e3e520a17c4.1707682476.git.poptsov.artyom@gmail.com>
In-Reply-To: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
References: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:46:31 +0300
Subject: [PATCH 5/7] gnu: Add go-github-com-coreos-go-systemd-machine1.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-machine1): New
variable.
Change-Id: I2d9340a2b70dd68e24e4a88bdcd1f4c289100c6d
---
gnu/packages/golang.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 2a36f6b299..860195ded1 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8684,6 +8684,20 @@ (define-public go-github-com-coreos-go-systemd-login1
"Go bindings to systemd for integration with the systemd logind API.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-machine1
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-machine1")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/machine1"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (native-inputs (list go-github-com-godbus-dbus))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for registering machines/containers")
+ (description "Go bindings to systemd for registering machines/containers.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.7: 0006-gnu-Add-go-github-com-coreos-go-systemd-unit.patch --]
[-- Type: text/x-diff, Size: 1926 bytes --]
From 9bfd2545ed69424a2934a7639bfa7fd8bcff1c4f Mon Sep 17 00:00:00 2001
Message-ID: <9bfd2545ed69424a2934a7639bfa7fd8bcff1c4f.1707682476.git.poptsov.artyom@gmail.com>
In-Reply-To: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
References: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 17 Jan 2024 22:48:36 +0300
Subject: [PATCH 6/7] gnu: Add go-github-com-coreos-go-systemd-unit.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-unit): New
variable.
Change-Id: I4103a0a8a3fe8f0efe4e21b053cecda9825efdc1
---
gnu/packages/golang.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 860195ded1..5b1835aca1 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8698,6 +8698,22 @@ (define-public go-github-com-coreos-go-systemd-machine1
(description "Go bindings to systemd for registering machines/containers.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-unit
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-unit")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/unit"
+ #:unpack-path "github.com/coreos/go-systemd"))
+ (native-inputs (list go-github-com-godbus-dbus))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for working with unit files")
+ (description
+ "Go bindings to systemd for (de)serialization and comparison of unit
+files.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.8: 0007-gnu-Add-go-github-com-coreos-go-systemd-sdjournal.patch --]
[-- Type: text/x-diff, Size: 2694 bytes --]
From e8fe9949443c5b7b71e7ace257fc220d81cc89db Mon Sep 17 00:00:00 2001
Message-ID: <e8fe9949443c5b7b71e7ace257fc220d81cc89db.1707682476.git.poptsov.artyom@gmail.com>
In-Reply-To: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
References: <b580cf281893bca1cf42296430099668e12d3d5e.1707682476.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Mon, 29 Jan 2024 21:29:46 +0300
Subject: [PATCH 7/7] gnu: Add go-github-com-coreos-go-systemd-sdjournal.
* gnu/packages/golang.scm (go-github-com-coreos-go-systemd-sdjournal):
New variable.
Change-Id: I48d6d6e888ab757363a16bae9f50c1ff955f287a
---
gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5b1835aca1..6f5534265d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -78,6 +78,7 @@ (define-module (gnu packages golang)
#:use-module ((gnu packages bootstrap) #:select (glibc-dynamic-linker))
#:use-module (gnu packages check)
#:use-module (gnu packages fonts)
+ #:use-module (gnu packages freedesktop)
#:use-module (gnu packages gcc)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnupg)
@@ -8714,6 +8715,33 @@ (define-public go-github-com-coreos-go-systemd-unit
files.")
(license license:asl2.0)))
+(define-public go-github-com-coreos-go-systemd-sdjournal
+ (package
+ (inherit go-github-com-coreos-go-systemd-activation)
+ (name "go-github-com-coreos-go-systemd-sdjournal")
+ (arguments
+ '(#:tests? #f ;Tests require D-Bus daemon running.
+ #:import-path "github.com/coreos/go-systemd/sdjournal"
+ #:unpack-path "github.com/coreos/go-systemd"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-sdjournal-header
+ (lambda* (#:key import-path #:allow-other-keys)
+ (substitute* (format #f
+ "src/~a/journal.go"
+ import-path)
+ (("systemd/sd-journal.h")
+ "elogind/sd-journal.h")
+ (("systemd/sd-id128.h")
+ "elogind/sd-id128.h")))))))
+ (inputs (list elogind))
+ (home-page "https://github.com/coreos/go-systemd")
+ (synopsis "Go bindings to systemd for journald")
+ (description
+ "Go bindings to systemd for reading from journald by wrapping its C
+API.")
+ (license license:asl2.0)))
+
(define-public go-github-com-emirpasic-gods
(package
(name "go-github-com-emirpasic-gods")
--
2.41.0
[-- Attachment #1.9: Type: text/plain, Size: 408 bytes --]
The updated version of my patch set includes "sdjournal" where all
references on "systemd" package were replaced with "elogind". Also I
rebased the patchset on "master" branch.
Thanks,
- avp
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 869 bytes --]
^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#68549: [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages.
2024-01-17 19:53 [bug#68549] [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages Artyom V. Poptsov
2024-01-24 12:40 ` Sharlatan Hellseher
2024-01-24 15:09 ` Maxim Cournoyer
@ 2024-02-14 23:08 ` Sharlatan Hellseher
[not found] ` <handler.68549.D68549.170795218227369.notifdone@debbugs.gnu.org>
3 siblings, 0 replies; 6+ messages in thread
From: Sharlatan Hellseher @ 2024-02-14 23:08 UTC (permalink / raw)
To: 68549-done
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
Hi,
I've removed licenses field from each package as all of them inherited
from the same source and placed them in golang-xyz.
Pushed as 30afb17152..9ddb59f452 to master.
--
Oleg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#68549] closed ([PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages.)
[not found] ` <handler.68549.D68549.170795218227369.notifdone@debbugs.gnu.org>
@ 2024-02-16 19:52 ` Maxim Cournoyer
0 siblings, 0 replies; 6+ messages in thread
From: Maxim Cournoyer @ 2024-02-16 19:52 UTC (permalink / raw)
To: Sharlatan Hellseher; +Cc: 68549, Artyom V. Poptsov
Hi,
help-debbugs@gnu.org (GNU bug Tracking System) writes:
> Your bug report
>
> #68549: [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages.
>
> which was filed against the guix-patches package, has been closed.
>
> The explanation is attached below, along with your original report.
> If you require more details, please reply to 68549@debbugs.gnu.org.
>
> --
> 68549: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68549
> GNU Bug Tracking System
> Contact help-debbugs@gnu.org with problems
>
> From: Sharlatan Hellseher <sharlatanus@gmail.com>
> Subject: [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages.
> To: 68549-done@debbugs.gnu.org
> Date: Wed, 14 Feb 2024 23:08:14 +0000 (1 day, 20 hours, 43 minutes ago)
>
>
> Hi,
>
> I've removed licenses field from each package as all of them inherited
> from the same source and placed them in golang-xyz.
>
> Pushed as 30afb17152..9ddb59f452 to master.
Thank you, Oleg!
--
Maxim
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-02-16 19:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-17 19:53 [bug#68549] [PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages Artyom V. Poptsov
2024-01-24 12:40 ` Sharlatan Hellseher
2024-01-24 15:09 ` Maxim Cournoyer
2024-02-11 20:19 ` Artyom V. Poptsov
2024-02-14 23:08 ` bug#68549: " Sharlatan Hellseher
[not found] ` <handler.68549.D68549.170795218227369.notifdone@debbugs.gnu.org>
2024-02-16 19:52 ` [bug#68549] closed ([PATCH] gnu: Add "go-github-com-coreos-go-systemd" sub-packages.) Maxim Cournoyer
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).