diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-05-24 12:22:12 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-05-24 12:22:12 +0800 |
| commit | 46ca440e9d6cc606d9c3233021e32d24b25172cf (patch) | |
| tree | eeb573e47ac56498fbf74bda6d22fac47038ecab /repos/extra/qemu | |
| parent | 8c2e7bb570c11a51fdcecf7302af4058757d862c (diff) | |
| download | alicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.tar.gz alicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.zip | |
added repos
Diffstat (limited to 'repos/extra/qemu')
| -rw-r--r-- | repos/extra/qemu/.files | 168 | ||||
| -rw-r--r-- | repos/extra/qemu/depends | 5 | ||||
| -rw-r--r-- | repos/extra/qemu/info | 7 | ||||
| -rw-r--r-- | repos/extra/qemu/lfs64.patch | 204 | ||||
| -rwxr-xr-x | repos/extra/qemu/postinstall | 2 |
5 files changed, 386 insertions, 0 deletions
diff --git a/repos/extra/qemu/.files b/repos/extra/qemu/.files new file mode 100644 index 00000000..67b72b22 --- /dev/null +++ b/repos/extra/qemu/.files @@ -0,0 +1,168 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/elf2dmp +-rwxr-xr-x root/root usr/bin/qemu-edid +-rwxr-xr-x root/root usr/bin/qemu-ga +-rwxr-xr-x root/root usr/bin/qemu-img +-rwxr-xr-x root/root usr/bin/qemu-io +-rwxr-xr-x root/root usr/bin/qemu-keymap +-rwxr-xr-x root/root usr/bin/qemu-nbd +-rwxr-xr-x root/root usr/bin/qemu-pr-helper +-rwxr-xr-x root/root usr/bin/qemu-storage-daemon +-rwxr-xr-x root/root usr/bin/qemu-system-x86_64 +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/fdt.h +-rw-r--r-- root/root usr/include/libfdt.h +-rw-r--r-- root/root usr/include/libfdt_env.h +-rw-r--r-- root/root usr/include/qemu-plugin.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/libfdt.pc +drwxr-xr-x root/root usr/libexec/ +-rwxr-xr-x root/root usr/libexec/qemu-bridge-helper +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/applications/ +-rw-r--r-- root/root usr/share/applications/qemu.desktop +drwxr-xr-x root/root usr/share/icons/ +drwxr-xr-x root/root usr/share/icons/hicolor/ +drwxr-xr-x root/root usr/share/icons/hicolor/128x128/ +drwxr-xr-x root/root usr/share/icons/hicolor/128x128/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/128x128/apps/qemu.png +drwxr-xr-x root/root usr/share/icons/hicolor/16x16/ +drwxr-xr-x root/root usr/share/icons/hicolor/16x16/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/16x16/apps/qemu.png +drwxr-xr-x root/root usr/share/icons/hicolor/24x24/ +drwxr-xr-x root/root usr/share/icons/hicolor/24x24/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/24x24/apps/qemu.png +drwxr-xr-x root/root usr/share/icons/hicolor/256x256/ +drwxr-xr-x root/root usr/share/icons/hicolor/256x256/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/256x256/apps/qemu.png +drwxr-xr-x root/root usr/share/icons/hicolor/32x32/ +drwxr-xr-x root/root usr/share/icons/hicolor/32x32/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/32x32/apps/qemu.bmp +-rw-r--r-- root/root usr/share/icons/hicolor/32x32/apps/qemu.png +drwxr-xr-x root/root usr/share/icons/hicolor/48x48/ +drwxr-xr-x root/root usr/share/icons/hicolor/48x48/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/48x48/apps/qemu.png +drwxr-xr-x root/root usr/share/icons/hicolor/512x512/ +drwxr-xr-x root/root usr/share/icons/hicolor/512x512/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/512x512/apps/qemu.png +drwxr-xr-x root/root usr/share/icons/hicolor/64x64/ +drwxr-xr-x root/root usr/share/icons/hicolor/64x64/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/64x64/apps/qemu.png +drwxr-xr-x root/root usr/share/icons/hicolor/scalable/ +drwxr-xr-x root/root usr/share/icons/hicolor/scalable/apps/ +-rw-r--r-- root/root usr/share/icons/hicolor/scalable/apps/qemu.svg +drwxr-xr-x root/root usr/share/qemu/ +-rw-r--r-- root/root usr/share/qemu/QEMU,cgthree.bin +-rw-r--r-- root/root usr/share/qemu/QEMU,tcx.bin +-rw-r--r-- root/root usr/share/qemu/bamboo.dtb +-rw-r--r-- root/root usr/share/qemu/bios-256k.bin +-rw-r--r-- root/root usr/share/qemu/bios-microvm.bin +-rw-r--r-- root/root usr/share/qemu/bios.bin +-rw-r--r-- root/root usr/share/qemu/canyonlands.dtb +-rw-r--r-- root/root usr/share/qemu/edk2-aarch64-code.fd +-rw-r--r-- root/root usr/share/qemu/edk2-arm-code.fd +-rw-r--r-- root/root usr/share/qemu/edk2-arm-vars.fd +-rw-r--r-- root/root usr/share/qemu/edk2-i386-code.fd +-rw-r--r-- root/root usr/share/qemu/edk2-i386-secure-code.fd +-rw-r--r-- root/root usr/share/qemu/edk2-i386-vars.fd +-rw-r--r-- root/root usr/share/qemu/edk2-licenses.txt +-rw-r--r-- root/root usr/share/qemu/edk2-x86_64-code.fd +-rw-r--r-- root/root usr/share/qemu/edk2-x86_64-secure-code.fd +-rw-r--r-- root/root usr/share/qemu/efi-e1000.rom +-rw-r--r-- root/root usr/share/qemu/efi-e1000e.rom +-rw-r--r-- root/root usr/share/qemu/efi-eepro100.rom +-rw-r--r-- root/root usr/share/qemu/efi-ne2k_pci.rom +-rw-r--r-- root/root usr/share/qemu/efi-pcnet.rom +-rw-r--r-- root/root usr/share/qemu/efi-rtl8139.rom +-rw-r--r-- root/root usr/share/qemu/efi-virtio.rom +-rw-r--r-- root/root usr/share/qemu/efi-vmxnet3.rom +drwxr-xr-x root/root usr/share/qemu/firmware/ +-rw-r--r-- root/root usr/share/qemu/firmware/50-edk2-i386-secure.json +-rw-r--r-- root/root usr/share/qemu/firmware/50-edk2-x86_64-secure.json +-rw-r--r-- root/root usr/share/qemu/firmware/60-edk2-aarch64.json +-rw-r--r-- root/root usr/share/qemu/firmware/60-edk2-arm.json +-rw-r--r-- root/root usr/share/qemu/firmware/60-edk2-i386.json +-rw-r--r-- root/root usr/share/qemu/firmware/60-edk2-x86_64.json +-rwxr-xr-x root/root usr/share/qemu/hppa-firmware.img +-rwxr-xr-x root/root usr/share/qemu/hppa-firmware64.img +drwxr-xr-x root/root usr/share/qemu/keymaps/ +-rw-r--r-- root/root usr/share/qemu/keymaps/ar +-rw-r--r-- root/root usr/share/qemu/keymaps/bepo +-rw-r--r-- root/root usr/share/qemu/keymaps/cz +-rw-r--r-- root/root usr/share/qemu/keymaps/da +-rw-r--r-- root/root usr/share/qemu/keymaps/de +-rw-r--r-- root/root usr/share/qemu/keymaps/de-ch +-rw-r--r-- root/root usr/share/qemu/keymaps/en-gb +-rw-r--r-- root/root usr/share/qemu/keymaps/en-us +-rw-r--r-- root/root usr/share/qemu/keymaps/es +-rw-r--r-- root/root usr/share/qemu/keymaps/et +-rw-r--r-- root/root usr/share/qemu/keymaps/fi +-rw-r--r-- root/root usr/share/qemu/keymaps/fo +-rw-r--r-- root/root usr/share/qemu/keymaps/fr +-rw-r--r-- root/root usr/share/qemu/keymaps/fr-be +-rw-r--r-- root/root usr/share/qemu/keymaps/fr-ca +-rw-r--r-- root/root usr/share/qemu/keymaps/fr-ch +-rw-r--r-- root/root usr/share/qemu/keymaps/hr +-rw-r--r-- root/root usr/share/qemu/keymaps/hu +-rw-r--r-- root/root usr/share/qemu/keymaps/is +-rw-r--r-- root/root usr/share/qemu/keymaps/it +-rw-r--r-- root/root usr/share/qemu/keymaps/ja +-rw-r--r-- root/root usr/share/qemu/keymaps/lt +-rw-r--r-- root/root usr/share/qemu/keymaps/lv +-rw-r--r-- root/root usr/share/qemu/keymaps/mk +-rw-r--r-- root/root usr/share/qemu/keymaps/nl +-rw-r--r-- root/root usr/share/qemu/keymaps/no +-rw-r--r-- root/root usr/share/qemu/keymaps/pl +-rw-r--r-- root/root usr/share/qemu/keymaps/pt +-rw-r--r-- root/root usr/share/qemu/keymaps/pt-br +-rw-r--r-- root/root usr/share/qemu/keymaps/ru +-rw-r--r-- root/root usr/share/qemu/keymaps/sl +-rw-r--r-- root/root usr/share/qemu/keymaps/sv +-rw-r--r-- root/root usr/share/qemu/keymaps/th +-rw-r--r-- root/root usr/share/qemu/keymaps/tr +-rw-r--r-- root/root usr/share/qemu/kvmvapic.bin +-rw-r--r-- root/root usr/share/qemu/linuxboot.bin +-rw-r--r-- root/root usr/share/qemu/linuxboot_dma.bin +-rw-r--r-- root/root usr/share/qemu/multiboot.bin +-rw-r--r-- root/root usr/share/qemu/multiboot_dma.bin +-rw-r--r-- root/root usr/share/qemu/npcm7xx_bootrom.bin +-rw-r--r-- root/root usr/share/qemu/openbios-ppc +-rw-r--r-- root/root usr/share/qemu/openbios-sparc32 +-rw-r--r-- root/root usr/share/qemu/openbios-sparc64 +-rw-r--r-- root/root usr/share/qemu/opensbi-riscv32-generic-fw_dynamic.bin +-rw-r--r-- root/root usr/share/qemu/opensbi-riscv64-generic-fw_dynamic.bin +-rw-r--r-- root/root usr/share/qemu/palcode-clipper +-rw-r--r-- root/root usr/share/qemu/petalogix-ml605.dtb +-rw-r--r-- root/root usr/share/qemu/petalogix-s3adsp1800.dtb +-rw-r--r-- root/root usr/share/qemu/pvh.bin +-rw-r--r-- root/root usr/share/qemu/pxe-e1000.rom +-rw-r--r-- root/root usr/share/qemu/pxe-eepro100.rom +-rw-r--r-- root/root usr/share/qemu/pxe-ne2k_pci.rom +-rw-r--r-- root/root usr/share/qemu/pxe-pcnet.rom +-rw-r--r-- root/root usr/share/qemu/pxe-rtl8139.rom +-rw-r--r-- root/root usr/share/qemu/pxe-virtio.rom +-rwxr-xr-x root/root usr/share/qemu/qboot.rom +-rw-r--r-- root/root usr/share/qemu/qemu-nsis.bmp +-rw-r--r-- root/root usr/share/qemu/qemu_vga.ndrv +-rw-r--r-- root/root usr/share/qemu/s390-ccw.img +-rw-r--r-- root/root usr/share/qemu/s390-netboot.img +-rw-r--r-- root/root usr/share/qemu/skiboot.lid +-rw-r--r-- root/root usr/share/qemu/slof.bin +-rw-r--r-- root/root usr/share/qemu/trace-events-all +-rw-r--r-- root/root usr/share/qemu/u-boot-sam460-20100605.bin +-rw-r--r-- root/root usr/share/qemu/u-boot.e500 +-rw-r--r-- root/root usr/share/qemu/vgabios-ati.bin +-rw-r--r-- root/root usr/share/qemu/vgabios-bochs-display.bin +-rw-r--r-- root/root usr/share/qemu/vgabios-cirrus.bin +-rw-r--r-- root/root usr/share/qemu/vgabios-qxl.bin +-rw-r--r-- root/root usr/share/qemu/vgabios-ramfb.bin +-rw-r--r-- root/root usr/share/qemu/vgabios-stdvga.bin +-rw-r--r-- root/root usr/share/qemu/vgabios-virtio.bin +-rw-r--r-- root/root usr/share/qemu/vgabios-vmware.bin +-rw-r--r-- root/root usr/share/qemu/vgabios.bin +-rw-r--r-- root/root usr/share/qemu/vof-nvram.bin +-rwxr-xr-x root/root usr/share/qemu/vof.bin +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/run/ diff --git a/repos/extra/qemu/depends b/repos/extra/qemu/depends new file mode 100644 index 00000000..39db954c --- /dev/null +++ b/repos/extra/qemu/depends @@ -0,0 +1,5 @@ +glib +alsa-lib +sdl2 +pixman +bash diff --git a/repos/extra/qemu/info b/repos/extra/qemu/info new file mode 100644 index 00000000..24e9f387 --- /dev/null +++ b/repos/extra/qemu/info @@ -0,0 +1,7 @@ +name=qemu +version=9.0.0 +release=1 +source="https://download.$name.org/$name-$version.tar.xz + lfs64.patch" +build_type=configure_build +build_opt="--target-list=x86_64-softmmu --disable-gtk" diff --git a/repos/extra/qemu/lfs64.patch b/repos/extra/qemu/lfs64.patch new file mode 100644 index 00000000..3654d5e7 --- /dev/null +++ b/repos/extra/qemu/lfs64.patch @@ -0,0 +1,204 @@ +diff --git a/linux-user/syscall.c b/linux-user/syscall.c +index bbba2a6..38fa09a 100644 +--- a/linux-user/syscall.c ++++ b/linux-user/syscall.c +@@ -6812,13 +6812,13 @@ static int target_to_host_fcntl_cmd(int cmd) + ret = cmd; + break; + case TARGET_F_GETLK: +- ret = F_GETLK64; ++ ret = F_GETLK; + break; + case TARGET_F_SETLK: +- ret = F_SETLK64; ++ ret = F_SETLK; + break; + case TARGET_F_SETLKW: +- ret = F_SETLKW64; ++ ret = F_SETLKW; + break; + case TARGET_F_GETOWN: + ret = F_GETOWN; +@@ -6834,13 +6834,13 @@ static int target_to_host_fcntl_cmd(int cmd) + break; + #if TARGET_ABI_BITS == 32 + case TARGET_F_GETLK64: +- ret = F_GETLK64; ++ ret = F_GETLK; + break; + case TARGET_F_SETLK64: +- ret = F_SETLK64; ++ ret = F_SETLK; + break; + case TARGET_F_SETLKW64: +- ret = F_SETLKW64; ++ ret = F_SETLKW; + break; + #endif + case TARGET_F_SETLEASE: +@@ -6894,8 +6894,8 @@ static int target_to_host_fcntl_cmd(int cmd) + * them to 5, 6 and 7 before making the syscall(). Since we make the + * syscall directly, adjust to what is supported by the kernel. + */ +- if (ret >= F_GETLK64 && ret <= F_SETLKW64) { +- ret -= F_GETLK64 - 5; ++ if (ret >= F_GETLK && ret <= F_SETLKW) { ++ ret -= F_GETLK - 5; + } + #endif + +@@ -6928,7 +6928,7 @@ static int host_to_target_flock(int type) + return type; + } + +-static inline abi_long copy_from_user_flock(struct flock64 *fl, ++static inline abi_long copy_from_user_flock(struct flock *fl, + abi_ulong target_flock_addr) + { + struct target_flock *target_fl; +@@ -6953,7 +6953,7 @@ static inline abi_long copy_from_user_flock(struct flock64 *fl, + } + + static inline abi_long copy_to_user_flock(abi_ulong target_flock_addr, +- const struct flock64 *fl) ++ const struct flock *fl) + { + struct target_flock *target_fl; + short l_type; +@@ -6972,8 +6972,8 @@ static inline abi_long copy_to_user_flock(abi_ulong target_flock_addr, + return 0; + } + +-typedef abi_long from_flock64_fn(struct flock64 *fl, abi_ulong target_addr); +-typedef abi_long to_flock64_fn(abi_ulong target_addr, const struct flock64 *fl); ++typedef abi_long from_flock64_fn(struct flock *fl, abi_ulong target_addr); ++typedef abi_long to_flock64_fn(abi_ulong target_addr, const struct flock *fl); + + #if defined(TARGET_ARM) && TARGET_ABI_BITS == 32 + struct target_oabi_flock64 { +@@ -6984,7 +6984,7 @@ struct target_oabi_flock64 { + abi_int l_pid; + } QEMU_PACKED; + +-static inline abi_long copy_from_user_oabi_flock64(struct flock64 *fl, ++static inline abi_long copy_from_user_oabi_flock64(struct flock *fl, + abi_ulong target_flock_addr) + { + struct target_oabi_flock64 *target_fl; +@@ -7009,7 +7009,7 @@ static inline abi_long copy_from_user_oabi_flock64(struct flock64 *fl, + } + + static inline abi_long copy_to_user_oabi_flock64(abi_ulong target_flock_addr, +- const struct flock64 *fl) ++ const struct flock *fl) + { + struct target_oabi_flock64 *target_fl; + short l_type; +@@ -7029,7 +7029,7 @@ static inline abi_long copy_to_user_oabi_flock64(abi_ulong target_flock_addr, + } + #endif + +-static inline abi_long copy_from_user_flock64(struct flock64 *fl, ++static inline abi_long copy_from_user_flock64(struct flock *fl, + abi_ulong target_flock_addr) + { + struct target_flock64 *target_fl; +@@ -7054,7 +7054,7 @@ static inline abi_long copy_from_user_flock64(struct flock64 *fl, + } + + static inline abi_long copy_to_user_flock64(abi_ulong target_flock_addr, +- const struct flock64 *fl) ++ const struct flock *fl) + { + struct target_flock64 *target_fl; + short l_type; +@@ -7075,7 +7075,7 @@ static inline abi_long copy_to_user_flock64(abi_ulong target_flock_addr, + + static abi_long do_fcntl(int fd, int cmd, abi_ulong arg) + { +- struct flock64 fl64; ++ struct flock fl64; + #ifdef F_GETOWN_EX + struct f_owner_ex fox; + struct target_f_owner_ex *target_fox; +@@ -7347,7 +7347,7 @@ static inline abi_long target_truncate64(CPUArchState *cpu_env, const char *arg1 + arg2 = arg3; + arg3 = arg4; + } +- return get_errno(truncate64(arg1, target_offset64(arg2, arg3))); ++ return get_errno(truncate(arg1, target_offset64(arg2, arg3))); + } + #endif + +@@ -7361,7 +7361,7 @@ static inline abi_long target_ftruncate64(CPUArchState *cpu_env, abi_long arg1, + arg2 = arg3; + arg3 = arg4; + } +- return get_errno(ftruncate64(arg1, target_offset64(arg2, arg3))); ++ return get_errno(ftruncate(arg1, target_offset64(arg2, arg3))); + } + #endif + +@@ -8597,7 +8597,7 @@ static int do_getdents(abi_long dirfd, abi_long arg2, abi_long count) + void *tdirp; + int hlen, hoff, toff; + int hreclen, treclen; +- off64_t prev_diroff = 0; ++ off_t prev_diroff = 0; + + hdirp = g_try_malloc(count); + if (!hdirp) { +@@ -8650,7 +8650,7 @@ static int do_getdents(abi_long dirfd, abi_long arg2, abi_long count) + * Return what we have, resetting the file pointer to the + * location of the first record not returned. + */ +- lseek64(dirfd, prev_diroff, SEEK_SET); ++ lseek(dirfd, prev_diroff, SEEK_SET); + break; + } + +@@ -8684,7 +8684,7 @@ static int do_getdents64(abi_long dirfd, abi_long arg2, abi_long count) + void *tdirp; + int hlen, hoff, toff; + int hreclen, treclen; +- off64_t prev_diroff = 0; ++ off_t prev_diroff = 0; + + hdirp = g_try_malloc(count); + if (!hdirp) { +@@ -8726,7 +8726,7 @@ static int do_getdents64(abi_long dirfd, abi_long arg2, abi_long count) + * Return what we have, resetting the file pointer to the + * location of the first record not returned. + */ +- lseek64(dirfd, prev_diroff, SEEK_SET); ++ lseek(dirfd, prev_diroff, SEEK_SET); + break; + } + +@@ -11157,7 +11157,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, + return -TARGET_EFAULT; + } + } +- ret = get_errno(pread64(arg1, p, arg3, target_offset64(arg4, arg5))); ++ ret = get_errno(pread(arg1, p, arg3, target_offset64(arg4, arg5))); + unlock_user(p, arg2, ret); + return ret; + case TARGET_NR_pwrite64: +@@ -11174,7 +11174,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, + return -TARGET_EFAULT; + } + } +- ret = get_errno(pwrite64(arg1, p, arg3, target_offset64(arg4, arg5))); ++ ret = get_errno(pwrite(arg1, p, arg3, target_offset64(arg4, arg5))); + unlock_user(p, arg2, 0); + return ret; + #endif +@@ -12034,7 +12034,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, + case TARGET_NR_fcntl64: + { + int cmd; +- struct flock64 fl; ++ struct flock fl; + from_flock64_fn *copyfrom = copy_from_user_flock64; + to_flock64_fn *copyto = copy_to_user_flock64; + diff --git a/repos/extra/qemu/postinstall b/repos/extra/qemu/postinstall new file mode 100755 index 00000000..80598c06 --- /dev/null +++ b/repos/extra/qemu/postinstall @@ -0,0 +1,2 @@ +#!/bin/sh +update-desktop-database --quiet |