GNU bug report logs - #55295
[PATCH] gnu: gcolor3: Update to 0.2.4-28.6699c15

Previous Next

Package: guix-patches;

Reported by: Sughosha <Sughosha <at> proton.me>

Date: Fri, 6 May 2022 20:34:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

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 55295 in the body.
You can then email your comments to 55295 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#55295; Package guix-patches. (Fri, 06 May 2022 20:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sughosha <Sughosha <at> proton.me>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 06 May 2022 20:34:02 GMT) Full text and rfc822 format available.

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

From: Sughosha <Sughosha <at> proton.me>
To: "guix-patches <at> gnu.org" <guix-patches <at> gnu.org>
Subject: [PATCH] gnu: gcolor3: Update to 0.2.4-28.6699c15
Date: Fri, 06 May 2022 19:49:36 +0000
[Message part 1 (text/plain, inline)]
Empty Message
[Message part 2 (text/html, inline)]
[0001-gnu-gcolor3-Update-to-0.2.4-28.6699c15.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#55295; Package guix-patches. (Sat, 07 May 2022 10:01:01 GMT) Full text and rfc822 format available.

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

From: Daniel Meißner
 <daniel.meissner-i4k <at> ruhr-uni-bochum.de>
To: 55295 <at> debbugs.gnu.org
Subject: [PATCH] gnu: gcolor3: Update to 0.2.4-28.6699c15
Date: Sat, 07 May 2022 12:00:03 +0200
Hi,

IMHO it's cleaner to just extract commit https://gitlab.gnome.org/World/gcolor3/-/commit/1750369a3fd922aa9db6916207dc460c6f885e14 from upstream in a patch file and apply it to the package instead of packaging an unreleased version. I have done something similar for eog in https://issues.guix.gnu.org/53161#2

Thanks

-- 
Daniel




Information forwarded to guix-patches <at> gnu.org:
bug#55295; Package guix-patches. (Mon, 09 May 2022 07:05:05 GMT) Full text and rfc822 format available.

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

From: Sughosha <Sughosha <at> proton.me>
To: "55295 <at> debbugs.gnu.org" <55295 <at> debbugs.gnu.org>
Subject: [PATCH] gnu: gcolor3: Fix build with libportal-0.5
Date: Sun, 08 May 2022 21:21:52 +0000
[Message part 1 (text/plain, inline)]
---
gnu/packages/gnome.scm | 4 +-
.../gcolor3-update-libportal-usage.patch | 55 +++++++++++++++++++
2 files changed, 58 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/gcolor3-update-libportal-usage.patch

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index dae6692109..53eec9336d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10321,7 +10321,9 @@ (define-public gcolor3
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1igqmach1vhcrvbpw346pmkbb5kabbb806ssswrvkp569n700wmc"))))
+ (base32 "1igqmach1vhcrvbpw346pmkbb5kabbb806ssswrvkp569n700wmc"))
+ ;; XXX: Remove when upgrading to 42.0
+ (patches (search-patches "gcolor3-update-libportal-usage.patch"))))
(build-system meson-build-system)
(arguments
`(#:glib-or-gtk? #t))
diff --git a/gnu/packages/patches/gcolor3-update-libportal-usage.patch b/gnu/packages/patches/gcolor3-update-libportal-usage.patch
new file mode 100644
index 0000000000..0d19b124fd
--- /dev/null
+++ b/gnu/packages/patches/gcolor3-update-libportal-usage.patch
@@ -0,0 +1,55 @@
+Fix gcolor3 to work with libportal-0.5
+
+This patch is extracted from upstream, see here
+https://gitlab.gnome.org/World/gcolor3/-/commit/1750369a3fd922aa9db6916207dc460c6f885e14
+
+From 1750369a3fd922aa9db6916207dc460c6f885e14 Mon Sep 17 00:00:00 2001
+From: Michal Vasilek <michal <at> vasilek.cz>
+Date: Mon, 27 Dec 2021 13:47:14 +0100
+Subject: [PATCH] Update to libportal 0.5
+
+---
+ meson.build | 2 ++
+ src/gcolor3-color-selection.c | 2 +-
+ src/meson.build | 1 +
+ 3 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 6453679..7d6dc50 100644
+--- a/meson.build
++++ b/meson.build
+@@ -7,9 +7,11 @@ dep_gtk = dependency('gtk+-3.0', version: '>= 3.20.0', required: true)
+ dep_libportal = dependency(
+ 'libportal',
+ required: true,
++ version: '>= 0.5',
+ fallback: ['libportal', 'libportal_dep'],
+ default_options: ['gtk_doc=false'],
+ )
++dep_libportal_gtk3 = dependency('libportal-gtk3', version: '>= 0.5', required: true)
+ cc = meson.get_compiler('c')
+ dep_lm = cc.find_library('m', required: true)
+
+diff --git a/src/gcolor3-color-selection.c b/src/gcolor3-color-selection.c
+index 7413850..5df9d54 100644
+--- a/src/gcolor3-color-selection.c
++++ b/src/gcolor3-color-selection.c
+@@ -41,7 +41,7 @@
+ #include <gtk/gtk.h>
+ #include <glib/gi18n.h>
+ #include <libportal/portal.h>
+-#include <libportal/portal-gtk3.h>
++#include <libportal-gtk3/portal-gtk3.h>
+
+ #ifdef ENABLE_NLS
+ #define P_(String) g_dgettext(GETTEXT_PACKAGE "-properties",String)
+diff --git a/src/meson.build b/src/meson.build
+index 3998f68..d488e51 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -42,6 +42,7 @@ executable(
+ dependencies: [
+ dep_gtk,
+ dep_libportal,
++ dep_libportal_gtk3,
+ dep_lm
+ ],
+ install: true,
+--
+GitLab
+
--
2.36.0
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#55295; Package guix-patches. (Mon, 09 May 2022 07:05:05 GMT) Full text and rfc822 format available.

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

From: Sughosha <Sughosha <at> proton.me>
To: "55295 <at> debbugs.gnu.org" <55295 <at> debbugs.gnu.org>
Subject: Re: [PATCH] gnu: gcolor3: Fix build with libportal-0.5
Date: Sun, 08 May 2022 21:41:46 +0000
[Message part 1 (text/plain, inline)]
Sorry, one small correction to the above (a comment was containing misleading version number)..

---
gnu/packages/gnome.scm | 4 +-
.../gcolor3-update-libportal-usage.patch | 55 +++++++++++++++++++
2 files changed, 58 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/gcolor3-update-libportal-usage.patch

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index dae6692109..53eec9336d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10321,7 +10321,9 @@ (define-public gcolor3
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1igqmach1vhcrvbpw346pmkbb5kabbb806ssswrvkp569n700wmc"))))
+ (base32 "1igqmach1vhcrvbpw346pmkbb5kabbb806ssswrvkp569n700wmc"))
+ ;; XXX: Remove when upgrading
+ (patches (search-patches "gcolor3-update-libportal-usage.patch"))))
(build-system meson-build-system)
(arguments
`(#:glib-or-gtk? #t))
diff --git a/gnu/packages/patches/gcolor3-update-libportal-usage.patch b/gnu/packages/patches/gcolor3-update-libportal-usage.patch
new file mode 100644
index 0000000000..0d19b124fd
--- /dev/null
+++ b/gnu/packages/patches/gcolor3-update-libportal-usage.patch
@@ -0,0 +1,55 @@
+Fix gcolor3 to work with libportal-0.5
+
+This patch is extracted from upstream, see here
+https://gitlab.gnome.org/World/gcolor3/-/commit/1750369a3fd922aa9db6916207dc460c6f885e14
+
+From 1750369a3fd922aa9db6916207dc460c6f885e14 Mon Sep 17 00:00:00 2001
+From: Michal Vasilek <michal <at> vasilek.cz>
+Date: Mon, 27 Dec 2021 13:47:14 +0100
+Subject: [PATCH] Update to libportal 0.5
+
+---
+ meson.build | 2 ++
+ src/gcolor3-color-selection.c | 2 +-
+ src/meson.build | 1 +
+ 3 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 6453679..7d6dc50 100644
+--- a/meson.build
++++ b/meson.build
+@@ -7,9 +7,11 @@ dep_gtk = dependency('gtk+-3.0', version: '>= 3.20.0', required: true)
+ dep_libportal = dependency(
+ 'libportal',
+ required: true,
++ version: '>= 0.5',
+ fallback: ['libportal', 'libportal_dep'],
+ default_options: ['gtk_doc=false'],
+ )
++dep_libportal_gtk3 = dependency('libportal-gtk3', version: '>= 0.5', required: true)
+ cc = meson.get_compiler('c')
+ dep_lm = cc.find_library('m', required: true)
+
+diff --git a/src/gcolor3-color-selection.c b/src/gcolor3-color-selection.c
+index 7413850..5df9d54 100644
+--- a/src/gcolor3-color-selection.c
++++ b/src/gcolor3-color-selection.c
+@@ -41,7 +41,7 @@
+ #include <gtk/gtk.h>
+ #include <glib/gi18n.h>
+ #include <libportal/portal.h>
+-#include <libportal/portal-gtk3.h>
++#include <libportal-gtk3/portal-gtk3.h>
+
+ #ifdef ENABLE_NLS
+ #define P_(String) g_dgettext(GETTEXT_PACKAGE "-properties",String)
+diff --git a/src/meson.build b/src/meson.build
+index 3998f68..d488e51 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -42,6 +42,7 @@ executable(
+ dependencies: [
+ dep_gtk,
+ dep_libportal,
++ dep_libportal_gtk3,
+ dep_lm
+ ],
+ install: true,
+--
+GitLab
+
--2.36.0
------- Original Message -------
Sughosha <Sughosha <at> proton.me> schrieb am Sonntag, 8. Mai 2022 um 23:21:

> ---
> gnu/packages/gnome.scm | 4 +-
> .../gcolor3-update-libportal-usage.patch | 55 +++++++++++++++++++
> 2 files changed, 58 insertions(+), 1 deletion(-)
> create mode 100644 gnu/packages/patches/gcolor3-update-libportal-usage.patch
>
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index dae6692109..53eec9336d 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -10321,7 +10321,9 @@ (define-public gcolor3
> (commit (string-append "v" version))))
> (file-name (git-file-name name version))
> (sha256
> - (base32 "1igqmach1vhcrvbpw346pmkbb5kabbb806ssswrvkp569n700wmc"))))
> + (base32 "1igqmach1vhcrvbpw346pmkbb5kabbb806ssswrvkp569n700wmc"))
> + ;; XXX: Remove when upgrading to 42.0
> + (patches (search-patches "gcolor3-update-libportal-usage.patch"))))
> (build-system meson-build-system)
> (arguments
> `(#:glib-or-gtk? #t))
> diff --git a/gnu/packages/patches/gcolor3-update-libportal-usage.patch b/gnu/packages/patches/gcolor3-update-libportal-usage.patch
> new file mode 100644
> index 0000000000..0d19b124fd
> --- /dev/null
> +++ b/gnu/packages/patches/gcolor3-update-libportal-usage.patch
> @@ -0,0 +1,55 @@
> +Fix gcolor3 to work with libportal-0.5
> +
> +This patch is extracted from upstream, see here
> +https://gitlab.gnome.org/World/gcolor3/-/commit/1750369a3fd922aa9db6916207dc460c6f885e14
> +
> +From 1750369a3fd922aa9db6916207dc460c6f885e14 Mon Sep 17 00:00:00 2001
> +From: Michal Vasilek <michal <at> vasilek.cz>
> +Date: Mon, 27 Dec 2021 13:47:14 +0100
> +Subject: [PATCH] Update to libportal 0.5
> +
> +---
> + meson.build | 2 ++
> + src/gcolor3-color-selection.c | 2 +-
> + src/meson.build | 1 +
> + 3 files changed, 4 insertions(+), 1 deletion(-)
> +
> +diff --git a/meson.build b/meson.build
> +index 6453679..7d6dc50 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -7,9 +7,11 @@ dep_gtk = dependency('gtk+-3.0', version: '>= 3.20.0', required: true)
> + dep_libportal = dependency(
> + 'libportal',
> + required: true,
> ++ version: '>= 0.5',
> + fallback: ['libportal', 'libportal_dep'],
> + default_options: ['gtk_doc=false'],
> + )
> ++dep_libportal_gtk3 = dependency('libportal-gtk3', version: '>= 0.5', required: true)
> + cc = meson.get_compiler('c')
> + dep_lm = cc.find_library('m', required: true)
> +
> +diff --git a/src/gcolor3-color-selection.c b/src/gcolor3-color-selection.c
> +index 7413850..5df9d54 100644
> +--- a/src/gcolor3-color-selection.c
> ++++ b/src/gcolor3-color-selection.c
> +@@ -41,7 +41,7 @@
> + #include <gtk/gtk.h>
> + #include <glib/gi18n.h>
> + #include <libportal/portal.h>
> +-#include <libportal/portal-gtk3.h>
> ++#include <libportal-gtk3/portal-gtk3.h>
> +
> + #ifdef ENABLE_NLS
> + #define P_(String) g_dgettext(GETTEXT_PACKAGE "-properties",String)
> +diff --git a/src/meson.build b/src/meson.build
> +index 3998f68..d488e51 100644
> +--- a/src/meson.build
> ++++ b/src/meson.build
> +@@ -42,6 +42,7 @@ executable(
> + dependencies: [
> + dep_gtk,
> + dep_libportal,
> ++ dep_libportal_gtk3,
> + dep_lm
> + ],
> + install: true,
> +--
> +GitLab
> +
> --
> 2.36.0
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#55295; Package guix-patches. (Wed, 11 May 2022 13:05:02 GMT) Full text and rfc822 format available.

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

From: Daniel Meißner <daniel.meissner-i4k <at> ruhr-uni-bochum.de>
To: Sughosha <Sughosha <at> proton.me>
Cc: 55295 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: gcolor3: Update to 0.2.4-28.6699c15
Date: Wed, 11 May 2022 15:04:31 +0200
Hi,

Thanks, I applied your patches to my local checkout and the package
builds.  Unfortunately, I do not have commit access, so I cannot push
your changes :-(

You would have to wait for someone with commit access.

Best

--
Daniel




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 16 May 2022 13:52:01 GMT) Full text and rfc822 format available.

Notification sent to Sughosha <Sughosha <at> proton.me>:
bug acknowledged by developer. (Mon, 16 May 2022 13:52:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Sughosha <Sughosha <at> proton.me>
Cc: Daniel Meißner
 <daniel.meissner-i4k <at> ruhr-uni-bochum.de>,
 "55295-done <at> debbugs.gnu.org" <55295-done <at> debbugs.gnu.org>
Subject: Re: bug#55295: [PATCH] gnu: gcolor3: Update to 0.2.4-28.6699c15
Date: Mon, 16 May 2022 15:51:45 +0200
Hi,

Sughosha <Sughosha <at> proton.me> skribis:

> Sorry, one small correction to the above (a comment was containing misleading version number)..
>
> ---
>  gnu/packages/gnome.scm                        |  4 +-
>  .../gcolor3-update-libportal-usage.patch      | 55 +++++++++++++++++++
>  2 files changed, 58 insertions(+), 1 deletion(-)
>  create mode 100644 gnu/packages/patches/gcolor3-update-libportal-usage.patch

I added the new file to ‘gnu/local.mk’, including a conventional commit
log, and pushed as commit 5ba12f0176300d154b086485ecf363f10f283a9f.

Please take a look at
<https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html>
if unsure about the project conventions.  I’d also encourage you to send
patches with ‘git send-email’—pasting them in your mail client might
mangle them.

Thank you and thanks Daniel for taking a look!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 14 Jun 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 313 days ago.

Previous Next


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