From 7b77014711b249040c4cb1f4708edf4ffc2a57ce Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 26 Apr 2023 11:07:08 +0200 Subject: [PATCH] nwg-dock-hyprland: add recipe fix build: ERROR: nwg-dock-hyprland-0.0.2-r0 do_package: nwg-dock-hyprland: Multiple shlib providers for libstd.so: go-runtime, libstd-rs (used by files: /home/flk/poky/build-intel-retro/tmp/work/corei7-64-poky-linux/nwg-dock-hyprland/0.0.2-r0/packages-split/nwg-dock-hyprland/usr/bin/nwg-dock-hyprland) ERROR: nwg-dock-hyprland-0.0.2-r0 do_package_qa: QA Issue: /usr/bin/nwg-dock-hyprland contained in package nwg-dock-hyprland requires libstd.so()(64bit), but no providers found in RDEPENDS:nwg-dock-hyprland? [file-rdeps] ERROR: nwg-dock-hyprland-0.0.2-r0 do_package_qa: Fatal QA errors were found, failing task. ERROR: Logfile of failure stored in: /home/flk/poky/build-intel-retro/tmp/work/corei7-64-poky-linux/nwg-dock-hyprland/0.0.2-r0/temp/log.do_package_qa.399558 ERROR: Task (/home/flk/poky/meta-wayland/recipes-gtk/nwg-shell/nwg-dock-hyprland_git.bb:do_package_qa) failed with exit code '1' Although theoretically go-runtime should not be needed at runtime --- .../nwg-shell/nwg-dock-hyprland_git.bb | 30 +++++++++++++++++++ recipes-gtk/nwg-shell/nwg-dock_git.bb | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 recipes-gtk/nwg-shell/nwg-dock-hyprland_git.bb diff --git a/recipes-gtk/nwg-shell/nwg-dock-hyprland_git.bb b/recipes-gtk/nwg-shell/nwg-dock-hyprland_git.bb new file mode 100644 index 0000000..f7b3bcd --- /dev/null +++ b/recipes-gtk/nwg-shell/nwg-dock-hyprland_git.bb @@ -0,0 +1,30 @@ +SUMMARY = "GTK3-based dock for hyprland." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=fffa55ad1c828db5e334374fb1182530" + +DEPENDS = " \ + gtk+3 \ + gtk-layer-shell \ +" +RDEPENDS:${PN} = "go-runtime" + +GO_IMPORT = "github.com/nwg-piotr/nwg-dock-hyprland.git" + +SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https" + +PV = "0.0.2" +SRCREV = "57d30bea88062b54de539a9d36c4061e7b1bd88b" + +inherit go go-mod pkgconfig + +GO_INSTALL = "${GO_IMPORT}" + +do_install:append() { + # remove precompiled x86 binaries + rm -rf ${D}${libdir}/go/src/${GO_IMPORT}/bin + rm -rf ${D}${libdir}/go/pkg/mod/github.com/dlasky/gotk3-layershell*/example +} + +do_compile[network] = "1" + +PRIVATE_LIBS:${PN}:append = " libstd.so" diff --git a/recipes-gtk/nwg-shell/nwg-dock_git.bb b/recipes-gtk/nwg-shell/nwg-dock_git.bb index a4db6b3..65e9e92 100644 --- a/recipes-gtk/nwg-shell/nwg-dock_git.bb +++ b/recipes-gtk/nwg-shell/nwg-dock_git.bb @@ -6,6 +6,7 @@ DEPENDS = " \ gtk+3 \ gtk-layer-shell \ " +RDEPENDS:${PN} = "go-runtime" GO_IMPORT = "github.com/nwg-piotr/nwg-dock.git" @@ -26,3 +27,4 @@ do_install:append() { do_compile[network] = "1" +PRIVATE_LIBS:${PN}:append = " libstd.so"