Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939673 - sys-auth/elogind-255.5 fails to build with xen
Summary: sys-auth/elogind-255.5 fails to build with xen
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas Sturmlechner
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 943566
  Show dependency tree
 
Reported: 2024-09-15 00:49 UTC by Pat Erley
Modified: 2025-01-13 11:26 UTC (History)
3 users (show)

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


Attachments
Build Failure Log (build.log,409.05 KB, text/x-log)
2024-09-15 00:51 UTC, Pat Erley
Details
Fix elogind build with xen (fix-reboot-util.patch,610 bytes, patch)
2024-09-15 00:51 UTC, Pat Erley
Details | Diff
emerge info (emerge-info.log,8.08 KB, text/x-log)
2024-09-15 22:37 UTC, Pat Erley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pat Erley 2024-09-15 00:49:59 UTC
The bug is only partially due to elogind, and is fixed with the attached patch.  xen.h uses uint64_t and other stdint types without including stdint.h.  

All fixes were achieved through uncommenting include lines in reboot-util.c
Comment 1 Pat Erley 2024-09-15 00:51:36 UTC
Created attachment 902998 [details]
Build Failure Log
Comment 2 Pat Erley 2024-09-15 00:51:49 UTC
Created attachment 902999 [details, diff]
Fix elogind build with xen
Comment 3 Mike Gilbert gentoo-dev 2024-09-15 18:12:19 UTC
Please provide emerge --info.
Comment 4 Pat Erley 2024-09-15 22:37:16 UTC
Created attachment 903095 [details]
emerge info
Comment 5 Hank Leininger 2024-11-07 16:11:52 UTC
FWIW ran into the same thing here; the attached patch allowed elogind to build.
Comment 6 Andreas Sturmlechner gentoo-dev 2024-11-14 19:03:02 UTC
This should really be reported @upstream.

Commit that commented out these headers:
https://github.com/elogind/elogind/commit/e1827812fc8f5b9a1aab6ed9bc056df0a2c74c48
Comment 7 Larry the Git Cow gentoo-dev 2024-11-14 19:51:44 UTC
The bug has been closed via the following commit(s):

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

commit 265054dc933b168d0ac4c71961ea1d0b1170f5f1
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-11-14 19:38:49 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-11-14 19:47:46 +0000

    sys-auth/elogind: Revert s2idle default, build w/ xen
    
    Switch RemoveIPC default to "no".
    
    Bug: https://bugs.gentoo.org/939042
    Closes: https://bugs.gentoo.org/939673
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 sys-auth/elogind/elogind-255.5-r1.ebuild           | 179 +++++++++++++++++++++
 .../elogind-255.5-no-fchmod_and_chown-tty.patch    |  29 ++++
 .../elogind-255.5-part-revert-header-cleanup.patch |  41 +++++
 .../files/elogind-255.5-revert-s2idle.patch        | 138 ++++++++++++++++
 4 files changed, 387 insertions(+)
Comment 8 Sven Eden 2025-01-13 11:26:55 UTC
(In reply to Andreas Sturmlechner from comment #6)
> This should really be reported @upstream.
> 
> Commit that commented out these headers:
> https://github.com/elogind/elogind/commit/
> e1827812fc8f5b9a1aab6ed9bc056df0a2c74c48

It wasn't, but I found the patch in the tree and have commented back in the includes.