From 8b3336860b1b8f9403ff7b7cb30eb0fc846f3b61 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mar 20 2018 09:48:55 +0000 Subject: Build with Python 3 --- diff --git a/python3.patch b/python3.patch new file mode 100644 index 0000000..b87b9bb --- /dev/null +++ b/python3.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -22,7 +22,7 @@ + OBJCOPY=$(CROSS_PREFIX)objcopy + OBJDUMP=$(CROSS_PREFIX)objdump + STRIP=$(CROSS_PREFIX)strip +-PYTHON=python ++PYTHON=python3 + CPP=cpp + IASL:=iasl + LD32BIT_FLAG:=-melf_i386 diff --git a/seabios.spec b/seabios.spec index 44185bd..bfcac35 100644 --- a/seabios.spec +++ b/seabios.spec @@ -12,6 +12,7 @@ License: LGPLv3 URL: http://www.coreboot.org/SeaBIOS Source0: http://code.coreboot.org/p/seabios/downloads/get/%{name}-%{version}.tar.gz +Patch0001: python3.patch Patch0004: 0004-Workaround-for-a-win8.1-32-S4-resume-bug.patch Patch0005: 0005-reserve-more-memory-on-fseg.patch Patch0006: 0006-vgabios-Reorder-video-modes-to-work-around-a-Windows.patch @@ -27,7 +28,7 @@ Source17: config.seabios-128k Source18: config.seabios-256k Source19: config.vga.virtio -BuildRequires: python iasl +BuildRequires: python3 iasl %if 0%{?cross:1} BuildRequires: binutils-x86_64-linux-gnu gcc-x86_64-linux-gnu Buildarch: noarch @@ -96,6 +97,7 @@ build_bios() { make V=1 \ EXTRAVERSION="-%{release}" \ + PYTHON=python3 \ %if 0%{?cross:1} HOSTCC=gcc \ CC=x86_64-linux-gnu-gcc \ @@ -152,6 +154,9 @@ install -m 0644 binaries/vgabios*.bin $RPM_BUILD_ROOT%{_datadir}/seavgabios %changelog +* Mon Mar 19 2018 Paolo Bonzini - 1.11.0-2 +- Build with Python 3 + * Fri Feb 09 2018 Fedora Release Engineering - 1.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild