GNU bug report logs -
#50035
[PATCH 1/3] gnu: go-github-com-godbus-dbus: Update to 5.0.4.
Previous Next
Reported by: Sarah Morgensen <iskarian <at> mgsn.dev>
Date: Fri, 13 Aug 2021 03:08: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 50035 in the body.
You can then email your comments to 50035 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#50035
; Package
guix-patches
.
(Fri, 13 Aug 2021 03:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sarah Morgensen <iskarian <at> mgsn.dev>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 13 Aug 2021 03:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/golang.scm (go-github-com-godbus-dbus): Update to 5.0.4.
---
While I was updating this, I renamed it to match the proper import path (so
the Go importer sees this package), and fixed those pesky D-Bus tests.
--
Sarah
gnu/packages/golang.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index f4cd30c662..15826514bc 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7424,7 +7424,7 @@ and @code{ioutil} packages that is easy to test.")
(define-public go-github-com-godbus-dbus
(package
(name "go-github-com-godbus-dbus")
- (version "5.0.3")
+ (version "5.0.4")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -7433,7 +7433,7 @@ and @code{ioutil} packages that is easy to test.")
(file-name (git-file-name name version))
(sha256
(base32
- "1bkc904073k807yxg6mvqaxrr6ammmhginr9p54jfb55mz3hfw3s"))))
+ "0znax8kskb5gmp5fj75w56bc9p7b22wrdswzlh4d04sprlc471yi"))))
(build-system go-build-system)
(arguments
`(#:tests? #f ;no /var/run/dbus/system_bus_socket
base-commit: d87d6d68128c53a95fe09c3a4381575646c0f368
--
2.31.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#50035
; Package
guix-patches
.
(Fri, 13 Aug 2021 03:14:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 50035 <at> debbugs.gnu.org (full text, mbox):
The proper module name now includes "-v5" (see project's go.mod). Change
the variable/package name to help the Go importer find it.
* gnu/packages/golang.scm (go-github-com-godbus-dbus): Rename to...
(go-github-com-godbus-dbus-v5): ...this.
(go-github-com-zalando-go-keyring)[native-inputs]: Adjust accordingly.
* gnu/packages/configuration-management.scm (chezmoi): Likewise.
---
gnu/packages/configuration-management.scm | 2 +-
gnu/packages/golang.scm | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/configuration-management.scm b/gnu/packages/configuration-management.scm
index 9aee13a172..8b4ba2b71e 100644
--- a/gnu/packages/configuration-management.scm
+++ b/gnu/packages/configuration-management.scm
@@ -91,7 +91,7 @@
("go-github-com-twpayne-go-xdg" ,go-github-com-twpayne-go-xdg)
("go-github-com-yuin-goldmark" ,go-github-com-yuin-goldmark)
("go-github-com-zalando-go-keyring" ,go-github-com-zalando-go-keyring)
- ("go-github-com-godbus-dbus" ,go-github-com-godbus-dbus)
+ ("go-github-com-godbus-dbus-v5" ,go-github-com-godbus-dbus-v5)
("go-etcd-io-bbolt" ,go-etcd-io-bbolt)
("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
("go-golang-org-x-net" ,go-golang-org-x-net)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 15826514bc..359c5a987d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7421,9 +7421,9 @@ and @code{ioutil} packages that is easy to test.")
@uref{freedesktop.org}.")
(license license:expat)))
-(define-public go-github-com-godbus-dbus
+(define-public go-github-com-godbus-dbus-v5
(package
- (name "go-github-com-godbus-dbus")
+ (name "go-github-com-godbus-dbus-v5")
(version "5.0.4")
(source (origin
(method git-fetch)
@@ -7464,7 +7464,7 @@ bindings for the D-Bus message bus system.")
`(#:tests? #f ;XXX: Fix dbus tests
#:import-path "github.com/zalando/go-keyring"))
(native-inputs
- `(("go-github-com-godbus-dbus" ,go-github-com-godbus-dbus)
+ `(("go-github-com-godbus-dbus-v5" ,go-github-com-godbus-dbus-v5)
("dbus" ,dbus)))
(home-page "https://github.com/zalando/go-keyring/")
(synopsis "Library for working with system keyring")
--
2.31.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#50035
; Package
guix-patches
.
(Fri, 13 Aug 2021 03:14:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 50035 <at> debbugs.gnu.org (full text, mbox):
Disable system D-Bus tests. Fix session D-Bus tests by running them
within our own session.
* gnu/packages/golang.scm (go-github-com-godbus-dbus-v5)[source]: Add
snippet to disable system D-Bus tests.
[arguments]: Enable tests, override 'check phase to run tests within a
dbus session.
---
gnu/packages/golang.scm | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 359c5a987d..28ead635f2 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7431,13 +7431,27 @@ and @code{ioutil} packages that is easy to test.")
(url "https://github.com/godbus/dbus")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Disable tests which require a system D-Bus instance.
+ (substitute* "conn_test.go"
+ (("func TestSystemBus")
+ "func DisabledTestSystemBus")
+ (("func TestConnectSystemBus")
+ "func DisabledTestConnectSystemBus"))))
(sha256
(base32
"0znax8kskb5gmp5fj75w56bc9p7b22wrdswzlh4d04sprlc471yi"))))
(build-system go-build-system)
(arguments
- `(#:tests? #f ;no /var/run/dbus/system_bus_socket
- #:import-path "github.com/godbus/dbus"))
+ `(#:import-path "github.com/godbus/dbus"
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (when tests?
+ (invoke "dbus-run-session" "--" "go" "test" import-path)))))))
(native-inputs
`(("dbus" ,dbus))) ;dbus-launch
(home-page "https://github.com/godbus/dbus/")
--
2.31.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#50035
; Package
guix-patches
.
(Fri, 13 Aug 2021 19:13:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 50035 <at> debbugs.gnu.org (full text, mbox):
I was just working on another package that needs the current version of godbus-dbus, so thanks for this patch. I haven't yet built your version, but previously I had to disable tests that it looks like you fixed, great!
Information forwarded
to
guix-patches <at> gnu.org
:
bug#50035
; Package
guix-patches
.
(Fri, 04 Feb 2022 20:07:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 50035 <at> debbugs.gnu.org (full text, mbox):
Hello,
I recently built this with these changes and updating to version 5.0.6 with hash 0d7740bjprd6mhs1wmhd53fb3kf61dz0hp1a0dda3dc28w2z84pp Builds successfully and works for a package I'm working on.
I'm not sure how much of a "review" this counts for exactly, but would be great to have this revived and pushed.
Thanks!
John
Information forwarded
to
guix-patches <at> gnu.org
:
bug#50035
; Package
guix-patches
.
(Thu, 12 Oct 2023 17:55:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 50035 <at> debbugs.gnu.org (full text, mbox):
Hi Ludo’ and Nguyễn (and cc'ing Sarah from earlier patches),
On Fri, Oct 13, 2023 at 01:16 AM, Nguyễn Gia Phong wrote:
> On 2023-10-12 at 17:12+02:00, Ludovic Courtès wrote:
>> <https://qa.guix.gnu.org/issue/64222> was inconclusive
>> (for some reason it had not built all the dependents)
>
> qa.guix.gnu.org was briefly broken at the time IIRC,
> happened to other adjacent patchsets.
>
> On 2023-10-12 at 17:12+02:00, Ludovic Courtès wrote:
>> so I checked locally and the go-github-com-godbus-dbus upgrade
>> does not introduce new breakage.
>>
I haven't checked but this might need some fixing as based on an earlier
patch for updating godbus (I can't help but read this as "god bus") the
import name has changed. Though as an example chezmoi seems to have been
broken for some time anyway. Maybe the import-name doesn't need the v5?
See
<https://issues.guix.gnu.org/50035>
and
<https://issues.guix.gnu.org/50037>.
The earlier patch also has fixes for the tests which would be good to
include now.
My apologies to Sarah as my original replies way back when only went to
the bug number (we should document this, easy beginner mistake!) and
once I became a committer this was on my list to update and push but I
didn't get around to it.
Nguyễn and/or Sarah would you like to submit a patch to change the
import path if needed, enable tests, and make any other changes? I could
also take a look if no one gets to it quickly.
>> I wrapped the long ‘description’ lines, removed ‘Signed-off-by’ tags
>> from the logs (they’re for committers), and committed.
>
> Thanks a lot!
Thanks to all on this updates!
John
PS: Looks like one extra signed-off-by tag made it through on a commit.
Oh well, glad I'm not the only one who's not perfect at these things!
Information forwarded
to
guix-patches <at> gnu.org
:
bug#50035
; Package
guix-patches
.
(Fri, 13 Oct 2023 04:54:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 50035 <at> debbugs.gnu.org (full text, mbox):
On 2023-10-12 at 17:53+00:00, John Kehayias wrote:
> [godbus's] import name has changed. Though as an example
> chezmoi seems to have been broken for some time anyway.
> Maybe the import-name doesn't need the v5?
IIUC go-github-com-godbus-dbus is just a name for human consumption,
on the other hand I don't understand how it works without
the import-path matching the one in the go.mod file:
On 2021-08-13 at 20:49-07:00, Sarah Morgensen wrote in patchset 50037:
> - `(#:import-path "github.com/godbus/dbus"
> + `(#:import-path "github.com/godbus/dbus/v5"
On 2023-10-12 at 17:53+00:00, John Kehayias wrote:
> Nguyễn and/or Sarah would you like to submit a patch to change the
> import path if needed, enable tests, and make any other changes? I could
> also take a look if no one gets to it quickly.
As stated above, I don't quite understand how go packages work
(when they don't seem to be supposed to), so you two please go ahead.
(BTW you can call me by my given name Phong.)
On 2023-10-12 at 17:53+00:00, John Kehayias wrote:
> I can't help but read this as "god bus"
Yea DBus is short for Dieu Bus anyway.
Reply sent
to
Sharlatan Hellseher <sharlatanus <at> gmail.com>
:
You have taken responsibility.
(Tue, 03 Sep 2024 10:14:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Sarah Morgensen <iskarian <at> mgsn.dev>
:
bug acknowledged by developer.
(Tue, 03 Sep 2024 10:14:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 50035-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
This patch series was used as base for:
- fa7de86cfc * gnu: go-github-com-zalando-go-keyring: Enable tests.
- 669dc9d906 * gnu: go-github-com-zalando-go-keyring: Update to 0.2.5.
- 7573464ede * gnu: go-github-com-gsterjov-go-libsecret: Improve package style.
- c32ae37272 * gnu: go-github-com-gsterjov-go-libsecret: Update to 0.0.0-20161001094733-a6f4afe4910c.
- d567987426 * gnu: go-github-com-godbus-dbus: Enable tests.
- 5bb0d4b0d6 * gnu: Add go-github-com-godbus-dbus-v5.
--
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, 02 Oct 2024 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 162 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.