Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917678 - [guru] gui-libs/xdg-desktop-portal-hyprland-1.2.2 fails to compile, missing dependency
Summary: [guru] gui-libs/xdg-desktop-portal-hyprland-1.2.2 fails to compile, missing d...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: GURU project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-11-21 17:16 UTC by sozuba
Modified: 2024-01-30 23:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_917678.txt,4.84 KB, text/plain)
2023-11-21 17:16 UTC, sozuba
Details
emerge--info (file_917678.txt,6.81 KB, text/plain)
2023-11-21 17:38 UTC, sozuba
Details
The ebuild environment file (build-env,94.28 KB, text/plain)
2023-11-21 17:41 UTC, sozuba
Details
meson-log.txt (meson-log.txt,31.54 KB, text/plain)
2023-11-22 14:24 UTC, Remigiusz Micielski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sozuba 2023-11-21 17:16:31 UTC
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".
Comment 1 sozuba 2023-11-21 17:35:42 UTC
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.
Comment 2 sozuba 2023-11-21 17:38:17 UTC
Created attachment 875279 [details]
emerge--info

emerge --info '=gui-libs/xdg-desktop-portal-hyprland-1.2.2::guru'
Comment 3 sozuba 2023-11-21 17:41:01 UTC
Created attachment 875280 [details]
The ebuild environment file
Comment 4 Remigiusz Micielski 2023-11-22 14:05:23 UTC
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.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-22 14:15:49 UTC
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.
Comment 6 Remigiusz Micielski 2023-11-22 14:24:13 UTC
Created attachment 875330 [details]
meson-log.txt
Comment 7 Remigiusz Micielski 2023-11-22 14:27:48 UTC
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?
Comment 8 Remigiusz Micielski 2023-11-22 17:38:53 UTC
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.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-22 17:45:50 UTC
(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?
Comment 10 Remigiusz Micielski 2023-11-22 18:04:59 UTC
(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.
Comment 11 Larry the Git Cow gentoo-dev 2023-11-24 17:20:37 UTC
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(-)
Comment 12 Larry the Git Cow gentoo-dev 2024-01-30 23:22:10 UTC
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(+)