From 6208366b0f39290e112b5893cbcada04c6497f0b Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Thu, 31 Aug 2017 21:35:27 -0700 Subject: [PATCH] qemu 2.10.0 Closes #17467. Signed-off-by: ilovezfs --- Formula/qemu.rb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Formula/qemu.rb b/Formula/qemu.rb index 16a54af167..29fccf26e8 100644 --- a/Formula/qemu.rb +++ b/Formula/qemu.rb @@ -1,10 +1,20 @@ +# Fix extraction on case-insensitive file systems. +# Reported 4 Sep 2017 https://bugs.launchpad.net/qemu/+bug/1714750 +# This is actually an issue with u-boot and may take some time to sort out. +class QemuDownloadStrategy < CurlDownloadStrategy + def stage + exclude = "#{name}-#{version}/roms/u-boot/scripts/Kconfig" + safe_system "tar", "xjf", cached_location, "--exclude", exclude + chdir + end +end + class Qemu < Formula desc "x86 and PowerPC Emulator" homepage "https://www.qemu.org/" - url "https://download.qemu.org/qemu-2.9.0.tar.bz2" - sha256 "00bfb217b1bb03c7a6c3261b819cfccbfb5a58e3e2ceff546327d271773c6c14" - revision 2 - + url "https://download.qemu.org/qemu-2.10.0.tar.bz2", + :using => QemuDownloadStrategy + sha256 "7e9f39e1306e6dcc595494e91c1464d4b03f55ddd2053183e0e1b69f7f776d48" head "https://git.qemu.org/git/qemu.git" bottle do