automatic version update by autodist [release 9.0.0-1mamba;Thu Apr 25 2024]
This commit is contained in:
parent
8d62139037
commit
f43f6b9b99
115
qemu-initscript
115
qemu-initscript
@ -1,115 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Init file for configuring Qemu non-native binary formats
|
||||
#
|
||||
# Written by Dag Wieers <dag@wieers.com>
|
||||
#
|
||||
# chkconfig: 2345 35 98
|
||||
# description: Qemu non-native binary formats
|
||||
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
RETVAL=0
|
||||
prog="qemu"
|
||||
|
||||
start() {
|
||||
cpu="$(uname -m)"
|
||||
case "$cpu" in
|
||||
i386|i486|i586|i686|i86pc|BePC)
|
||||
cpu="i386";;
|
||||
"Power Macintosh"|ppc|ppc64)
|
||||
cpu="ppc";;
|
||||
armv4l|armv5l)
|
||||
cpu="arm";;
|
||||
esac
|
||||
echo -n $"Registering non-native binary handler for Qemu"
|
||||
( /sbin/modprobe binfmt_misc &&
|
||||
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc ) &>/dev/null
|
||||
if [ "$cpu" != "i386" -a "$cpu" != "x86_64" ]; then
|
||||
echo ':i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-i386:' >/proc/sys/fs/binfmt_misc/register
|
||||
echo ':i486:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x06\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-i386:' >/proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
if [ "$cpu" != "x86_64" ]; then
|
||||
echo ':x86_64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-x86_64:' >/proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
if [ "$cpu" != "arm" ]; then
|
||||
echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm:' >/proc/sys/fs/binfmt_misc/register
|
||||
echo ':armeb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb:' > /proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
if [ "$cpu" != "ppc" ]; then
|
||||
echo ':ppc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-ppc:' >/proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
if [ "$cpu" != "sparc" ]; then
|
||||
echo ':sparc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:$QEMU/qemu-sparc:' >/proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
if [ $cpu != "m68k" ] ; then
|
||||
# echo 'Please check cpu value and header information for m68k!'
|
||||
echo ':m68k:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x04:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-m68k:' > /proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
if [ $cpu != "mips" ] ; then
|
||||
# FIXME: We could use the other endianness on a MIPS host.
|
||||
echo ':mips:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips:' > /proc/sys/fs/binfmt_misc/register
|
||||
echo ':mipsel:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mipsel:' > /proc/sys/fs/binfmt_misc/register
|
||||
echo ':mipsn32:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mipsn32:' > /proc/sys/fs/binfmt_misc/register
|
||||
echo ':mipsn32el:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mipsn32el:' > /proc/sys/fs/binfmt_misc/register
|
||||
echo ':mips64:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips64:' > /proc/sys/fs/binfmt_misc/register
|
||||
echo ':mips64el:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mips64el:' > /proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
echo_success
|
||||
echo
|
||||
}
|
||||
|
||||
stop() {
|
||||
echo -n $"Unregistering non-native binary handler for Qemu"
|
||||
for cpu in i386 i486 x86_64 ppc arm armeb sparc m68k mips mipsel mipsn32 mipsn32el mips64 mips64el; do
|
||||
if [ -r "/proc/sys/fs/binfmt_misc/qemu-$cpu" ]; then
|
||||
echo "-1" >/proc/sys/fs/binfmt_misc/qemu-$cpu
|
||||
fi
|
||||
if [ -r "/proc/sys/fs/binfmt_misc/$cpu" ]; then
|
||||
echo "-1" >/proc/sys/fs/binfmt_misc/$cpu
|
||||
fi
|
||||
done
|
||||
echo_success
|
||||
echo
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
status() {
|
||||
if ls /proc/sys/fs/binfmt_misc/qemu-* &>/dev/null; then
|
||||
echo $"Qemu non-native binary format handlers registered."
|
||||
return 0
|
||||
else
|
||||
echo $"Qemu non-native binary format handlers not registered."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
condrestart)
|
||||
if status &>/dev/null; then
|
||||
restart
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
status
|
||||
RETVAL=$?
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $prog {start|stop|restart|condrestart|status}"
|
||||
RETVAL=1
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
17
qemu.spec
17
qemu.spec
@ -1,6 +1,6 @@
|
||||
Name: qemu
|
||||
Version: 8.2.2
|
||||
Release: 2mamba
|
||||
Version: 9.0.0
|
||||
Release: 1mamba
|
||||
Summary: A generic and open source processor emulator
|
||||
Group: Applications/Emulators
|
||||
Vendor: openmamba
|
||||
@ -8,8 +8,6 @@ Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://www.qemu.org/
|
||||
Source: https://download.qemu.org/qemu-%{version}.tar.xz
|
||||
#Source: http://wiki.qemu.org/download/qemu-%{version}.tar.bz2
|
||||
Source1: %{name}-initscript
|
||||
Source2: qemu-guest-agent.service
|
||||
Source3: 99-qemu-guest-agent.rules
|
||||
Source4: qemu-ga-sysconfig
|
||||
@ -23,7 +21,6 @@ Patch5: qemu-1.4.1-texinfo-5.patch
|
||||
Patch6: qemu-1.7.0-virtfs-ftbfs.patch
|
||||
Patch7: qemu-5.2.0-STATX_MNT_ID-missing-workaround.patch
|
||||
License: GPL, LGPL
|
||||
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libSDL2-devel
|
||||
@ -199,17 +196,12 @@ cd build-dynamic
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall -C build-dynamic
|
||||
|
||||
#install -D -m 755 %{S:1} \
|
||||
# %{buildroot}%{_prefix}/lib/systemd/scripts/%{name}-binfmt
|
||||
#install -D -m 0644 %{S:5} \
|
||||
# %{buildroot}%{_unitdir}/qemu.service
|
||||
|
||||
install -d -m0755 %{buildroot}%{_binfmtdir}
|
||||
scripts/qemu-binfmt-conf.sh --exportdir %{buildroot}%{_binfmtdir}/ \
|
||||
--systemd ALL --qemu-path %{_bindir}
|
||||
|
||||
cd build-static
|
||||
find *-linux-user -name qemu-\* | while read f; do
|
||||
find -maxdepth 1 -name qemu-\* -type f | while read f; do
|
||||
cp -L ${f} %{buildroot}%{_bindir}/`basename $f`.static
|
||||
|
||||
## (obsolete?) disable stripping static binaries by installing without -x
|
||||
@ -299,6 +291,9 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
||||
%attr(0755,root,root) %{_bindir}/%{name}*.static
|
||||
|
||||
%changelog
|
||||
* Thu Apr 25 2024 Automatic Build System <autodist@openmamba.org> 9.0.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Mar 21 2024 Automatic Build System <autodist@mambasoft.it> 8.2.2-2mamba
|
||||
- rebuilt by autoport with build requirements: libxen-devel>=4.18.0-1mamba
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user