Compare commits
9 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 01661cefa3 | |||
| a64c4430d5 | |||
| 63ab69a7d5 | |||
| cd415a2a06 | |||
| da1a6ccd35 | |||
| 72b6e4a75c | |||
| d2c5872ae9 | |||
| c10d93d043 | |||
| e13f288cc0 |
35
001-Avoid-not-available-macro-for-OCaml-functions.patch
Normal file
35
001-Avoid-not-available-macro-for-OCaml-functions.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
Subject: generator/daemon.ml: Avoid not available macro for OCaml functions
|
||||
From: Richard W.M. Jones rjones@redhat.com Mon Jan 19 21:36:08 2026 +0000
|
||||
Date: Tue Jan 20 12:15:55 2026 +0000:
|
||||
Git: 07ea5915766d829b62255fb2a94239a28f433159
|
||||
|
||||
Reported-by: Toolybird
|
||||
Fixes: https://github.com/libguestfs/libguestfs/issues/290
|
||||
(cherry picked from commit 1b79e22be443b48dc2bdb518cfea14342b3d8136)
|
||||
|
||||
diff --git a/generator/daemon.ml b/generator/daemon.ml
|
||||
index 65844309e..f1f954087 100644
|
||||
--- a/generator/daemon.ml
|
||||
+++ b/generator/daemon.ml
|
||||
@@ -1054,7 +1054,8 @@ let generate_daemon_optgroups_h () =
|
||||
pr "#define OPTGROUP_%s_NOT_AVAILABLE \\\n"
|
||||
(String.uppercase_ascii group);
|
||||
List.iter (
|
||||
- fun { name; style = ret, args, optargs } ->
|
||||
+ function
|
||||
+ | { name; style = ret, args, optargs; impl = C } ->
|
||||
let style = ret, args @ args_of_optargs optargs, [] in
|
||||
pr " ";
|
||||
generate_prototype
|
||||
@@ -1065,6 +1066,11 @@ let generate_daemon_optgroups_h () =
|
||||
~semicolon:false
|
||||
name style;
|
||||
pr " { abort (); } \\\n"
|
||||
+ | { impl = OCaml _ } ->
|
||||
+ (* Don't need to generate anything for OCaml functions since
|
||||
+ * the caml-stubs do_* function will still exist.
|
||||
+ *)
|
||||
+ ()
|
||||
) fns;
|
||||
pr " int optgroup_%s_available (void) { return 0; }\n" group;
|
||||
pr "\n"
|
||||
15
drop-initviocons-from-package-list.patch
Normal file
15
drop-initviocons-from-package-list.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
References: bsc#1247578
|
||||
|
||||
initviocons is no longer maintained. This patch changes the SUSE section
|
||||
of the packagelist file and should eventually go upstream.
|
||||
|
||||
--- libguestfs-1.56.1/appliance/packagelist.in.orig 2025-08-05 13:57:20.993985224 -0600
|
||||
+++ libguestfs-1.56.1/appliance/packagelist.in 2025-08-05 13:57:27.041985375 -0600
|
||||
@@ -135,7 +135,6 @@ ifelse(SUSE,1,
|
||||
dhcp-client
|
||||
glibc-locale
|
||||
gptfdisk
|
||||
- initviocons
|
||||
iproute2
|
||||
iputils
|
||||
ntfsprogs
|
||||
BIN
libguestfs-1.56.1.tar.gz
LFS
BIN
libguestfs-1.56.1.tar.gz
LFS
Binary file not shown.
@@ -1,17 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQJFBAABCgAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAmhQPkcRHHJpY2hAYW5u
|
||||
ZXhpYS5vcmcACgkQkXOPc+G3aKBzGBAAnhwMRwtiYaw94nMMhZA+896zxzBDi6Wx
|
||||
YhWiJ7wrlgx7qchP21Y+As4mz5ldDeiFFsFMXXuIBz2m+G73yM1EGbcwxYlpWV+h
|
||||
bSBca5Vd14WFAVX497fWTzcz3UXAvkYmqLJqCliSJ4BdnCuTcCoKK4+sl/F0kwXe
|
||||
F2x0YNaUxCMiuscFhmLIkz1r+RDUyuQfCeb+ilkkdsd+Gugq42CkW5kLxCfy/dn7
|
||||
gSyj/oaYIaE2bsYW39EKXuJX1qb4DlmwZa8JUsYsi9uZGQbwH+gka9XkKVvbSd6Q
|
||||
s7q68xl3DIna7rfIrnLdf/OGcwmPQ0U02Yhfam7tM/4FY2t5hBOSCahBSrZVfuQt
|
||||
Q/QXpXiYzoD/nmgUNHgFqgN1kgm22E/qaqwwbKf6k412NDfF+Ez84sZHCcgJH+LR
|
||||
/eJrp7lde74QxGervdQ5dYmwNBuv5IPrRJA2kWv97wVDqaOlMgpjpmYNTFyxppZm
|
||||
9H2NyI8x+jSZ9KQT0vEjIWpe3Yr5l0zUkLLzLoD7t0DcxTZGVIeHV7n8ITLlK0dH
|
||||
Ki/BmkWqs2p39Izv7IWWBlRV/URVxW5zK4zEvRtTQtFidlaRqAy5oWUrARnmO4Te
|
||||
sT7Y7ZQss9ZJkcz3JF9lh27JCvD4aRW62y4n2zreq7FXPA67YjbsMJ43BLQ7Gek2
|
||||
I0nROw3mmHw=
|
||||
=OxmC
|
||||
-----END PGP SIGNATURE-----
|
||||
BIN
libguestfs-1.58.1.tar.gz
LFS
Normal file
BIN
libguestfs-1.58.1.tar.gz
LFS
Normal file
Binary file not shown.
17
libguestfs-1.58.1.tar.gz.sig
Normal file
17
libguestfs-1.58.1.tar.gz.sig
Normal file
@@ -0,0 +1,17 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQJFBAABCgAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAmluiRcRHHJpY2hAYW5u
|
||||
ZXhpYS5vcmcACgkQkXOPc+G3aKCpIhAAxp4wXEWGF36xRCNt+S+/m16bRt76Zkff
|
||||
ceypEHX3jxNFZaLo/NVIcNnRGT39R60G0kZ9dAXUHlxRBMdra+H5DdA0QmCCfUqj
|
||||
ExVMxripmaHkm53p5nmCW808la4cBkq58PoImWswFyoOhWIFjVKTI8S9esY/s05R
|
||||
9TU8OBjkOclZq+mcgcs+BSITIq7RhxF/PPhmGfFPYi9frecpHGn6RYJSwrTVDlRF
|
||||
A+bqFM7dhRcbq3l+WS+mEwV0uDXrk4ru9Q226NSmLNt6z0hydcVJvKTaULS/V9eQ
|
||||
TmgvM4ykaWZ8FqVMRR4otkOoSAOinzw9NVuSY9keWC0La5I4faM4+whkMlXoiope
|
||||
YBYFARJMcAxdR64spmPhnZdekYDfL3/WmIVRDVZQl19bHE6fVpJOyOymxskY4q4E
|
||||
aDlBZz/dTJXCb2Wp3kyebfUqrFje0ffr+gjY/8UpKjSRwccl7ks2k4GS3g2eX97t
|
||||
Kzp03zbHUYTN5tAt4pYlZwVitaiAy1zfXdflB6kR8wWT5szGKGoVCT55YDaGsI+z
|
||||
DuSg28T9l374GTT/sNdsEL/nou/YQ/Eviw6nIeQbh0Y2Pg0EG57PRE/vpJozac4x
|
||||
GcH1BPabwHE7mMmY5LEVV9in8A19WbKogJYqx1uDLIeke/jMowsS4518kZf4ArtK
|
||||
eH9o87N6qFA=
|
||||
=vKU/
|
||||
-----END PGP SIGNATURE-----
|
||||
@@ -1,3 +1,104 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 21 11:44:42 MST 2026 - carnold@suse.com
|
||||
|
||||
- Update to version 1.58.1 (jsc#PED-14625)
|
||||
* daemon/selinux.c: Fix compilation when no libselinux
|
||||
* lib/qemu.c: Don't start the guest when checking QMP properties
|
||||
* lib/qemu.c: Add debugging to generic_qmp_test()
|
||||
* lib/qemu.c: Turn debug messages which are really errors into
|
||||
error()
|
||||
- Add upstream fix
|
||||
001-Avoid-not-available-macro-for-OCaml-functions.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 5 10:58:48 MST 2026 - carnold@suse.com
|
||||
|
||||
- Update to version 1.58.0 (jsc#PED-14625)
|
||||
See release notes at,
|
||||
https://libguestfs.org/guestfs-release-notes-1.58.1.html
|
||||
* Fix inspection of SLES 15 guests that have an encrypted Btrfs
|
||||
filesystem, by correctly parsing /etc/crypttab (Cole Robinson).
|
||||
* Windows named drives (like D:) which point to completely blank
|
||||
disks are now ignored instead of causing an error (thanks
|
||||
Ming Xie, Ameen Barakat).
|
||||
* Existing code in virt-v2v which recognized Windows Antivirus
|
||||
(AV) software is now part of inspection.
|
||||
* guestfs_selinux_relabel was deprecated, replaced by new
|
||||
guestfs_setfiles and uses the setfiles(8) -A option to reduce
|
||||
memory usage.
|
||||
* New guestfs_ntfs_chmod API which changes the permissions of
|
||||
Windows paths (Cole Robinson).
|
||||
* In the list of structures returned by guestfs_inspect_get_applications2,
|
||||
a new app2_class field has been added.
|
||||
* New guestfs_inspect_get_windows_group_policy API which reports
|
||||
whether Group Policy Objects were found in the Windows guest.
|
||||
* guestfs_btrfs_subvolume_show would sometimes crash when parsing
|
||||
the snapshots of a Btrfs subvolume. Furthermore, in any API
|
||||
that returned a device name associated with a Btrfs volume, the
|
||||
device name might not be translated correctly resulting in the
|
||||
wrong device name being returned. (Both problems fixed by Arye
|
||||
Yurkovsky.)
|
||||
* Fix a memory leak in guestfs_filesystem_walk (Susant Sahani).
|
||||
* In guestfs_disk_create, when creating raw block devices, check
|
||||
for errors in the close(2) system call, ensuring we don't miss
|
||||
any delayed I/O errors (Susant Sahani).
|
||||
* In several LVM-related APIs, it was possible for an internal
|
||||
failure to happen for logical volumes which are incomplete (eg.
|
||||
missing a physical volume). This was fixed by skipping these
|
||||
LVs (Arye Yurkovsky).
|
||||
* Note that GObject / Javascript bindings will be removed in the
|
||||
next release of libguestfs.
|
||||
* Ruby deprecation warnings were fixed (Cole Robinson).
|
||||
* libvirt ≥ 11.10.0 with passt support is now required.
|
||||
* qemu ≥ 7.2.0 is now required.
|
||||
* Change permission of guestfs folder created
|
||||
* Adding the commands "lsblk", "cat /etc/fstab" and "blkid" to
|
||||
the v2v debug log
|
||||
* Parted fails to read a blank disk "virt-v2v: error: libguestfs
|
||||
error: inspect_os: parted: /dev/sdb: parted exited with status
|
||||
1: Error: /dev/sdb: unrecognised disk label: Invalid argument"
|
||||
[rhel-9.7]
|
||||
* [Testonly]virt-v2v of RHEL 8.10 VM fails because setfiles
|
||||
invoked oom-killer
|
||||
* Lots of memory used in 'setfiles' utility / 'restorecon_sb'
|
||||
function
|
||||
* [DEV Task]: The available subscriptions of guest sometimes
|
||||
can't be shown unless use --sm-remove and --sm-unregister
|
||||
options to remove all subscriptions from the guest
|
||||
* [DEV Task]: Virt-v2v can't use --sm-remove and --sm-unregister
|
||||
options to remove the subscriptions from guest if consumer
|
||||
profile has been deleted from the guest.
|
||||
* Use setfiles -A option when relabelling
|
||||
* [libguestfs] [aarch64] libguestfs-test-tool failed with
|
||||
LIBGUESTFS_BACKEND=direct
|
||||
* virt-inspector detect if AV/GPOs are present in a VM
|
||||
* virt-v2v can't convert sles15sp6 guest with encrypted brtfs
|
||||
fliesystem
|
||||
* Fails to build with macFUSE
|
||||
* make -j8 check failures with selinux enforcing
|
||||
- Drop use-rtc-driftfix-slew-for-x86-only.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 19 16:31:54 MDT 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.56.2 (jsc#PED-12706)
|
||||
* generator: Allow StringList(Pathname) parameters
|
||||
* generator: Implement StringList for OCaml functions
|
||||
* daemon: sysroot: Avoid copying the path every time we call sysroot ()
|
||||
* daemon: sysroot: Avoid double-/ when creating sysroot paths in OCaml
|
||||
* docs: Fix dead ntfs-3g doc links
|
||||
* appliance/init: Add lsblk and blkid output to verbose log
|
||||
* daemon: Add contents of /etc/fstab to verbose log
|
||||
* lib: libvirt: Sleep before retrying virDomainDestroyFlags
|
||||
* lib: libvirt: Debug error from virDomainDestroyFlags
|
||||
* appliance: Ignore sit0 network device in the guest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 5 13:58:45 MDT 2025 - carnold@suse.com
|
||||
|
||||
- bsc#1247578 - [glibc2.42] initviocons fails to build
|
||||
drop-initviocons-from-package-list.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 24 10:59:19 MDT 2025 - carnold@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libguestfs
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
Name: libguestfs
|
||||
ExclusiveArch: x86_64 ppc64 ppc64le s390x aarch64 riscv64
|
||||
Version: 1.56.1
|
||||
Version: 1.58.1
|
||||
Release: 0
|
||||
Summary: Access and modify virtual machine disk images
|
||||
License: GPL-2.0-or-later
|
||||
@@ -32,8 +32,9 @@ Source100: mount-rootfs-and-chroot.sh
|
||||
Source101: README
|
||||
|
||||
# Patches
|
||||
Patch1: use-rtc-driftfix-slew-for-x86-only.patch
|
||||
Patch2: reproducible-builds.patch
|
||||
Patch0: 001-Avoid-not-available-macro-for-OCaml-functions.patch
|
||||
Patch1: reproducible-builds.patch
|
||||
Patch2: drop-initviocons-from-package-list.patch
|
||||
Patch100: use-fuse3-for-build.patch
|
||||
|
||||
BuildRequires: bison
|
||||
@@ -346,7 +347,6 @@ BuildRequires: glibc
|
||||
BuildRequires: gptfdisk
|
||||
BuildRequires: grep
|
||||
BuildRequires: gzip
|
||||
BuildRequires: initviocons
|
||||
BuildRequires: iproute2
|
||||
BuildRequires: jfsutils
|
||||
BuildRequires: ldmtool
|
||||
|
||||
@@ -41,8 +41,8 @@ Index: libguestfs-1.55.13/lib/fuse.c
|
||||
* not quite sure how this is ever supposed to work on large
|
||||
* directories. XXX
|
||||
*/
|
||||
- if (filler (buf, ents->val[i].name, &stat, 0))
|
||||
+ if (filler (buf, ents->val[i].name, &stat, 0, flags))
|
||||
- if (filler (buf, ents->val[i].name, &st, 0))
|
||||
+ if (filler (buf, ents->val[i].name, &st, 0, flags))
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
--- a/lib/launch-direct.c
|
||||
+++ b/lib/launch-direct.c
|
||||
@@ -645,7 +645,10 @@ launch_direct (guestfs_h *g, void *datav
|
||||
flag ("-no-reboot");
|
||||
|
||||
/* These are recommended settings, see RHBZ#1053847. */
|
||||
+#if defined(__i386__) || defined(__x86_64__)
|
||||
+ /* Man page states, "Enable driftfix (i386 targets only)" */
|
||||
arg ("-rtc", "driftfix=slew");
|
||||
+#endif
|
||||
if (guestfs_int_qemu_supports (g, data->qemu_data, "-no-hpet"))
|
||||
flag ("-no-hpet");
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
Reference in New Issue
Block a user