[packages/qemu] - disable xen-emu on x32, updated way to change CONFIG_USB_SMARTCARD option

qboosh qboosh at pld-linux.org
Mon May 6 19:31:36 CEST 2024


commit f5ef6d135b8f3012458284e0d1b783b8ebb5d13f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon May 6 19:10:59 2024 +0200

    - disable xen-emu on x32, updated way to change CONFIG_USB_SMARTCARD option

 qemu.spec | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/qemu.spec b/qemu.spec
index 80da095..6c75308 100644
--- 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qemu.git/commitdiff/f5ef6d135b8f3012458284e0d1b783b8ebb5d13f



More information about the pld-cvs-commit mailing list