Files
chromebrew/packages/qemu.rb
Satadru Pramanik, DO, MPH, MEng 25604b1446 Qemu => 8.2.1, glib update, add libslirp, add py3_sphinx_rtd_theme (#9378)
* update of py3_pygments, glib, add libslirp

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* update packages and filelists

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* add binaries for glib, libslirp

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add py3_sphinx_rtd_theme

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* add more filelists

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* add qemu binaries

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* adjust py3_urllib3 version

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* adjust libslirp dep ordering

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2024-02-24 10:53:19 -06:00

101 lines
2.8 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
require 'package'
class Qemu < Package
description 'QEMU is a generic and open source machine emulator and virtualizer.'
homepage 'http://www.qemu.org/'
version '8.2.1'
license 'GPL-2'
compatibility 'x86_64 aarch64 armv7l'
min_glibc '2.35'
source_url 'https://github.com/qemu/qemu.git'
git_hashtag "v#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'aba64a65dffc4ae46ac5df5f0bae3fcc761dd6b9ddd04ffc6a749f02d8661300',
armv7l: 'aba64a65dffc4ae46ac5df5f0bae3fcc761dd6b9ddd04ffc6a749f02d8661300',
x86_64: 'b269c5e0ea7f3836bd9b9aa09cea7330432c7d615eeeb04195a6dcb0394cd838'
})
depends_on 'alsa_lib' # R
depends_on 'at_spi2_core' # R
depends_on 'bzip2' # R
depends_on 'cairo' # R
depends_on 'curl' # R
depends_on 'elfutils' # R
depends_on 'eudev' # R
depends_on 'fontconfig' # R
depends_on 'gcc_lib' # R
depends_on 'gdk_pixbuf' # R
depends_on 'glibc_lib' # R
depends_on 'glibc' # R
depends_on 'glib' # R
depends_on 'gnutls' # R
depends_on 'gtk3' # R
depends_on 'harfbuzz' # R
depends_on 'hicolor_icon_theme'
depends_on 'jack' # R
depends_on 'jemalloc'
depends_on 'libaio' # R
depends_on 'libcap_ng' # R
depends_on 'libcyrussasl' # R
depends_on 'libepoxy' # R
depends_on 'libgcrypt'
depends_on 'libjpeg' # R
depends_on 'libpng' # R
depends_on 'libsdl2' # R
depends_on 'libseccomp' # R
depends_on 'libslirp' # R
depends_on 'libssh' # R
depends_on 'libusb' # R
depends_on 'libx11' # R
depends_on 'libxkbcommon' # R
depends_on 'linux_pam' # R
depends_on 'lzo' # R
depends_on 'mesa' # R
depends_on 'ncurses' # R
depends_on 'pango' # R
depends_on 'pipewire' # R
depends_on 'pixman' # R
depends_on 'pulseaudio' # R
depends_on 'py3_sphinx_rtd_theme' => :build
depends_on 'sdl2_image' # R
depends_on 'snappy' # R
depends_on 'sphinx' => :build
depends_on 'vte' # R
depends_on 'zlibpkg' # R
depends_on 'zstd' # R
def self.patch
# Avoid linux/usbdevice_fs.h:88:9: error: unknown type name u8 error
FileUtils.mkdir_p 'linux'
FileUtils.cp "#{CREW_PREFIX}/include/linux/usbdevice_fs.h", 'linux/usbdevice_fs.h'
system "sed -i 's,^\\([[:blank:]]*\\)u8,\\1__u8,g' linux/usbdevice_fs.h"
system "sed -i 's,<linux/usbdevice_fs.h>,\"linux/usbdevice_fs.h\",g' hw/usb/host-libusb.c"
end
def self.build
FileUtils.mkdir_p 'build'
Dir.chdir 'build' do
system "mold -run ../configure #{CREW_OPTIONS.sub(/--target.*/, '')} \
--enable-lto"
@counter = 1
@counter_max = 20
loop do
break if Kernel.system "make -j #{CREW_NPROC}"
puts "Make iteration #{@counter} of #{@counter_max}...".orange
@counter += 1
break if @counter > @counter_max
end
end
end
def self.install
Dir.chdir 'build' do
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
end