qemu sysprefix
Jakub Bogusz
qboosh at pld-linux.org
Thu Oct 6 22:11:41 CEST 2016
On Wed, Sep 28, 2016 at 12:15:16AM +0300, Elan Ruusamäe wrote:
> On 27.09.2016 23:20, Jakub Bogusz wrote:
> >On Tue, Sep 27, 2016 at 11:05:38PM +0300, Elan Ruusamäe wrote:
> >>anything against changing
> >>
> >> --interp-prefix=%{_libdir}/qemu/lib-%%M
> >>to:
> >> --interp-prefix=%{_prefix}/qemu-%%M
> >What is _prefix in qemu?
> >If /usr, then /usr/qemu-* is not FHS compliant.
> yes, /usr
>
> i thought FHS allowed /usr/<system-name> paths for such purpose
Creating additional hierarchies under /usr is not covered by FHS
(except for X11R6 in the past)...
cross* packages and uClibc are packaged in such way due to some inertia
(dietlibc and klibc use more appropriate scheme).
IMO they should use /usr/%{_lib}/triplet or /usr/lib/triplet (if host
dependent files are not expected).
> >>reason:
> >>
> >>qemu-user(-static) would expect target system libraries from there.
> >>qemu-user(-static) does not require qemu-common, in which current
> >>%{_libdir}/qemu is contained in.
> >Is %{_libdir}/qemu dir ownership the only reason?
> 1. dir ownership
> 2. inconsistent path (it's different on all th arches due %{_libdir} prefix)
>
> btw, upstream default is:
>
> ??? ./configure --help|grep %M
> use %M for cpu name [/usr/gnemul/qemu-%M]
If no host dependent files are expected there, we could use
/usr/lib/qemu-%M or /usr/lib/gnemul/qemu-%M (what "gnemul" stands for?)
> >If so, you can even add it to every qemu-user* package.
>
> /usr/lib/binfmt.d also bothers, but that can be moved to filesystem.spec
/usr/lib/binfmt.d seems to belong to systemd-units already...
--
Jakub Bogusz http://qboosh.pl/
More information about the pld-devel-en
mailing list