On Fri, Jan 10, 2025 at 11:40:55AM -0500, Claudio Miranda wrote:
> On Fri, Jan 10, 2025 at 8:32 AM Claudio Miranda <[email protected]> wrote:
> >
> > Hello,
> >
> > As of OpenBSD 7.6-current, Caja on MATE Desktop does not load the
> > desktop nor does it load when the Caja icon is selected.
> >
> > Checking .xsession-errors shows the following:
> > ld.so: caja: can't load library 'libgtk-layer-shell.so.1.0'
> >
> > Launching Caja from the terminal shows the following:
> > ld.so: caja: can't load library 'libgtk-layer-shell.so.1.0'
> > Killed
> >
> > Not sure if it's necessary to include a dmesg for this, but if
> > anything else is needed, please let me know and I'll provide it. I'm
> > running the latest version of Caja as well as of today (1.28.0p0).
> >
> > Thanks,
>
> An update on this...
>
> I decided to search online for "libgtk-layer-shell.so.1.0 openbsd" and
> I found this link on openports.pl.
> https://openports.pl/path/wayland/gtk-layer-shell
>
> From the description:
> "A library to write GTK applications that use Layer Shell. Layer Shell
> is a Wayland protocol for desktop shell components, such as panels,
> notifications and wallpapers. You can use it to anchor your windows to
> a corner or edge of the output, or stretch them across the entire output."
>
> Since I'm still on Xenocara and not on Wayland, Caja crashes when it
> can't find this library. This happens on two separate OpenBSD devices
> that I have which are running that snapshot and updated packages from
> this morning.
>
> Hope this helps.
2 solutions.
Either we enable wayland and we need to add a dependency on
wayland/gtk-layer-shell.
Or we disable wayland (--disable-wayland to CONFIGURE_ARGS, regen WANTLIB
and bump).
Here's a diff that adds a dependency on wayland/gtk-layer-shell.
robert@ what do you think?
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/mate/caja/Makefile,v
diff -u -p -r1.29 Makefile
--- Makefile 22 Apr 2024 07:44:21 -0000 1.29
+++ Makefile 11 Jan 2025 10:37:41 -0000
@@ -1,6 +1,6 @@
COMMENT= file manager for the MATE desktop
-REVISION= 0
+REVISION= 1
SHARED_LIBS += caja-extension 5.0 # 5.0
@@ -11,17 +11,17 @@ CATEGORIES= x11
# LGPLv2/GFDLv1.1/GPLv2
PERMIT_PACKAGE= Yes
-WANTLIB += ICE SM X11 X11-xcb Xcomposite Xcursor Xdamage Xext Xfixes Xi
-WANTLIB += Xinerama Xrandr Xrender atk-1.0 atk-bridge-2.0 c cairo
-WANTLIB += cairo-gobject dconf epoxy exempi exif expat ffi fontconfig
-WANTLIB += freetype fribidi gailutil-3 gdk-3 gdk_pixbuf-2.0 gio-2.0
-WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 graphite2 gthread-2.0 gtk-3
-WANTLIB += harfbuzz iconv intl lzma m mate-desktop-2 notify pango-1.0
-WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre2-8 pixman-1 png pthread
-WANTLIB += startup-notification-1 xcb xcb-render xcb-shm xcb-util xml2 z
-WANTLIB += ${COMPILER_LIBCXX} execinfo jpeg Xau Xdmcp
-WANTLIB += atspi dbus-1 epoll-shim wayland-client wayland-cursor
-WANTLIB += wayland-egl xkbcommon
+WANTLIB += ${COMPILER_LIBCXX} ICE SM X11 X11-xcb Xau Xcomposite
+WANTLIB += Xcursor Xdamage Xdmcp Xext Xfixes Xi Xinerama Xrandr
+WANTLIB += Xrender atk-1.0 atk-bridge-2.0 atspi c cairo cairo-gobject
+WANTLIB += dbus-1 dconf epoll-shim epoxy exempi exif expat ffi
+WANTLIB += fontconfig freetype fribidi gailutil-3 gdk-3 gdk_pixbuf-2.0
+WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 graphite2
+WANTLIB += gthread-2.0 gtk-3 gtk-layer-shell harfbuzz iconv intl
+WANTLIB += jpeg lzma m mate-desktop-2 notify pango-1.0 pangocairo-1.0
+WANTLIB += pangoft2-1.0 pcre2-8 pixman-1 png startup-notification-1
+WANTLIB += wayland-client wayland-cursor wayland-egl xcb xcb-render
+WANTLIB += xcb-shm xcb-util xkbcommon xml2 z
MODULES= devel/dconf \
x11/gnome
@@ -31,6 +31,7 @@ RUN_DEPENDS= x11/gnome/gvfs
LIB_DEPENDS= devel/libnotify \
graphics/libexif \
textproc/exempi \
+ wayland/gtk-layer-shell \
x11/mate/desktop
MODGNOME_TOOLS= shared-mime-info gobject-introspection \
--
Antoine