Created attachment 875278 [details] build.log gui-libs/xdg-desktop-portal-hyprland-1.2.2 fails to compile due to missing dependency: sdbus-c++. Build.log attached. Output of emerge -pqv '=gui-libs/xdg-desktop-portal-hyprland-1.2.2': [ebuild N ] gui-libs/xdg-desktop-portal-hyprland-1.2.2 USE="elogind -systemd".
Searched for packages with name 'sdbus-c++' Found two: emerge --search sdbus-c++ [ Results for search key : sdbus-c++ ] Searching... * dev-cpp/sdbus-c++ Latest version available: 1.4.0 Latest version installed: 1.4.0 Size of files: 220 KiB Homepage: https://github.com/Kistler-Group/sdbus-cpp Description: High-level C++ D-Bus library License: LGPL-2.1+ Nokia-Qt-LGPL-Exception-1.1 * dev-libs/dbus-c++ Latest version available: 0.9.0-r5 Latest version installed: [ Not Installed ] Size of files: 456 KiB Homepage: https://sourceforge.net/projects/dbus-cplusplus/ Description: Provides a C++ API for D-BUS License: LGPL-2.1+ [ Applications found : 2 ] dev-cpp/sdbus-c++ was already installed, so installed dev-libs/dbus-c++ and again tried installing gui-libs/xdg-desktop-portal-hyprland-1.2.2. The installation failed with the same error: src/meson.build:10:4: ERROR: Dependency "sdbus-c++" not found, tried pkgconfig.
Created attachment 875279 [details] emerge--info emerge --info '=gui-libs/xdg-desktop-portal-hyprland-1.2.2::guru'
Created attachment 875280 [details] The ebuild environment file
Thank you so much for reporting this!, thought that there was something wrong with my system. It compiles for me with CMake completely fine, as opposed to with meson that is used in this ebuild. I guess I will have to change the ebuild to use CMake then.
Please share /var/tmp/portage/gui-libs/xdg-desktop-portal-hyprland-1.2.2/work/xdg-desktop-portal-hyprland-1.2.2-build/meson-logs/meson-log.txt.
Created attachment 875330 [details] meson-log.txt
I'm not a C/C++ dev but "pkg-config --libs sdbus-c++" gives: Package elogind was not found in the pkg-config search path. Perhaps you should add the directory containing `elogind.pc' to the PKG_CONFIG_PATH environment variable Package 'elogind', required by 'sdbus-c++', not found May it be related?
Pushed ebuild for 1.2.5 to dev branch that uses CMake, should be fine now (only tested by me!). Though clang 17.0.5 throws some errors that seem to be related strictly to the code, but GCC 13.2.1 seems to be okay (throws only warnings in place of clang's errors). I guess that's an upstream issue? The picker and portal seem to be working fine anyway.
(In reply to Remigiusz Micielski from comment #7) > I'm not a C/C++ dev but "pkg-config --libs sdbus-c++" gives: > Package elogind was not found in the pkg-config search path. > Perhaps you should add the directory containing `elogind.pc' > to the PKG_CONFIG_PATH environment variable > Package 'elogind', required by 'sdbus-c++', not found > > May it be related? Huh, that's curious. Was elogind installed?
(In reply to Sam James from comment #9) > (In reply to Remigiusz Micielski from comment #7) > > I'm not a C/C++ dev but "pkg-config --libs sdbus-c++" gives: > > Package elogind was not found in the pkg-config search path. > > Perhaps you should add the directory containing `elogind.pc' > > to the PKG_CONFIG_PATH environment variable > > Package 'elogind', required by 'sdbus-c++', not found > > > > May it be related? > > Huh, that's curious. Was elogind installed? Yup. Reinstalled it a couple of times, but according to "find / -name elogind.pc 2>/dev/null" and to the output of emerge, =sys-auth/elogind-246.10-r3 nor =sys-auth/elogind-252.9 doesn't provide this file.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2a191d353a1e0999ddfebdaebba7f4538b6a1be6 commit 2a191d353a1e0999ddfebdaebba7f4538b6a1be6 Author: Remigiusz Micielski <rmicielski@purelymail.com> AuthorDate: 2023-11-22 17:20:24 +0000 Commit: Remigiusz Micielski <rmicielski@purelymail.com> CommitDate: 2023-11-22 17:27:12 +0000 gui-libs/xdg-desktop-portal-hyprland: add 1.2.5 Closes: https://bugs.gentoo.org/917678 Signed-off-by: Remigiusz Micielski <rmicielski@purelymail.com> ...p-portal-hyprland-1.2.5_use_sys_sdbus-c++.patch | 35 +++++++++ .../xdg-desktop-portal-hyprland-1.2.5.ebuild | 84 ++++++++++++++++++++++ 2 files changed, 119 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=89f04be2a6bf5f4afad340fb68afd5015b0e745a commit 89f04be2a6bf5f4afad340fb68afd5015b0e745a Author: Remigiusz Micielski <rmicielski@purelymail.com> AuthorDate: 2023-11-22 18:24:30 +0000 Commit: Remigiusz Micielski <rmicielski@purelymail.com> CommitDate: 2023-11-22 18:24:36 +0000 gui-libs/xdg-desktop-portal-hyprland: fix 1.2.2 Change from meson to cmake Bug: https://bugs.gentoo.org/917678 Signed-off-by: Remigiusz Micielski <rmicielski@purelymail.com> gui-libs/xdg-desktop-portal-hyprland/Manifest | 1 + .../xdg-desktop-portal-hyprland-1.2.2.ebuild | 42 ++++++++++++++-------- 2 files changed, 28 insertions(+), 15 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af4fdba984fe0b5fe9384fed31fcf87a40f7e539 commit af4fdba984fe0b5fe9384fed31fcf87a40f7e539 Author: Alfred Wingate <parona@protonmail.com> AuthorDate: 2024-01-19 12:43:40 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2024-01-30 23:20:52 +0000 dev-cpp/sdbus-c++: fix pkgconfig file Closes: https://bugs.gentoo.org/922490 Bug: https://bugs.gentoo.org/917678 Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/34898 Signed-off-by: James Le Cuirot <chewi@gentoo.org> .../files/sdbus-c++-1.4.0-fix-pkgconfig.patch | 94 ++++++++++++++++++++++ ...-c++-1.4.0.ebuild => sdbus-c++-1.4.0-r1.ebuild} | 1 + 2 files changed, 95 insertions(+)