hope not tied to SystemD
hope not tied to SystemD
Posted Aug 18, 2025 3:41 UTC (Mon) by NYKevin (subscriber, #129325)In reply to: hope not tied to SystemD by bluca
Parent article: Finding a successor to the FHS
To be clear, this is not "optional" or ancillary information. It is the only way to discover the path to one of the specified directories.
Posted Aug 18, 2025 8:50 UTC (Mon)
by bluca (subscriber, #118303)
[Link] (6 responses)
Posted Aug 18, 2025 9:26 UTC (Mon)
by rschroev (subscriber, #4164)
[Link]
"Instead of constructing the arch-id and $libdir manually, you can query $libdir for the primary architecture of the system by invoking systemd-path system-library-arch on systems that support it". Or something similar.
The way it is written now, very much gives the impression that invoking systemd-path system-library-arch is the one and only way.
Posted Aug 18, 2025 17:27 UTC (Mon)
by NYKevin (subscriber, #129325)
[Link] (4 responses)
Posted Aug 18, 2025 17:41 UTC (Mon)
by bluca (subscriber, #118303)
[Link] (3 responses)
I assure you that out of ~60000 packages building right now in Debian, and however many are in Ubuntu, exactly _zero_ use systemd-path to query the library directory at build time. A significant fraction of those _will_ need to explicitly know what the exact path is, and they won't use that tool for it.
It's just a utility provided for convenience, it is not part of any specification.
Posted Aug 21, 2025 7:06 UTC (Thu)
by NYKevin (subscriber, #129325)
[Link] (1 responses)
Good, then you should have no objection to rewording that sentence in a way that clarifies it is non-normative.
I'm glad we're in agreement on that much, at least.
Posted Aug 21, 2025 10:15 UTC (Thu)
by bluca (subscriber, #118303)
[Link]
Posted Aug 21, 2025 10:14 UTC (Thu)
by bluca (subscriber, #118303)
[Link]
This is not a hyperbole btw, I really mean it.
Number of packages calling systemd-path in debian/rules to find per-arch libdir: zero out of 30000
https://codesearch.debian.net/search?q=path%3Adebian%2Fru...
Number of packages using at least one other mean (a specific makefile include file that defines a specific makefile var, none of which are related to systemd): ~5000 out of ~30000
https://codesearch.debian.net/search?q=path%3Adebian%2Fru...
hope not tied to SystemD
hope not tied to SystemD
hope not tied to SystemD
hope not tied to SystemD
hope not tied to SystemD
hope not tied to SystemD
hope not tied to SystemD
