From patchwork Sun Jan 31 17:36:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 3844 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4DTJD06vfNz3wy6 for ; Sun, 31 Jan 2021 17:36:48 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4DTJCz4tVpz195; Sun, 31 Jan 2021 17:36:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4DTJCz37bFz2xy4; Sun, 31 Jan 2021 17:36:47 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4DTJCy1mzYz2xKj for ; Sun, 31 Jan 2021 17:36:46 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4DTJCx39JdzYC; Sun, 31 Jan 2021 17:36:45 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1612114605; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=bi1RhklDjDFcdxTJsir2bHAELgI7Jvl0hbU0Qnx6jJA=; b=nVR+dks/seTCb2LbWIaC1jJ6wyB0QBdtgK74BeJaKfdilVnvcgKHrKYGgFZwr5VqCWjnSh CJji1N+lWEDgyNDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1612114605; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=bi1RhklDjDFcdxTJsir2bHAELgI7Jvl0hbU0Qnx6jJA=; b=lOVFl98OMY1oIsbfW+BtYMdv+D4gHs1qfEHUPjn3FatZT1Wa1jjOsDrvbpwARxVN01gZ9f uwpCvu3Y0ktWHsXWzqGGBtA06QcD9ntocvf5uvscALWAWSFTWX3ME7p2T4XA2XrwI4CiZ6 f2YSMd4iPbcfz/uYmUvC8vJmmEz8i8Ef0yWxHQ9lmxCTicCu2JTp5742ifzhQggoU6SV+l 2ml1ES3EShBLAfeuJCEB5hYqXSUeJWXuBTwrL8b5AR3hNr+7W3MAWamyhtPBO2zduJeVtI 721r1uLP7mEOyVoIRR0iRJEFWBvNMtCFc+nHQErUMZEelnRZ2LjMLxkSSA5kIQ== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] qemu: Update to 5.2.0 Date: Sun, 31 Jan 2021 18:36:43 +0100 Message-Id: <20210131173643.3726186-1-adolf.belka@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - Update qemu from 5.0.0 to 5.2.0 - Changelogs for 5.1.0 and 5.2.0 available at https://wiki.qemu.org/ChangeLog/ - rootfile updated - patch no longer needed as fix built into source. patch was not utilised for 5.0.0 version. Patch line was commented out in previous lfs Signed-off-by: Adolf Belka Reviewed-by: Peter Müller --- config/rootfiles/packages/qemu | 16 ++--- lfs/qemu | 9 +-- .../qemu-4.1.0-build-fix-glibc-2.31.patch | 65 ------------------- 3 files changed, 9 insertions(+), 81 deletions(-) delete mode 100644 src/patches/qemu-4.1.0-build-fix-glibc-2.31.patch diff --git a/config/rootfiles/packages/qemu b/config/rootfiles/packages/qemu index 21ae286e8..ee4b9f736 100644 --- a/config/rootfiles/packages/qemu +++ b/config/rootfiles/packages/qemu @@ -1,7 +1,5 @@ lib/udev/rules.d/65-kvm.rules usr/bin/elf2dmp -usr/bin/ivshmem-client -usr/bin/ivshmem-server usr/bin/qemu usr/bin/qemu-arm usr/bin/qemu-edid @@ -19,8 +17,6 @@ usr/bin/qemu-x86_64 usr/libexec/qemu-bridge-helper usr/libexec/virtiofsd #usr/share/applications/qemu.desktop -#usr/share/icons -#usr/share/icons/hicolor #usr/share/icons/hicolor/128x128 #usr/share/icons/hicolor/128x128/apps #usr/share/icons/hicolor/128x128/apps/qemu.png @@ -46,8 +42,6 @@ usr/libexec/virtiofsd #usr/share/icons/hicolor/64x64 #usr/share/icons/hicolor/64x64/apps #usr/share/icons/hicolor/64x64/apps/qemu.png -#usr/share/icons/hicolor/scalable -#usr/share/icons/hicolor/scalable/apps #usr/share/icons/hicolor/scalable/apps/qemu.svg #usr/share/qemu #usr/share/qemu/QEMU,cgthree.bin @@ -121,13 +115,14 @@ usr/share/qemu/kvmvapic.bin usr/share/qemu/linuxboot.bin usr/share/qemu/linuxboot_dma.bin usr/share/qemu/multiboot.bin +usr/share/qemu/npcm7xx_bootrom.bin #usr/share/qemu/openbios-ppc #usr/share/qemu/openbios-sparc32 #usr/share/qemu/openbios-sparc64 -#usr/share/qemu/opensbi-riscv32-sifive_u-fw_jump.bin -#usr/share/qemu/opensbi-riscv32-virt-fw_jump.bin -#usr/share/qemu/opensbi-riscv64-sifive_u-fw_jump.bin -#usr/share/qemu/opensbi-riscv64-virt-fw_jump.bin +#usr/share/qemu/opensbi-riscv32-generic-fw_dynamic.bin +#usr/share/qemu/opensbi-riscv32-generic-fw_dynamic.elf +#usr/share/qemu/opensbi-riscv64-generic-fw_dynamic.bin +#usr/share/qemu/opensbi-riscv64-generic-fw_dynamic.elf #usr/share/qemu/palcode-clipper #usr/share/qemu/petalogix-ml605.dtb #usr/share/qemu/petalogix-s3adsp1800.dtb @@ -138,6 +133,7 @@ usr/share/qemu/pxe-ne2k_pci.rom usr/share/qemu/pxe-pcnet.rom usr/share/qemu/pxe-rtl8139.rom usr/share/qemu/pxe-virtio.rom +usr/share/qemu/qboot.rom usr/share/qemu/qemu-nsis.bmp usr/share/qemu/qemu_vga.ndrv #usr/share/qemu/s390-ccw.img diff --git a/lfs/qemu b/lfs/qemu index edd7a78a9..2ab1bf8c0 100644 --- a/lfs/qemu +++ b/lfs/qemu @@ -24,7 +24,7 @@ include Config -VER = 5.0.0 +VER = 5.2.0 THISAPP = qemu-$(VER) DL_FILE = $(THISAPP).tar.xz @@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) SUP_ARCH = i586 x86_64 PROG = qemu -PAK_VER = 28 +PAK_VER = 29 DEPS = libusbredir spice libseccomp @@ -45,7 +45,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = ede6005d7143fe994dd089d31dc2cf6c +$(DL_FILE)_MD5 = 179f86928835da857c237b42f4b2df73 install : $(TARGET) @@ -78,9 +78,6 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) - -# cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/qemu-4.1.0-build-fix-glibc-2.31.patch - cd $(DIR_APP) && ./configure \ --prefix=/usr \ --sysconfdir=/etc \ diff --git a/src/patches/qemu-4.1.0-build-fix-glibc-2.31.patch b/src/patches/qemu-4.1.0-build-fix-glibc-2.31.patch deleted file mode 100644 index 37c744d3b..000000000 --- a/src/patches/qemu-4.1.0-build-fix-glibc-2.31.patch +++ /dev/null @@ -1,65 +0,0 @@ -From 0f1f2d4596aee037d3ccbcf10592466daa54107f Mon Sep 17 00:00:00 2001 -From: Laurent Vivier -Date: Tue, 12 Nov 2019 15:25:56 +0100 -Subject: [PATCH] linux-user: remove host stime() syscall - -stime() has been withdrawn from glibc -(12cbde1dae6f "Use clock_settime to implement stime; withdraw stime.") - -Implement the target stime() syscall using host -clock_settime(CLOCK_REALTIME, ...) as it is done internally in glibc. - -Tested qemu-ppc/x86_64 with: - - #include - #include - - int main(void) - { - time_t t; - int ret; - - /* date -u -d"2019-11-12T15:11:00" "+%s" */ - t = 1573571460; - ret = stime(&t); - printf("ret %d\n", ret); - return 0; - } - - # date; ./stime; date - Tue Nov 12 14:18:32 UTC 2019 - ret 0 - Tue Nov 12 15:11:00 UTC 2019 - -Buglink: https://bugs.launchpad.net/qemu/+bug/1852115 -Reported-by: Cole Robinson -Signed-off-by: Laurent Vivier -Reviewed-by: Peter Maydell -Message-Id: <20191112142556.6335-1-laurent@vivier.eu> ---- - linux-user/syscall.c | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) - -diff --git a/linux-user/syscall.c b/linux-user/syscall.c -index 4e97bcf..ce399a5 100644 ---- a/linux-user/syscall.c -+++ b/linux-user/syscall.c -@@ -7764,10 +7764,12 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, - #ifdef TARGET_NR_stime /* not on alpha */ - case TARGET_NR_stime: - { -- time_t host_time; -- if (get_user_sal(host_time, arg1)) -+ struct timespec ts; -+ ts.tv_nsec = 0; -+ if (get_user_sal(ts.tv_sec, arg1)) { - return -TARGET_EFAULT; -- return get_errno(stime(&host_time)); -+ } -+ return get_errno(clock_settime(CLOCK_REALTIME, &ts)); - } - #endif - #ifdef TARGET_NR_alarm /* not on alpha */ --- -1.8.3.1 -