]> git.pld-linux.org Git - packages/qemu.git/commitdiff
- disable xen-emu on x32, updated way to change CONFIG_USB_SMARTCARD option auto/th/qemu-8.0.5-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 6 May 2024 17:10:59 +0000 (19:10 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 6 May 2024 17:10:59 +0000 (19:10 +0200)
qemu.spec

index 80da095623cfc873bdc6ebf948b49a5f698a9377..6c753088281f1f98b0b953848e7ca0fe0c22ce30 100644 (file)
--- a/qemu.spec
+++ b/qemu.spec
@@ -1032,6 +1032,14 @@ Pliki nagłówkowe biblioteki vfio-user.
 %{__sed} -i -e "s/stap.found()/true/" meson.build docs/meson.build scripts/meson.build
 %endif
 
+%if %{without smartcard}
+%{__sed} -i -e '/^config USB_SMARTCARD/,/^$/ s/default y/default n/' hw/usb/Kconfig
+%endif
+%ifarch x32
+# xen-emu supports only LP64 __x86_64__ case
+%{__sed} -i -e '/^config XEN_EMU/,$ s/default y/default n/' hw/i386/Kconfig
+%endif
+
 %build
 
 build() {
@@ -1057,8 +1065,7 @@ build() {
        "$@"
 
        %{__make} \
-               V=1 \
-               %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
+               V=1
 
        cd ..
 }
@@ -1145,7 +1152,6 @@ install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
 
 %if %{with user_static}
 %{__make} -C build-static install \
-       %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
        DESTDIR=$RPM_BUILD_ROOT
 
 # Give all QEMU user emulators a -static suffix
@@ -1156,7 +1162,6 @@ done
 %endif
 
 %{__make} -C build-dynamic install \
-       %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
        DESTDIR=$RPM_BUILD_ROOT
 
 # let rpm generate dependencies
This page took 0.278455 seconds and 4 git commands to generate.