Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937244 - gnome-base/gnome-settings-daemon-46.0 fails to compile: gsd-sharing-manager.c:23:10: fatal error: sd-login.h: No such file or directory
Summary: gnome-base/gnome-settings-daemon-46.0 fails to compile: gsd-sharing-manager.c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-08-03 16:39 UTC by Agostino Sarubbo
Modified: 2024-08-07 10:50 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,196.01 KB, text/plain)
2024-08-03 16:39 UTC, Agostino Sarubbo
Details
Fix-building-without-systemd (46.0-fix-building-without-systemd.patch,3.12 KB, patch)
2024-08-04 11:43 UTC, gjdijkman
Details | Diff
Correct patch for building without systemd (46.0-fix-building-without-systemd.patch,3.27 KB, patch)
2024-08-04 11:55 UTC, gjdijkman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-08-03 16:39:41 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: gnome-base/gnome-settings-daemon-46.0 fails to compile.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-08-03 16:39:41 UTC
CC'ing also the author of the commit (6eba61692333d11b62f85e60f55343cb5ac83a30)
Comment 2 Agostino Sarubbo gentoo-dev 2024-08-03 16:39:43 UTC
Created attachment 898894 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2024-08-03 16:39:43 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: plugins/sharing/gsd-sharing.p/gsd-sharing-manager.c.o 
../gnome-settings-daemon-46.0/plugins/sharing/gsd-sharing-manager.c:23:10: fatal error: systemd/sd-login.h: No such file or directory
Run-time dependency libsystemd found: NO (tried pkgconfig and cmake)
Run-time dependency systemd found: NO (tried pkgconfig and cmake)
../gnome-settings-daemon-46.0/plugins/sharing/gsd-sharing-manager.c:23:10: fatal error: systemd/sd-login.h: No such file or directory
Comment 4 gjdijkman 2024-08-04 11:39:51 UTC
Its solved with the following patch: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/360/diffs
Comment 5 gjdijkman 2024-08-04 11:43:22 UTC
Created attachment 898973 [details, diff]
Fix-building-without-systemd
Comment 6 gjdijkman 2024-08-04 11:54:38 UTC
(In reply to gjdijkman from comment #5)
> Created attachment 898973 [details, diff] [details, diff]
> Fix-building-without-systemd

Was a bit to early (sorry) We need this patch: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/348/diffs

Previous one was merged into this one, and with that it works.

src_onfigure now also needs: $(meson_use elogind)

Seems the patch will be merged into 46.1 but for me the provided patch worked: https://git.gjdwebserver.nl/gjdwebserver/gjdwebserver-overlay/src/branch/master/gnome-base/gnome-settings-daemon
Comment 7 gjdijkman 2024-08-04 11:55:25 UTC
Created attachment 898974 [details, diff]
Correct patch for building without systemd
Comment 8 Larry the Git Cow gentoo-dev 2024-08-07 10:50:11 UTC
The bug has been closed via the following commit(s):

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

commit d10ec547b9c45bf708142de86ff9c9c357f5e50d
Author:     Guillermo Joandet <gjoandet@gmail.com>
AuthorDate: 2024-08-04 22:37:03 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2024-08-07 10:48:40 +0000

    gnome-base/gnome-settings-daemon: Fix elogind support
    
    Closes: https://bugs.gentoo.org/937244
    Signed-off-by: Guillermo Joandet <gjoandet@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/37960
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 ...-settings-daemon-46.0-add-elogind-support.patch |  98 ++++++++++++++
 .../gnome-settings-daemon-46.0-r1.ebuild           | 143 +++++++++++++++++++++
 2 files changed, 241 insertions(+)