Compare commits
18 Commits
3.1.0-1mam
...
8.0.3-1mam
Author | SHA1 | Date | |
---|---|---|---|
9b1ed6657c | |||
6537b67461 | |||
54f9c5be5b | |||
2f32f466e4 | |||
f71c40bb37 | |||
5d03ee98e3 | |||
81368757ec | |||
54aac64d4b | |||
bff8a5de22 | |||
e043bb1aab | |||
c55ad672dc | |||
21b22385e0 | |||
3b98c8470f | |||
89884dbc13 | |||
0db3cf4300 | |||
269bd7b347 | |||
0f67a37710 | |||
4008da7de3 |
11
qemu-5.2.0-STATX_MNT_ID-missing-workaround.patch
Normal file
11
qemu-5.2.0-STATX_MNT_ID-missing-workaround.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- qemu-5.2.0/tools/virtiofsd/passthrough_ll.c.orig 2021-05-03 22:19:36.266659588 +0200
|
||||
+++ qemu-5.2.0/tools/virtiofsd/passthrough_ll.c 2021-05-03 22:25:22.351624454 +0200
|
||||
@@ -793,7 +793,7 @@
|
||||
{
|
||||
int res;
|
||||
|
||||
-#if defined(CONFIG_STATX) && defined(STATX_MNT_ID)
|
||||
+#if 0 && defined(CONFIG_STATX) && defined(STATX_MNT_ID)
|
||||
if (lo->use_statx) {
|
||||
struct statx statxbuf;
|
||||
|
249
qemu.spec
249
qemu.spec
@ -1,13 +1,14 @@
|
||||
Name: qemu
|
||||
Version: 3.1.0
|
||||
Version: 8.0.3
|
||||
Release: 1mamba
|
||||
Summary: A generic and open source processor emulator
|
||||
Group: Applications/Emulators
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://qemu.org
|
||||
Source: http://wiki.qemu.org/download/qemu-%{version}.tar.bz2
|
||||
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
|
||||
@ -20,66 +21,71 @@ Patch3: %{name}-0.8.0-gcc4_ppc.patch
|
||||
Patch4: %{name}-0.8.0-ldscript_ppc.patch
|
||||
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
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libaio-devel
|
||||
BuildRequires: libalsa-devel
|
||||
BuildRequires: libatk-devel
|
||||
BuildRequires: libbluetooth-devel
|
||||
BuildRequires: libbrltty-devel
|
||||
BuildRequires: libbzip2-devel
|
||||
BuildRequires: libcacard-devel
|
||||
BuildRequires: libcairo-devel
|
||||
BuildRequires: libcap-devel
|
||||
BuildRequires: libcap-ng-devel
|
||||
BuildRequires: libcares-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libfontconfig-devel
|
||||
BuildRequires: libfreetype-devel
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: libepoxy-devel
|
||||
BuildRequires: libfuse3-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libgdk-pixbuf-devel
|
||||
BuildRequires: libGL-devel
|
||||
BuildRequires: libglib-devel
|
||||
BuildRequires: libgnutls-devel
|
||||
BuildRequires: libgpg-error-devel
|
||||
BuildRequires: libgss-devel
|
||||
BuildRequires: libgtk2-devel
|
||||
BuildRequires: libidn-devel
|
||||
BuildRequires: libgtk3-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libncurses-devel
|
||||
BuildRequires: libnspr-devel
|
||||
BuildRequires: libnss-devel
|
||||
BuildRequires: libopenldap-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libpango-devel
|
||||
BuildRequires: liblzo-devel
|
||||
BuildRequires: libmesa-devel
|
||||
BuildRequires: libmultipath-tools-devel
|
||||
BuildRequires: libndctl-devel
|
||||
BuildRequires: libnettle-devel
|
||||
BuildRequires: libnfs-devel
|
||||
BuildRequires: libnuma-devel
|
||||
BuildRequires: libpam-devel
|
||||
BuildRequires: libpixman-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: librtmp-devel
|
||||
BuildRequires: libsasl-devel
|
||||
%if "%{stage1}" != "1"
|
||||
BuildRequires: libSDL-devel
|
||||
%endif
|
||||
BuildRequires: libssh2-devel
|
||||
BuildRequires: libusbx-devel
|
||||
BuildRequires: libuuid-devel
|
||||
BuildRequires: libvte0-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libpulseaudio-devel
|
||||
BuildRequires: libsasl2-devel
|
||||
BuildRequires: libsdl2_image-devel
|
||||
BuildRequires: libseccomp-devel
|
||||
BuildRequires: libsnappy-devel
|
||||
BuildRequires: libspice-devel
|
||||
BuildRequires: libssh-devel
|
||||
BuildRequires: libstdc++6-devel
|
||||
BuildRequires: libudev-devel
|
||||
BuildRequires: libusb-devel
|
||||
BuildRequires: libusbredir-devel
|
||||
BuildRequires: libvte-devel
|
||||
%ifarch x86_64 %{ix86}
|
||||
BuildRequires: libxen-devel
|
||||
BuildRequires: libXext-devel
|
||||
%endif
|
||||
BuildRequires: libxkbcommon-devel
|
||||
BuildRequires: libz-devel
|
||||
BuildRequires: libzstd-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: libxen-devel >= 4.8.0-1mamba
|
||||
BuildRequires: python-sphinx_rtd_theme-py310
|
||||
BuildRequires: python-sphinxcontrib-jquery-py310
|
||||
BuildRequires: libmultipath-tools-devel >= 0.9.1
|
||||
BuildRequires: libadplug-devel >= 1.5.1
|
||||
BuildRequires: libglib-static >= 2.34.1-2mamba
|
||||
BuildRequires: libspice-devel
|
||||
BuildRequires: spice-protocol-devel
|
||||
BuildRequires: libusbredir-devel
|
||||
BuildRequires: libcelt051-devel
|
||||
BuildRequires: libnfs-devel
|
||||
#BuildRequires: libcelt051-devel
|
||||
BuildRequires: libopenssl-static
|
||||
BuildRequires: libbrltty-devel >= 6.1
|
||||
#% if "%{_build_cpu}" != "ppc"
|
||||
#BuildRequires: gcc34
|
||||
#% endif
|
||||
Conflicts: kvm
|
||||
%systemd_requires
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation.
|
||||
@ -120,25 +126,22 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation.
|
||||
This package contains static user mode emulators. In this mode, QEMU can launch Linux processes compiled for one CPU on another CPU.
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#-D -T
|
||||
#:<< ___EOF
|
||||
#%if "%{_build_cpu}" == "ppc"
|
||||
#%patch0 -p1
|
||||
#%patch1
|
||||
#%patch2
|
||||
#%patch3
|
||||
#%patch4 -p1
|
||||
#%endif
|
||||
#%patch5 -p1
|
||||
#%patch6 -p1
|
||||
#%patch7 -p1
|
||||
|
||||
%build
|
||||
#:<< ___EOF
|
||||
# static build for usermode emulation targets only
|
||||
# used by cross platform installation tools like makedist
|
||||
./configure \
|
||||
mkdir -p build-static
|
||||
cd build-static
|
||||
|
||||
../configure \
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--prefix=%{_prefix} \
|
||||
--cc=%{_build}-gcc \
|
||||
@ -147,28 +150,30 @@ This package contains static user mode emulators. In this mode, QEMU can launch
|
||||
--static \
|
||||
--disable-sdl \
|
||||
--disable-curl \
|
||||
--disable-bluez \
|
||||
--disable-system \
|
||||
--disable-strip \
|
||||
--disable-libssh2 \
|
||||
--disable-libnfs \
|
||||
--disable-libxml2 \
|
||||
--disable-gnutls \
|
||||
--enable-linux-user
|
||||
|
||||
# --disable-libxml2 \
|
||||
# --disable-bluez \
|
||||
# --disable-libssh2 \
|
||||
# --disable-smartcard-nss \
|
||||
# --disable-usb-redir \
|
||||
# --disable-vde \
|
||||
|
||||
#LIBSSH_LIBS="-lssh -lcrypto -ldl -lgss"
|
||||
%make
|
||||
mkdir static
|
||||
find *-linux-user -name qemu-\* -exec mv {} static/ \;
|
||||
|
||||
make clean
|
||||
cd ..
|
||||
#___EOF
|
||||
|
||||
mkdir -p build-dynamic
|
||||
cd build-dynamic
|
||||
|
||||
# dynamic build
|
||||
./configure \
|
||||
../configure \
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--prefix=%{_prefix} \
|
||||
--libdir=%{_libdir} \
|
||||
@ -176,21 +181,16 @@ make clean
|
||||
--cc=%{_build}-gcc \
|
||||
--host-cc=%{_host}-gcc \
|
||||
--cpu=%{_host_cpu} \
|
||||
%if "%{_build_cpu}" == "ppc"
|
||||
--disable-gcc-check \
|
||||
#% else
|
||||
# --cc=%{_target_platform}-gcc34 \
|
||||
%endif
|
||||
--audio-drv-list="alsa pa" \
|
||||
--audio-drv-list="alsa,pa" \
|
||||
--enable-spice \
|
||||
--enable-usb-redir \
|
||||
--enable-guest-agent
|
||||
|
||||
%make
|
||||
|
||||
%make LDFLAGS_NOPIE=""
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall
|
||||
%makeinstall -C build-dynamic
|
||||
|
||||
#install -D -m 755 %{S:1} \
|
||||
# %{buildroot}%{_prefix}/lib/systemd/scripts/%{name}-binfmt
|
||||
@ -201,10 +201,12 @@ install -d -m0755 %{buildroot}%{_binfmtdir}
|
||||
scripts/qemu-binfmt-conf.sh --exportdir %{buildroot}%{_binfmtdir}/ \
|
||||
--systemd ALL --qemu-path %{_bindir}
|
||||
|
||||
cd static
|
||||
for f in *; do
|
||||
# disable stripping static binaries by installing without -x
|
||||
install -m644 $f %{buildroot}%{_bindir}/$f.static
|
||||
cd build-static
|
||||
find *-linux-user -name qemu-\* | while read f; do
|
||||
cp -L ${f} %{buildroot}%{_bindir}/`basename $f`.static
|
||||
|
||||
## (obsolete?) disable stripping static binaries by installing without -x
|
||||
#install -m755 $f %{buildroot}%{_bindir}/$f.static
|
||||
done
|
||||
cd ..
|
||||
|
||||
@ -215,14 +217,18 @@ install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/qemu-guest-agent.service
|
||||
install -D -m0644 %{SOURCE3} %{buildroot}%{_udevrulesdir}/99-qemu-guest-agent.rules
|
||||
install -D -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/qemu-ga
|
||||
|
||||
# FIXME: prevent brp_strip from failing
|
||||
rm -f %{buildroot}%{_datadir}/qemu/hppa-firmware.img
|
||||
rm -f %{buildroot}%{_datadir}/qemu/palcode-clipper
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%post
|
||||
%binfmt_apply
|
||||
:
|
||||
#%post
|
||||
#% binfmt_apply
|
||||
#:
|
||||
|
||||
%post guest-agent
|
||||
%systemd_post qemu-guest-agent.service
|
||||
@ -252,24 +258,31 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/%{name}*
|
||||
%{_bindir}/elf2dmp
|
||||
%exclude %{_bindir}/qemu-ga
|
||||
%{_bindir}/ivshmem-client
|
||||
%{_bindir}/ivshmem-server
|
||||
#%{_bindir}/vscclient
|
||||
#%{_bindir}/ivshmem-client
|
||||
#%{_bindir}/ivshmem-server
|
||||
%exclude %{_bindir}/%{name}*.static
|
||||
%{_bindir}/virtfs-proxy-helper
|
||||
#%{_unitdir}/qemu.service
|
||||
#%{_prefix}/lib/systemd/scripts/%{name}-binfmt
|
||||
%{_datadir}/applications/qemu.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/qemu.png
|
||||
%{_datadir}/icons/hicolor/*/apps/qemu.bmp
|
||||
%{_datadir}/icons/hicolor/scalable/apps/qemu.svg
|
||||
%{_libexecdir}/qemu-bridge-helper
|
||||
#%{_libexecdir}/qemu-pr-helper
|
||||
%{_libexecdir}/virtfs-proxy-helper
|
||||
#%{_libexecdir}/virtiofsd
|
||||
%{_datadir}/%{name}
|
||||
%{_binfmtdir}/*.conf
|
||||
%{_prefix}
|
||||
%{_includedir}/qemu-plugin.h
|
||||
%{_docdir}/%{name}
|
||||
%{_mandir}/man1/%{name}*
|
||||
#%{_datadir}/qemu/hppa-firmware.img
|
||||
#%{_datadir}/qemu/palcode-clipper
|
||||
%{_mandir}/man1/qemu*.1*
|
||||
%{_mandir}/man1/virtfs-proxy-helper.1*
|
||||
%{_mandir}/man7/%{name}-qmp-ref.7*
|
||||
%{_mandir}/man7/%{name}-block-drivers.7*
|
||||
%{_mandir}/man8/%{name}-nbd.8*
|
||||
#%{_mandir}/man1/virtiofsd.1*
|
||||
%exclude %{_mandir}/man7/qemu-ga-ref.7*
|
||||
%{_mandir}/man7/qemu-*.7*
|
||||
%{_mandir}/man8/qemu-*.8*
|
||||
%doc COPYING COPYING.LIB
|
||||
|
||||
%files guest-agent
|
||||
@ -282,30 +295,68 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
||||
%{_bindir}/%{name}-ga
|
||||
%{_unitdir}/qemu-guest-agent.service
|
||||
%{_udevrulesdir}/99-qemu-guest-agent.rules
|
||||
%{_mandir}/man7/%{name}-ga-ref.7*
|
||||
%{_mandir}/man7/qemu-ga-ref.7*
|
||||
%{_mandir}/man8/qemu-ga.8*
|
||||
|
||||
#% ifnarch x86_64
|
||||
#%files -n libcacard
|
||||
#%defattr(-,root,root)
|
||||
#%{_libdir}/libcacard.so.*
|
||||
|
||||
#%files -n libcacard-devel
|
||||
#%defattr(-,root,root)
|
||||
#%dir %{_includedir}/cacard
|
||||
#%{_includedir}/cacard/*.h
|
||||
#%{_libdir}/libcacard.a
|
||||
#%{_libdir}/libcacard.la
|
||||
#%{_libdir}/libcacard.so
|
||||
#%{_libdir}/pkgconfig/libcacard.pc
|
||||
#%doc LICENSE README
|
||||
##% endif
|
||||
|
||||
%files static
|
||||
%defattr(-,root,root)
|
||||
%attr(0755,root,root) %{_bindir}/%{name}*.static
|
||||
|
||||
%changelog
|
||||
* Tue Jul 11 2023 Automatic Build System <autodist@mambasoft.it> 8.0.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Jun 01 2023 Automatic Build System <autodist@mambasoft.it> 8.0.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Apr 21 2023 Automatic Build System <autodist@mambasoft.it> 8.0.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Apr 12 2023 Automatic Build System <autodist@mambasoft.it> 7.2.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Dec 23 2022 Automatic Build System <autodist@mambasoft.it> 7.2.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Sep 01 2022 Automatic Build System <autodist@mambasoft.it> 7.1.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun May 22 2022 Automatic Build System <autodist@mambasoft.it> 7.0.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Jan 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 6.2.0-2mamba
|
||||
- rebuilt with libmultipath-tools 0.8.8
|
||||
|
||||
* Sat Jan 01 2022 Automatic Build System <autodist@mambasoft.it> 6.2.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Sep 05 2021 Automatic Build System <autodist@mambasoft.it> 6.1.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue May 04 2021 Automatic Build System <autodist@mambasoft.it> 6.0.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon May 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.0-1mamba
|
||||
- update to 5.2.0
|
||||
|
||||
* Fri Oct 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.0-2mamba
|
||||
- rebuilt with libbrltty 6.1
|
||||
|
||||
* Thu Aug 13 2020 Automatic Build System <autodist@mambasoft.it> 5.1.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon May 04 2020 Automatic Build System <autodist@mambasoft.it> 5.0.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Mar 04 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0-2mamba
|
||||
- rebuilt with debug package
|
||||
|
||||
* Tue Jan 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0-1mamba
|
||||
- update to 4.2.0
|
||||
|
||||
* Wed Apr 24 2019 Automatic Build System <autodist@mambasoft.it> 4.0.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Feb 11 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.0-1mamba
|
||||
- update to 3.1.0
|
||||
|
||||
|
Reference in New Issue
Block a user