gnu: Add go-github-com-godbus-dbus-v5.

These changes resolve issues with golang import paths for
<github.com/godbus/dbus> and <github.com/godbus/dbus/v5> by adding a new
variable with downgrading existing one to the latest version where
import path is still <github.com/godbus/dbus>.  It addresses the cases
with unit tests failures and help importer to resolve dependencies.

* gnu/packages/golang.scm (go-github-com-godbus-dbus): Downgrade to
0.0.0-20190726142602-4481cbc300e2.
(go-github-com-godbus-dbus-v5): New variable, preserver version of
go-github-com-godbus-dbus.
(go-github-com-delthas-go-libnp) [propagated-inputs]: Remove
go-github-com-godbus-dbus, add go-github-com-godbus-dbus-v5.

* gnu/packages/golang-xyz.scm (go-github-com-coreos-go-systemd-v22)
[propagated-inputs]: Remove go-github-com-godbus-dbus, add
go-github-com-godbus-dbus-v5.

Change-Id: Idbeb3c625da55bdd4620afab31b024ef0a0b79ec
Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Sarah Morgensen 2024-08-29 00:50:47 +01:00 committed by Sharlatan Hellseher
parent 5147787b1f
commit d4da8af4e4
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
2 changed files with 25 additions and 5 deletions

View file

@ -1611,7 +1611,7 @@ (define-public go-github-com-coreos-go-systemd-v22
(inputs
(list elogind))
(propagated-inputs
(list go-github-com-godbus-dbus))
(list go-github-com-godbus-dbus-v5))
(home-page "https://github.com/coreos/go-systemd")
(synopsis "Go bindings to systemd")
(description

View file

@ -6654,16 +6654,16 @@ (define-public go-github-com-xdg-go-scram
(define-public go-github-com-godbus-dbus
(package
(name "go-github-com-godbus-dbus")
(version "5.1.0")
(version "0.0.0-20190726142602-4481cbc300e2")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/godbus/dbus")
(commit (string-append "v" version))))
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32
"1kayd4x7idrhi06ahh5kqkgwzgh9icvv71mjar2d0jl486dfs8r5"))))
"0h0cl1r136g0kxbw3i7ggb9mhavpi1yr7d7312iwhkxm93dxkphg"))))
(build-system go-build-system)
(arguments
`(#:tests? #f ;no /var/run/dbus/system_bus_socket
@ -6676,6 +6676,26 @@ (define-public go-github-com-godbus-dbus
bindings for the D-Bus message bus system.")
(license license:bsd-2)))
(define-public go-github-com-godbus-dbus-v5
(package
(inherit go-github-com-godbus-dbus)
(name "go-github-com-godbus-dbus-v5")
(version "5.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/godbus/dbus")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1kayd4x7idrhi06ahh5kqkgwzgh9icvv71mjar2d0jl486dfs8r5"))))
(arguments
(substitute-keyword-arguments
(package-arguments go-github-com-godbus-dbus)
((#:import-path _ "github.com/godbus/dbus")
"github.com/godbus/dbus/v5")))))
(define-public go-github-com-delthas-go-libnp
(let ((commit "0e45ece1f878f202fee2c74801e287804668f677"))
(package
@ -6692,7 +6712,7 @@ (define-public go-github-com-delthas-go-libnp
"1hylpvwz3kb8wr00knba6mggjacak2vmqafwysansj0ns038lp8w"))))
(build-system go-build-system)
(arguments `(#:import-path "github.com/delthas/go-libnp"))
(propagated-inputs (list go-github-com-godbus-dbus))
(propagated-inputs (list go-github-com-godbus-dbus-v5))
(home-page "https://github.com/delthas/go-libnp")
(synopsis "Tiny library providing information about now-playing media")
(description "@code{go-libnp} is a tiny cross-platform library for