Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926045 - sys-auth/elogind fails to build because of meson
Summary: sys-auth/elogind fails to build because of meson
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-02 19:56 UTC by 0xfdfefafd
Modified: 2024-03-02 20:03 UTC (History)
1 user (show)

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


Attachments
error message (error.txt,2.07 KB, text/plain)
2024-03-02 19:56 UTC, 0xfdfefafd
Details
emerge --info (emerge_info.txt,8.81 KB, text/plain)
2024-03-02 19:56 UTC, 0xfdfefafd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 0xfdfefafd 2024-03-02 19:56:19 UTC
Created attachment 886549 [details]
error message

I couldn't update elogind, if failed on configure step with error message "Got argument buildtype as both -Dbuildtype and --buildtype. Pick one". See attached report.
I tried both stable elogind-246.10 and unstable 252.9, both returned same error.

It turned out -Dbuildtype is filled in the meson.eclass, and logic was recently changed (commit b95ea11330e446d0deb89ca7d78356cb2a7d0d06 of gentoo repo), to use not --buildtype, but -Dbuildtype. 

Attached you could find 'emerge --info' output as well as possible changes to fix build. 
I have little experience in writing or debugging ebuilds and eclasses, so my fix could be not of finest quality, sorry.
Comment 1 0xfdfefafd 2024-03-02 19:56:46 UTC
Created attachment 886550 [details]
emerge --info
Comment 2 0xfdfefafd 2024-03-02 20:01:37 UTC
while preparing diff for my patch I realized it was fixed in gentoo repo just an hour ago. 
bug is no more, can be closed.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-02 20:03:34 UTC
Thanks!