Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836831

Summary: media-gfx/shotwell-0.30.15 - Dependency "gdk-wayland-3.0" not found
Product: Gentoo Linux Reporter: Helmut Jarausch <jarausch>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED OBSOLETE    
Severity: normal CC: erkiferenc, hrabe, jstein, mplichta, web.alexander
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.gnome.org/GNOME/shotwell/-/issues/4978
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
meson log
emerge --info
shotwell-0.30.15-wayland-non-mandatory.patch

Description Helmut Jarausch 2022-04-05 11:26:44 UTC
Created attachment 768868 [details]
build log

Build fails with

meson.build:67:0: ERROR: Dependency "gdk-wayland-3.0" not found, tried pkgconfig and cmake
Comment 1 Helmut Jarausch 2022-04-05 11:30:11 UTC
Created attachment 768869 [details]
meson log
Comment 2 Helmut Jarausch 2022-04-05 11:32:15 UTC
Created attachment 768870 [details]
emerge --info
Comment 3 Attila Tóth 2022-04-05 20:00:01 UTC
Created attachment 768907 [details, diff]
shotwell-0.30.15-wayland-non-mandatory.patch

What could I say?
Comment 4 Helmut Jarausch 2022-04-06 10:32:33 UTC
Thanks, that fixed it.
Helmut
Comment 5 Alex D-Bug 2022-04-06 16:36:06 UTC
Confirm, thanks =)
Comment 6 Pacho Ramos gentoo-dev 2022-05-29 18:05:37 UTC
I would report the issue to upstream too:
https://gitlab.gnome.org/GNOME/shotwell/-/issues

Thanks
Comment 7 Michal Plichta 2022-05-31 20:56:01 UTC
https://gitlab.gnome.org/GNOME/shotwell/-/issues/4978
Comment 8 Michal Plichta 2022-06-01 09:34:19 UTC
Issue was closed with comment...

Jens Georg commented:
er no. This is completely removing that. Carry that on teh gentoo side if you wish, I don't care about patch. it is wrong.
Comment 9 Jan Hrabe 2022-06-01 15:34:57 UTC
I filed a bug on a shotwell site and got the following response:

--------
Jens Georg commented:
Please just install the development library gdk-wayland-3.0. It will not use wayland, it is to be able to detect whether it runs on wayland.
--------

So I tried to install dev-libs/wayland which seemed like the closest match.  This did not help.  

Moreover, the 0.30.14 version of shotwell has now disappeared from the repo so masking > 0.30.14 is no longer an option for a new install.  My solution is therefore to switch to a different viewer, ristretto in my case.  This works fine for me.
Comment 10 Matt Turner gentoo-dev 2022-06-01 16:02:01 UTC
(In reply to Jan Hrabe from comment #9)
> So I tried to install dev-libs/wayland which seemed like the closest match. 
> This did not help.  

gdk-wayland-3.0 is provided by x11-libs/gtk+[wayland].
Comment 11 Jan Hrabe 2022-06-01 18:57:10 UTC
(In reply to Matt Turner from comment #10)
> (In reply to Jan Hrabe from comment #9)
> > So I tried to install dev-libs/wayland which seemed like the closest match. 
> > This did not help.  
> 
> gdk-wayland-3.0 is provided by x11-libs/gtk+[wayland].

OK, thanks.  It's working now, with the following entries in the
/etc/portage/package.use/shotwell

# shotwell
media-libs/gst-plugins-bad         egl
x11-libs/gtk+                      wayland
media-libs/mesa                    wayland

Incidentally, this also solved the tor browser problem, which also refuses to start without checking for wayland.  So double thanks!
Comment 12 Larry the Git Cow gentoo-dev 2022-07-13 07:37:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89dbc7aa060fd1480f0160c87f74ca154b13b582

commit 89dbc7aa060fd1480f0160c87f74ca154b13b582
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-07-13 07:36:54 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-07-13 07:36:54 +0000

    media-gfx/shotwell: make wayland optional
    
    Bug: https://bugs.gentoo.org/836831
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../shotwell/files/0.30.16-optional-wayland.patch  | 59 ++++++++++++++++++++++
 media-gfx/shotwell/shotwell-0.30.16.ebuild         |  7 ++-
 2 files changed, 64 insertions(+), 2 deletions(-)
Comment 13 Pacho Ramos gentoo-dev 2023-11-24 12:33:01 UTC
is there anything left to do here?
Comment 14 Pacho Ramos gentoo-dev 2023-11-24 12:35:34 UTC
It is fixed in current versions as it uses libportal
https://gitlab.gnome.org/GNOME/shotwell/-/commit/32a25febf8a4d4c88d0047fc3b84f2db33cbc51c