forked from pool/libguestfs
Compare commits
49 Commits
Author | SHA256 | Date | |
---|---|---|---|
d2c5872ae9 | |||
|
c10d93d043 | ||
|
e13f288cc0 | ||
cbdd2b71f3 | |||
|
c633ee3b82 | ||
|
4e392f0277 | ||
|
8d0579558f | ||
26ca57a959 | |||
|
49cdc75450 | ||
dfda96d0ef | |||
|
298b7e0072 | ||
|
6ea7584bea | ||
|
623a4540f6 | ||
02f8f22696 | |||
|
7da0e53adb | ||
|
8330283327 | ||
|
96a7acd34c | ||
3b869f4ae0 | |||
|
a0cc415e8c | ||
|
3cb58ed2de | ||
|
0cd390a231 | ||
f4a9c30f65 | |||
3b0dc53299 | |||
|
fd00bb0a2b | ||
|
d000599b93 | ||
99b5200b11 | |||
|
934905d7f4 | ||
|
d16cd16953 | ||
|
4eb42f440a | ||
f7a821edce | |||
|
2ac1438f53 | ||
|
e6ed719757 | ||
|
7cc766c3dd | ||
6445be34f3 | |||
|
500aa1e5c7 | ||
112b8eab94 | |||
|
e68fea7a12 | ||
eed68c2a6b | |||
|
cffce95202 | ||
|
49b2a088b5 | ||
|
b678bb1267 | ||
1bc5823a80 | |||
|
cef46cf35d | ||
11b1819b76 | |||
|
b0d567393a | ||
35ab6dbaf5 | |||
|
f06eb3bdd8 | ||
21e94e5cc7 | |||
|
67ae6de24e |
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
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e0f21322023cacfac04902096f389793a045d818f955404888953f2d78ccecd7
|
||||
size 19084237
|
@@ -1,17 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQJFBAABCAAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAma/YloRHHJpY2hAYW5u
|
||||
ZXhpYS5vcmcACgkQkXOPc+G3aKDs5A//dEgzW/mjrxNjR/EdH9pPGE/xmhB7XbPz
|
||||
2hNUP0GF2JnFBt104MRmuexivpFGvJHAt94DrVIikM41X0VO1yBStKDHqWYS1EWx
|
||||
OyK7Lq5T1uxTnt3CTHmzve6MmiVwIZXC+BVOWfUcDZHtLufYwZE0HQQVe4IccaqM
|
||||
rEfmKA12CDW0ZrtsYIZ+XYZTmSMNuuZ4/2l4IzaZnboCCyaOJOihwqGxDRFDMehb
|
||||
1KFDX2s7IOOC6dx4wTFE954HSzQu4Xu3HlIznlVw6Vh51fJsC63VMU/QNOARsVVt
|
||||
X9fo0zJS2zbja4q3xJ4c7v0mH1AYAmxfrOiD7eplQllsYKTjUSjd9B2BWjB99B+p
|
||||
liki07SoEjOTuQanCsN+HGHTwjHqe/NkuFzmy3zONA5FeTYrslNWFLgtXL26LlAc
|
||||
lcglwE7KFT+YEmEjbq0aSL1ofca6W9dX7AiQdtI0TD4NOkQZD5B4gFfpGBaWQWSh
|
||||
XnYJIbVg7C/fN/46n1Bv773MI58kYleTvh1xsIf858CH10FG19aIXQIGy5iQ8/iQ
|
||||
YyzzEGjvm5w/B6LC4NC8C5nqHQuRD0rHUac6EIiL8z0twx6wf+aPKH2LpvCRBDyp
|
||||
sYTmC/mhXYiISWycNakzlTV4tq87fVZZosHMIki+/z6jxvUrjMzmWh8LfNH2hjJj
|
||||
sb0ibmtllDk=
|
||||
=okef
|
||||
-----END PGP SIGNATURE-----
|
BIN
libguestfs-1.56.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
libguestfs-1.56.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
17
libguestfs-1.56.1.tar.gz.sig
Normal file
17
libguestfs-1.56.1.tar.gz.sig
Normal file
@@ -0,0 +1,17 @@
|
||||
-----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-----
|
@@ -1,3 +1,265 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
- Update to version 1.56.1 (jsc#PED-12706)
|
||||
* lib: Enable ACPI for the libvirt backend for x86_64 and arm
|
||||
- Only build the inspect-icons RPM for Tumbleweed. Tumbleweed is
|
||||
the only place where icoutils package exists which it requires.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 13 06:40:24 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Drop gzip mtime from base.tar.gz (bsc#1216986)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 11 13:37:01 MDT 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.56.0 (jsc#PED-12706)
|
||||
* Add support for Windows 2025 (thanks Ming Xie).
|
||||
* Add support for TencentOS (Denise Cheng).
|
||||
* Inspection of Ubuntu 22+ guests that use a split /usr
|
||||
configuration now works properly (thanks Jaroslav Spanko,
|
||||
Daniel Berrange).
|
||||
* Inspecting guests that have duplicated root mountpoints now
|
||||
works.
|
||||
* Inspection of SUSE Linux guests using btrfs snapshots now
|
||||
ignores snapshots that mirror content in the root filesystem
|
||||
(thanks Ming Xie).
|
||||
* Inspection of SUSE Linux >= 15 now returns the correct osinfo
|
||||
short name (eg. "sle15") (thanks Ming Xie).
|
||||
* New command_out and sh_out APIs which allow you to capture
|
||||
output from guest commands that generate more output than the
|
||||
protocol limit allows.
|
||||
* New btrfs_scrub_full API which runs a full Btrfs scrub,
|
||||
synchronously. It works more like fsck for other filesystems.
|
||||
* The fstrim API has been modified to work around several issues
|
||||
in upstream and RHEL 9 kernels related to XFS support (Eric
|
||||
Sandeen, Dave Chinner).
|
||||
* The existing e2fsck API has a new FORCENO option enabling use
|
||||
of the command line -n flag.
|
||||
* json-c is now required. This replaces Jansson which was
|
||||
previously used for parsing JSON input files.
|
||||
* OCaml ≥ 4.08 is now required.
|
||||
* When using ./configure --disable-daemon we no longer require
|
||||
augeas and hivex (thanks Mohamed Akram).
|
||||
* zfs-fuse support has been dropped. The project is unmaintained
|
||||
upstream (thanks Paul Bolle, Gwyn Ciesla, Timothée Ravier).
|
||||
* Fix compatibility with GNU gettext 0.25.
|
||||
* Fix dhcpcd failing on systemd-resolved stub (Thomas Wouters).
|
||||
* Add support for dhcpcd and sfdisk on Debian (Daniel Gomez).
|
||||
* Print the kernel utsname in debug output.
|
||||
* We no longer emit a false warning about BLKDISCARD when
|
||||
creating a block device.
|
||||
* If qemu-img(1) commands fail during snapshot creation, make
|
||||
sure we capture and print stderr from the qemu command (Cole
|
||||
Robinson).
|
||||
* For a complete list of changes and bug fixes see,
|
||||
https://libguestfs.org/guestfs-release-notes-1.56.1.html
|
||||
- bsc#1216986 - libguestfs: embeds /etc/hosts
|
||||
reproducible-builds.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 6 11:18:27 MDT 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.55.14 (jsc#PED-12706)
|
||||
* lib/create.c: Capture and raise qemu-img stderr
|
||||
* inspection: Ignore btrfs snapshots of roots
|
||||
- Drop patches contained in new tarball
|
||||
004-Add-more-debugging-to-list_filesystems.patch
|
||||
005-Pipeline-style-when-mapping-and-filtering-filesystems.patch
|
||||
007-inspection-Ignore-btrfs-snapshots-of-roots.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 28 09:50:06 MDT 2025 - carnold@suse.com
|
||||
|
||||
- Upstream bug fix for BTRFS based images (SLES and openSUSE)
|
||||
004-Add-more-debugging-to-list_filesystems.patch
|
||||
005-Pipeline-style-when-mapping-and-filtering-filesystems.patch
|
||||
007-inspection-Ignore-btrfs-snapshots-of-roots.patch
|
||||
- Adjustment to use fusermount3 when fuse3 is required by distro.
|
||||
use-fuse3-for-build.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 27 08:43:54 MDT 2025 - carnold@suse.com
|
||||
|
||||
- bsc#1243351 - guestfs-appliance still requires ISC dhcp
|
||||
Conditionally replace usage of dhcp-client with dhcpcd in
|
||||
libguestfs.spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 21 05:42:04 MDT 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.55.13 (jsc#PED-12706)
|
||||
* appliance: Remove zfs-fuse
|
||||
* Various updates to common submodule
|
||||
* ocaml-dep.sh.in: Remove mlgettext subdirectory
|
||||
* New API: Replace btrfs-fsck with btrfs-scrub-full
|
||||
* daemon: Implement e2fsck -n flag (as FORCENO option)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 13 11:48:35 MDT 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.55.11 (jsc#PED-12706)
|
||||
* daemon/fstrim.c: Run the fstrim command twice
|
||||
* lib/create.c: Fix check after BLKDISCARD
|
||||
* daemon: inspect: Remove duplicate root mountpoints in /etc/fstab
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 12 14:17:21 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Use FUSE3 starting with suse_version 1600 (aka CODE16): Release
|
||||
CODE16 from the beginning without relying on FUSE 2.
|
||||
- Do not add the patch conditionally to the .src.rpm, but only
|
||||
apply the patch conditionally: allows to reuse src.rpm across
|
||||
codestreams.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 30 14:41:53 MDT 2025 - carnold@suse.com
|
||||
|
||||
- bsc#1242082 - libguestfs: migration to fuse 3 and deprecation of
|
||||
fuse (1)
|
||||
use-fuse3-for-build.patch
|
||||
- Update to version 1.55.10 (jsc#PED-8910)
|
||||
* mltools: decouple and simplify osinfo device support checks
|
||||
* mlcustomize: disable `--inject-virtio-win osinfo`
|
||||
* mltools: Fix de-oUnit-ized tests
|
||||
* mltools: Unreference various objects
|
||||
* Revert "mltools: Unreference various objects"
|
||||
* generator: Implement struct FDevice type
|
||||
* mltools: Fix memory leak in OCaml binding of libosinfo
|
||||
* mlstdutils: Implement String.implode
|
||||
* daemon: Rewrite {pvs,vgs,lvs}-full APIs in OCaml
|
||||
* daemon: inspect: Resolve Ubuntu 22+ /dev/disk/by-id/dm-uuid-LVM-... in fstab
|
||||
* Various build improvements
|
||||
* daemon/fstrim.c: Issue sync_disks after fstri
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 3 15:04:42 MDT 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.55.8 (jsc#PED-8910)
|
||||
* Various build improvements
|
||||
* Updated translations for several languages
|
||||
* lib/launch-libvirt.c: Remove fallback <emulator> for Arm
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 24 21:17:18 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
- libguestfs-appliance: drop incorrect requireson libpcre1,
|
||||
package was converted to pcre2 by 1.44.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 12 13:37:32 MDT 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.55.7 (jsc#PED-8910)
|
||||
* libguestfs: Rust binding build error and warning fixes
|
||||
* support TencentOS
|
||||
* lib: Print kernel utsname in debug output
|
||||
* daemon: Fix loongarch64 detection on RHEL 9
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 19 10:08:10 MST 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.55.6 (jsc#PED-8910)
|
||||
* appliance: add dhcpcd support on Debian
|
||||
* appliance: add support for sfdisk on Debian
|
||||
* mlcustomize, mltools: Replace $TEST_FUNCTIONS
|
||||
* ruby: Make sure all object files are cleaned up
|
||||
* daemon: New command_out and sh_out APIs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 12 15:34:38 MST 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.55.4 (jsc#PED-8910)
|
||||
* appliance/init: Fix /usr/sbin symlinks in Fedora 42+
|
||||
* Various translation updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 30 10:29:58 MST 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.55.3 (jsc#PED-8910)
|
||||
* build: Move baseline OCaml to 4.08
|
||||
* Various translation updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 3 14:09:24 MST 2025 - carnold@suse.com
|
||||
|
||||
- Update to version 1.55.2 (jsc#PED-8910)
|
||||
* lib/inspect-osinfo.c: Add Windows Server 2025 osinfo
|
||||
* appliance: Use stable owner, group and mtime in appliance
|
||||
tarballs
|
||||
* mltools: Replace jansson with json-c
|
||||
* lib/info.c: Replace jansson with json-c
|
||||
* lib/qemu.c: Replace jansson with json-c
|
||||
* lib: direct: Remove test for qemu mandatory locking
|
||||
* Various language translations
|
||||
* Fix dhcpcd failing on systemd-resolved stub
|
||||
* mlcustomize: Add heuristic support for Windows Server 2025
|
||||
* mlcustomize/customize_run.ml: Move 'in' to new line
|
||||
* mlstdutils/guestfs_config: Define host_os
|
||||
* mlcustomize, mltools: Check guest OS is compatible before
|
||||
allowing --run
|
||||
* generator: Remove common/mlv2v/uefi.ml{,i} files
|
||||
* qemuopts: Add ability to add raw, unquoted output to qemu
|
||||
scripts
|
||||
* qemuopts: Fix missing break statement
|
||||
* mlstdutils: Remove Option module
|
||||
* Remove test for caml_alloc_initialized_string
|
||||
* build: Move baseline OCaml to 4.08
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 10 07:06:04 MDT 2024 - carnold@suse.com
|
||||
|
||||
- Update to version 1.54.0 (jsc#PED-8910)
|
||||
* Add detection of Circle Linux (Bella Zhang).
|
||||
* Add support for LoongArch (liuxiang).
|
||||
* Add detection of Kylin (grass-lu).
|
||||
* Add detection of openEuler (Wang Guoquan).
|
||||
* PARTUUID and PARTLABEL are now resolved in guest /etc/fstab.
|
||||
* New APIs findfs_partuuid and findfs_partlabel. These can be
|
||||
used to efficiently look up a filesystem by its GPT partition
|
||||
UUID or label.
|
||||
* Support for the following inactive or infrequently used device
|
||||
types has been removed: Gluster, Sheepdog, TFTP.
|
||||
* Add GOST R34.11-94 message digest algorithm to checksum APIs
|
||||
(Alexey Shabalin).
|
||||
* Allow nbd+unix:// URIs (NBD over Unix domain socket) in
|
||||
guestfish and other places.
|
||||
* Various part_* (partition) APIs related to GPT have been
|
||||
reimplemented to use util-linux sfdisk instead of sgdisk.
|
||||
Util-linux is more widely available, so this reduces
|
||||
dependencies in the common case. One optional API remains that
|
||||
still uses sgdisk. (Thanks Yongkui Guo).
|
||||
* Add cipher suboption to cryptsetup_open (Jonatan Pålsson).
|
||||
* Because of a bug, the part_get_gpt_attributes API could
|
||||
truncate the return value from 64 to 32 bits. This has been
|
||||
fixed.
|
||||
* Libguestfs will now no longer recommend using
|
||||
LIBGUESTFS_BACKEND=direct. This was shown previously when
|
||||
libvirt failed to start the appliance. However it is felt that
|
||||
this now does more harm than good.
|
||||
* Fix generation of virt-customize --chown parameter (Yongkui Guo)
|
||||
* In the appliance, reduce boot time when dhcp isn't needed
|
||||
(Olaf Hering).
|
||||
* A deadlock in the appliance caused by a regression in Linux
|
||||
6.11 has been worked around. The deadlock was also fixed in
|
||||
Linux 6.12.
|
||||
- Bug fixes
|
||||
* Fix rare hangs while starting the appliance, at 'echo noop'
|
||||
into /sys/block/{h,s,ub,v}d*/queue/scheduler
|
||||
* Drop dependency from libguestfs -> gdisk
|
||||
* libguestfs inspection does not know about /etc/fstab
|
||||
PARTLABEL=<label>
|
||||
* btrfs related c_api/tests are failing (unable to create quota
|
||||
group: Invalid argument)
|
||||
* Python how-to incorrect exception name
|
||||
* Rust test 410_close_event fails
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 29 15:06:57 MDT 2024 - carnold@suse.com
|
||||
|
||||
@@ -63,6 +325,7 @@ Thu May 16 13:02:34 MDT 2024 - carnold@suse.com
|
||||
Wed May 8 12:42:02 MDT 2024 - carnold@suse.com
|
||||
|
||||
- Set Recommends on zerofree and ntfsprogs for libguestfs-appliance
|
||||
(bsc#1223444)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 7 10:27:25 MDT 2024 - carnold@suse.com
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libguestfs
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# 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.53.6
|
||||
Version: 1.56.1
|
||||
Release: 0
|
||||
Summary: Access and modify virtual machine disk images
|
||||
License: GPL-2.0-or-later
|
||||
@@ -33,6 +33,9 @@ Source101: README
|
||||
|
||||
# Patches
|
||||
Patch1: use-rtc-driftfix-slew-for-x86-only.patch
|
||||
Patch2: reproducible-builds.patch
|
||||
Patch3: drop-initviocons-from-package-list.patch
|
||||
Patch100: use-fuse3-for-build.patch
|
||||
|
||||
BuildRequires: bison
|
||||
BuildRequires: file-devel
|
||||
@@ -41,6 +44,7 @@ BuildRequires: gawk
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: gperf
|
||||
BuildRequires: libjson-c-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: ocaml-augeas-devel
|
||||
BuildRequires: ocaml-hivex-devel
|
||||
@@ -49,7 +53,7 @@ BuildRequires: po4a
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: supermin >= 5.1.18
|
||||
BuildRequires: zstd
|
||||
BuildRequires: ocaml(ocaml_base_version) >= 4.07
|
||||
BuildRequires: ocaml(ocaml_base_version) >= 4.08
|
||||
BuildRequires: ocamlfind(findlib)
|
||||
BuildRequires: perl(Getopt::Long)
|
||||
BuildRequires: perl(Locale::TextDomain)
|
||||
@@ -60,7 +64,11 @@ BuildRequires: perl(Pod::Usage)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: pkgconfig(augeas)
|
||||
BuildRequires: pkgconfig(bash-completion)
|
||||
%if 0%{?suse_version} >= 1600
|
||||
BuildRequires: pkgconfig(fuse3)
|
||||
%else
|
||||
BuildRequires: pkgconfig(fuse)
|
||||
%endif
|
||||
BuildRequires: pkgconfig(hivex)
|
||||
BuildRequires: pkgconfig(jansson)
|
||||
BuildRequires: pkgconfig(libacl)
|
||||
@@ -90,7 +98,11 @@ to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
|
||||
schemes, qcow, qcow2, vmdk.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%autosetup -N
|
||||
%autopatch -p1 -M 99
|
||||
%if 0%{?suse_version} >= 1600
|
||||
%autopatch -p1 -m 100
|
||||
%endif
|
||||
|
||||
sed -i 's|RPMVSF_MASK_NOSIGNATURES|_RPMVSF_NOSIGNATURES|' daemon/rpm-c.c
|
||||
sed -i 's/tar zcf/tar -zcf/' appliance/Makefile.am
|
||||
@@ -275,7 +287,11 @@ tar -czf %{buildroot}%{_libdir}/guestfs/supermin.d/zz-winsupport.tar.gz .
|
||||
popd
|
||||
|
||||
cat > %{buildroot}%{_libdir}/guestfs/supermin.d/zz-packages-winsupport << EOF
|
||||
%if 0%{?suse_version} >= 1600
|
||||
libfuse3
|
||||
%else
|
||||
libfuse2
|
||||
%endif
|
||||
hwinfo
|
||||
EOF
|
||||
|
||||
@@ -317,7 +333,11 @@ BuildRequires: bzip2
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: cpio
|
||||
BuildRequires: cryptsetup
|
||||
%if 0%{?suse_version} < 1600
|
||||
BuildRequires: dhcp-client
|
||||
%else
|
||||
BuildRequires: dhcpcd
|
||||
%endif
|
||||
BuildRequires: diffutils
|
||||
BuildRequires: dosfstools
|
||||
BuildRequires: e2fsprogs
|
||||
@@ -327,7 +347,6 @@ BuildRequires: glibc
|
||||
BuildRequires: gptfdisk
|
||||
BuildRequires: grep
|
||||
BuildRequires: gzip
|
||||
BuildRequires: initviocons
|
||||
BuildRequires: iproute2
|
||||
BuildRequires: jfsutils
|
||||
BuildRequires: ldmtool
|
||||
@@ -344,7 +363,9 @@ BuildRequires: parted
|
||||
BuildRequires: psmisc
|
||||
BuildRequires: sg3_utils
|
||||
BuildRequires: strace
|
||||
%if 0%{?suse_version} < 1600
|
||||
BuildRequires: sysconfig-netconfig
|
||||
%endif
|
||||
%ifarch %ix86 x86_64
|
||||
BuildRequires: syslinux
|
||||
%endif
|
||||
@@ -367,12 +388,16 @@ BuildRequires: xz
|
||||
# the appliance will fail to start the guestfsd.
|
||||
Requires: augeas
|
||||
Requires: augeas-lenses
|
||||
%if 0%{?suse_version} < 1600
|
||||
Requires: dhcp-client
|
||||
%else
|
||||
Requires: dhcpcd
|
||||
%endif
|
||||
Requires: libaugeas0
|
||||
Requires: libcap2
|
||||
Requires: libguestfs0
|
||||
Requires: libhivex0
|
||||
Requires: libpcre1
|
||||
Requires: libpcre2-8-0
|
||||
|
||||
# For core disk features
|
||||
Requires: qemu-tools
|
||||
@@ -433,13 +458,12 @@ Requires: bash-completion >= 2.0
|
||||
Install this package if you want intelligent bash tab-completion
|
||||
for guestfish, guestmount and various virt-* tools.
|
||||
|
||||
%if 0%{?suse_version} >= 1699
|
||||
%package inspect-icons
|
||||
Summary: Additional dependencies for inspecting guest icons
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%if 0%{?suse_version} > 1500
|
||||
Requires: icoutils
|
||||
%endif
|
||||
|
||||
%description inspect-icons
|
||||
%{name}-inspect-icons is a metapackage that pulls in additional
|
||||
@@ -449,6 +473,7 @@ inspect non-Linux guests and display icons from them.
|
||||
|
||||
The only reason this is a separate package is to avoid core libguestfs
|
||||
having to depend on Perl.
|
||||
%endif
|
||||
|
||||
%package -n ocaml-%{name}
|
||||
Summary: OCaml bindings for %{name}
|
||||
@@ -648,8 +673,10 @@ for %{name}.
|
||||
%{_datadir}/bash-completion/completions/virt-tar-in
|
||||
%{_datadir}/bash-completion/completions/virt-tar-out
|
||||
|
||||
%if 0%{?suse_version} >= 1699
|
||||
%files inspect-icons
|
||||
# no files
|
||||
%endif
|
||||
|
||||
%files -n ocaml-%{name} -f %name.files
|
||||
|
||||
|
16
reproducible-builds.patch
Normal file
16
reproducible-builds.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
References: bsc#1216986 - libguestfs: embeds /etc/hosts (also bsc#1237212)
|
||||
Removes etc/hosts from base.tar.gz which will be different for each
|
||||
build environment.
|
||||
|
||||
Index: libguestfs-1.56.0/appliance/Makefile.am
|
||||
===================================================================
|
||||
--- libguestfs-1.56.0.orig/appliance/Makefile.am
|
||||
+++ libguestfs-1.56.0/appliance/Makefile.am
|
||||
@@ -62,6 +62,7 @@ stamp-supermin: make.sh packagelist supe
|
||||
supermin.d/hostfiles \
|
||||
supermin.d/init.tar.gz \
|
||||
supermin.d/udev-rules.tar.gz
|
||||
+ gunzip supermin.d/base.tar.gz; tar --delete ./etc/hosts -f supermin.d/base.tar 2>/dev/null; gzip -n9 supermin.d/base.tar
|
||||
touch $@
|
||||
|
||||
clean-supermin-appliance:
|
209
use-fuse3-for-build.patch
Normal file
209
use-fuse3-for-build.patch
Normal file
@@ -0,0 +1,209 @@
|
||||
References: bsc#1242082 - libguestfs: migration to fuse 3 and
|
||||
deprecation of fuse (1)
|
||||
See also spec file changes to use fuse3
|
||||
|
||||
Index: libguestfs-1.55.13/m4/guestfs-fuse.m4
|
||||
===================================================================
|
||||
--- libguestfs-1.55.13.orig/m4/guestfs-fuse.m4
|
||||
+++ libguestfs-1.55.13/m4/guestfs-fuse.m4
|
||||
@@ -21,7 +21,7 @@ AC_ARG_ENABLE([fuse],
|
||||
[],
|
||||
[enable_fuse=yes])
|
||||
AS_IF([test "x$enable_fuse" != "xno"],[
|
||||
- PKG_CHECK_MODULES([FUSE],[fuse],[
|
||||
+ PKG_CHECK_MODULES([FUSE],[fuse3],[
|
||||
AC_SUBST([FUSE_CFLAGS])
|
||||
AC_SUBST([FUSE_LIBS])
|
||||
AC_DEFINE([HAVE_FUSE],[1],[Define to 1 if you have FUSE.])
|
||||
Index: libguestfs-1.55.13/lib/fuse.c
|
||||
===================================================================
|
||||
--- libguestfs-1.55.13.orig/lib/fuse.c
|
||||
+++ libguestfs-1.55.13/lib/fuse.c
|
||||
@@ -40,7 +40,7 @@
|
||||
#define ENOATTR ENODATA
|
||||
#endif
|
||||
|
||||
-#define FUSE_USE_VERSION 26
|
||||
+#define FUSE_USE_VERSION 30
|
||||
|
||||
#include <fuse.h>
|
||||
#include <fuse_lowlevel.h>
|
||||
@@ -115,7 +115,7 @@ copy_xattr_list (guestfs_h *g, const str
|
||||
|
||||
static int
|
||||
mount_local_readdir (const char *path, void *buf, fuse_fill_dir_t filler,
|
||||
- off_t offset, struct fuse_file_info *fi)
|
||||
+ off_t offset, struct fuse_file_info *fi, enum fuse_readdir_flags flags)
|
||||
{
|
||||
time_t now;
|
||||
size_t i;
|
||||
@@ -154,7 +154,7 @@ mount_local_readdir (const char *path, v
|
||||
* 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))
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ mount_local_readdir (const char *path, v
|
||||
}
|
||||
|
||||
static int
|
||||
-mount_local_getattr (const char *path, struct stat *statbuf)
|
||||
+mount_local_getattr (const char *path, struct stat *statbuf, struct fuse_file_info *fi)
|
||||
{
|
||||
const struct stat *buf;
|
||||
CLEANUP_FREE_STAT struct guestfs_statns *r = NULL;
|
||||
@@ -304,6 +304,7 @@ mount_local_access (const char *path, in
|
||||
struct stat statbuf;
|
||||
int r;
|
||||
struct fuse_context *fuse;
|
||||
+ struct fuse_file_info fi;
|
||||
int ok = 1;
|
||||
DECL_G ();
|
||||
DEBUG_CALL ("%s, %d", path, mask);
|
||||
@@ -311,7 +312,7 @@ mount_local_access (const char *path, in
|
||||
if (g->ml_read_only && (mask & W_OK))
|
||||
return -EROFS;
|
||||
|
||||
- r = mount_local_getattr (path, &statbuf);
|
||||
+ r = mount_local_getattr (path, &statbuf, &fi);
|
||||
if (r < 0 || mask == F_OK) {
|
||||
debug (g, "%s: mount_local_getattr returned r = %d", path, r);
|
||||
return r;
|
||||
@@ -490,7 +491,7 @@ mount_local_symlink (const char *from, c
|
||||
}
|
||||
|
||||
static int
|
||||
-mount_local_rename (const char *from, const char *to)
|
||||
+mount_local_rename (const char *from, const char *to, unsigned int flags)
|
||||
{
|
||||
int r;
|
||||
DECL_G ();
|
||||
@@ -528,7 +529,7 @@ mount_local_link (const char *from, cons
|
||||
}
|
||||
|
||||
static int
|
||||
-mount_local_chmod (const char *path, mode_t mode)
|
||||
+mount_local_chmod (const char *path, mode_t mode, struct fuse_file_info *fi)
|
||||
{
|
||||
int r;
|
||||
DECL_G ();
|
||||
@@ -546,7 +547,7 @@ mount_local_chmod (const char *path, mod
|
||||
}
|
||||
|
||||
static int
|
||||
-mount_local_chown (const char *path, uid_t uid, gid_t gid)
|
||||
+mount_local_chown (const char *path, uid_t uid, gid_t gid, struct fuse_file_info *fi)
|
||||
{
|
||||
int r;
|
||||
DECL_G ();
|
||||
@@ -564,7 +565,7 @@ mount_local_chown (const char *path, uid
|
||||
}
|
||||
|
||||
static int
|
||||
-mount_local_truncate (const char *path, off_t size)
|
||||
+mount_local_truncate (const char *path, off_t size, struct fuse_file_info *fi)
|
||||
{
|
||||
int r;
|
||||
DECL_G ();
|
||||
@@ -582,7 +583,7 @@ mount_local_truncate (const char *path,
|
||||
}
|
||||
|
||||
static int
|
||||
-mount_local_utimens (const char *path, const struct timespec ts[2])
|
||||
+mount_local_utimens (const char *path, const struct timespec ts[2], struct fuse_file_info *fi)
|
||||
{
|
||||
int r;
|
||||
time_t atsecs, mtsecs;
|
||||
@@ -1005,32 +1006,26 @@ guestfs_impl_mount_local (guestfs_h *g,
|
||||
goto arg_error;
|
||||
}
|
||||
|
||||
- debug (g, "%s: fuse_mount %s", __func__, localmountpoint);
|
||||
-
|
||||
- /* Create the FUSE mountpoint. */
|
||||
- ch = fuse_mount (localmountpoint, &args);
|
||||
- if (ch == NULL) {
|
||||
- error (g, _("fuse_mount failed: %s, see error messages above"),
|
||||
- localmountpoint);
|
||||
- fuse_opt_free_args (&args);
|
||||
- guestfs_int_free_fuse (g);
|
||||
- return -1;
|
||||
- }
|
||||
-
|
||||
- /* Set F_CLOEXEC on the channel. XXX libfuse should do this. */
|
||||
- fd = fuse_chan_fd (ch);
|
||||
- if (fd >= 0)
|
||||
- set_cloexec_flag (fd, 1);
|
||||
-
|
||||
debug (g, "%s: fuse_new", __func__);
|
||||
|
||||
/* Create the FUSE handle. */
|
||||
- g->fuse = fuse_new (ch, &args,
|
||||
+ g->fuse = fuse_new (&args,
|
||||
&mount_local_operations, sizeof mount_local_operations,
|
||||
g);
|
||||
if (!g->fuse) {
|
||||
perrorf (g, _("fuse_new: %s"), localmountpoint);
|
||||
- fuse_unmount (localmountpoint, ch);
|
||||
+ fuse_opt_free_args (&args);
|
||||
+ guestfs_int_free_fuse (g);
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ debug (g, "%s: fuse_mount %s", __func__, localmountpoint);
|
||||
+
|
||||
+ /* Create the FUSE mountpoint. */
|
||||
+ if (fuse_mount (g->fuse, localmountpoint) == -1) {
|
||||
+ error (g, _("fuse_mount failed: %s, see error messages above"),
|
||||
+ localmountpoint);
|
||||
+ fuse_destroy(g->fuse);
|
||||
fuse_opt_free_args (&args);
|
||||
guestfs_int_free_fuse (g);
|
||||
return -1;
|
||||
Index: libguestfs-1.55.13/fuse/guestmount.c
|
||||
===================================================================
|
||||
--- libguestfs-1.55.13.orig/fuse/guestmount.c
|
||||
+++ libguestfs-1.55.13/fuse/guestmount.c
|
||||
@@ -16,7 +16,7 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
-#define FUSE_USE_VERSION 26
|
||||
+#define FUSE_USE_VERSION 30
|
||||
|
||||
#include <config.h>
|
||||
|
||||
Index: libguestfs-1.55.13/fuse/guestunmount.c
|
||||
===================================================================
|
||||
--- libguestfs-1.55.13.orig/fuse/guestunmount.c
|
||||
+++ libguestfs-1.55.13/fuse/guestunmount.c
|
||||
@@ -241,7 +241,7 @@ do_fusermount (const char *mountpoint, c
|
||||
error (EXIT_FAILURE, errno, "pipe");
|
||||
|
||||
if (verbose)
|
||||
- fprintf (stderr, "%s: running: fusermount -u %s\n",
|
||||
+ fprintf (stderr, "%s: running: fusermount3 -u %s\n",
|
||||
getprogname (), mountpoint);
|
||||
|
||||
pid = fork ();
|
||||
@@ -258,7 +258,7 @@ do_fusermount (const char *mountpoint, c
|
||||
setenv ("LC_ALL", "C", 1);
|
||||
|
||||
#ifdef __linux__
|
||||
- execlp ("fusermount", "fusermount", "-u", mountpoint, NULL);
|
||||
+ execlp ("fusermount3", "fusermount3", "-u", mountpoint, NULL);
|
||||
#else
|
||||
/* use umount where fusermount is not available */
|
||||
execlp ("umount", "umount", mountpoint, NULL);
|
||||
@@ -316,7 +316,7 @@ do_fusermount (const char *mountpoint, c
|
||||
}
|
||||
|
||||
if (verbose)
|
||||
- fprintf (stderr, "%s: fusermount successful\n",
|
||||
+ fprintf (stderr, "%s: fusermount3 successful\n",
|
||||
getprogname ());
|
||||
|
||||
free (buf);
|
@@ -1,6 +1,6 @@
|
||||
--- libguestfs-1.52.0/lib/launch-direct.c.orig 2024-02-05 14:17:10.208970293 -0700
|
||||
+++ libguestfs-1.52.0/lib/launch-direct.c 2024-02-05 14:21:37.548976664 -0700
|
||||
@@ -650,7 +650,10 @@ launch_direct (guestfs_h *g, void *datav
|
||||
--- 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. */
|
||||
|
Reference in New Issue
Block a user