qemu sysprefix

Elan Ruusamäe glen at pld-linux.org
Tue Sep 27 23:15:16 CEST 2016


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

➔ ls /usr/
aarch64-linux-gnu/  c6x-linux-gnu/     ia64-linux-gnu/ 
microblaze-linux-gnu/  score-elf/          x86_64-linux-gnu/
alpha-linux-gnu/    c6x-uclinux/       include/ mips64-linux-gnu/      
score-linux-gnu/    x86_64-linux-uclibc/
am33_2.0-linux/     cris-linux-gnu/    lib/ mn10300-linux-gnu/     
sh-linux-gnu/       x86_64-nacl/
arm-linux-gnu/      frv-linux-gnu/     lib64/ nios2-linux-gnu/       
sh64-linux/         x86_64-pc-mingw32/
arm-linux-gnueabi/  games/             libx32/ openrisc-linux-gnu/    
sh64-linux-gnu/     x86_64-w64-mingw32/
avr-linux/          h8300-elf/         local/ or1k-linux-gnu/        
share/              x86_64-w64-mingw64/
avr32-linux-gnu/    h8300-linux-gnu/   m32r-elf/ powerpc64-linux-gnu/   
sparc64-linux-gnu/  xtensa-linux-gnu/
bfin-linux-gnu/     hppa-linux-gnu/    m32r-linux-gnu/ 
ppc64-linux-gnu/       src/
bfin-uclinux/       hppa64-linux-gnu/  m68k-linux-gnu/ 
s390x-linux-gnu/       tile-linux-gnu/
bin/                i386-mingw32/      metag-linux-gnu/ 
sbin/                  tilegx-linux/

>
>> 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 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


-- 
glen



More information about the pld-devel-en mailing list