Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878913 - meson.eclass: our --localstatedir diverges from upstream
Summary: meson.eclass: our --localstatedir diverges from upstream
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-31 19:44 UTC by Joonas Niilola
Modified: 2023-06-10 23:49 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Niilola gentoo-dev 2022-10-31 19:44:44 UTC
Hey, 

filing this after our IRC discussion about the subject. Our meson.eclass sets:
  
  --localstatedir "${EPREFIX}/var/lib"

but upstream default sets it to /var. Upstream default path for sharedstatedir is /var/lib but we have not defined this at all. 

I believe our eclass is wrong, which gives us issues like bug #878603 and makes us fix the paths locally in ebuilds by defining --localstatedir. 

I feel like this should be fixed in the eclass, but points were raised that a fix now would perhaps break stuff more than fix stuff. I would suggest to get a tinderbox run with an updated eclass going for meson packages, but the linked bug was visible only in runtime. 

Opening this bug for awareness.
Comment 1 William Hubbs gentoo-dev 2022-11-02 22:42:06 UTC
I would be open to fixing this in the eclass, but it would definitely at
least require a tinderbox run and maybe testing after the fact.
Comment 2 Mike Gilbert gentoo-dev 2023-06-10 23:49:36 UTC
I think it would be safer to do this with an EAPI bump.

I also filed a PMS bug to see if we can fix the econf behavior this is modeled upon.