Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843647 - sys-auth/polkit: rebase musl patch for meson
Summary: sys-auth/polkit: rebase musl patch for meson
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-11 04:55 UTC by genBTC
Modified: 2022-05-11 05:26 UTC (History)
0 users

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


Attachments
build.log with USE=test - fatal error config.h file not found (polkit,121.24 KB, text/plain)
2022-05-11 04:58 UTC, genBTC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description genBTC 2022-05-11 04:55:27 UTC
"config.h" file not found during Polkit build script when USE="test" tests are enabled.
I am the second of two people to reproduce this. It should be straightforward to reproduce.
I am on a fully updated amd64 system

Reproducible: Always
Comment 1 genBTC 2022-05-11 04:58:46 UTC
Created attachment 777989 [details]
build.log with USE=test - fatal error config.h file not found

I use a bashrc script that prints meson-configure and meson-options, but that is irrelevant.
I also used "-Wno-deprecated-declarations" because there was a lot of spam from that, making it difficult to read. Tried the normal way, doesnt affect the behavior.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-11 05:00:33 UTC
Note that the test USE flag is never used to control _running_ tests anyway, but FEATURES=test is (which toggles the flag). And tests in this ebuild are restricted for exactly this reason, so FEATURES=test won't turn it on.

So, the only people who are affected by this are people setting USE=test manually (which you shouldn't do, and it's pointless), right?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-11 05:08:22 UTC
(In reply to Sam James from comment #2)
> Note that the test USE flag is never used to control _running_ tests anyway,
> but FEATURES=test is (which toggles the flag). And tests in this ebuild are
> restricted for exactly this reason, so FEATURES=test won't turn it on.
> 
> So, the only people who are affected by this are people setting USE=test
> manually (which you shouldn't do, and it's pointless), right?

To expand a bit, I think there's two issues:
1. The musl patch needs adjusting to just handle meson and not add a config.h include (file won't exist anymore);
2. Upstream don't produce proper dist tarballs with the needed deps for tests.

I think we can fix 1 when using snapshots, so let's do that, but combine it with a newer snapshot to make life easier.
Comment 4 Larry the Git Cow gentoo-dev 2022-05-11 05:26:17 UTC
The bug has been closed via the following commit(s):

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

commit 99b60e69496c865e2b8103804b45ecf92c02fb94
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-11 05:21:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-11 05:26:11 +0000

    sys-auth/polkit: add 0.120_p20220509 (unkeyworded)
    
    Unkeyworded for now until tomorrow probably. (Nothing major changed
    but it's late/early and I don't want to take a risk and then go to bed.)
    
    (In terms of the snapshot, the only notable things are that upstream
    dropped autotools, but we were using meson for a little while now anyway,
    and a bunch of the patches we were including to a previous snapshot
    are now rolled into this one.)
    
    I'd not bothered looking much into the test situation given the bug
    flagged in the ebuild (the dist tarballs don't contain the test
    dependencies needed and they don't use meson subprojects so we
    can't provide them ourselves either)
    
    ... but a bug (with a dodgy premise -- because you shouldn't be
    setting USE=test manually anyway; RESTRICT="test" is currently in ebuild anyhow)
    exposed the fact that if you _do_ try to run tests right now, they end up
    failing because of our musl patch which still includes config.h even though
    we're doing a meson build.
    
    So, a double win:
    1. Tests are now wired up and run for snapshots at least! Yay!
    2. Our musl patch is now cleaner and ready for another attempt
    at upstream submission.
    
    Closes: https://bugs.gentoo.org/843647
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-auth/polkit/Manifest                           |   1 +
 ..._p20220509-make-netgroup-support-optional.patch | 231 +++++++++++++++++++++
 sys-auth/polkit/polkit-0.120_p20220509.ebuild      | 146 +++++++++++++
 3 files changed, 378 insertions(+)