Accepting request 919270 from Virtualization

Update to libguestfs version 1.44.2

OBS-URL: https://build.opensuse.org/request/show/919270
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libguestfs?expand=0&rev=77
This commit is contained in:
Dominique Leuenberger 2021-09-15 20:51:35 +00:00 committed by Git OBS Bridge
commit 3cc5a61970
19 changed files with 454 additions and 49 deletions

View File

@ -37,10 +37,10 @@ libvirt URLs.
create mode 100644 common/utils/libxml2-utils.c
create mode 100644 common/utils/libxml2-utils.h
Index: libguestfs-1.43.2/common/mlxml/Makefile.am
Index: libguestfs-1.44.2/common/mlxml/Makefile.am
===================================================================
--- libguestfs-1.43.2.orig/common/mlxml/Makefile.am
+++ libguestfs-1.43.2/common/mlxml/Makefile.am
--- libguestfs-1.44.2.orig/common/mlxml/Makefile.am
+++ libguestfs-1.44.2/common/mlxml/Makefile.am
@@ -54,6 +54,7 @@ libmlxml_a_CPPFLAGS = \
-I. \
-I$(top_builddir) \
@ -49,10 +49,10 @@ Index: libguestfs-1.43.2/common/mlxml/Makefile.am
-I$(shell $(OCAMLC) -where)
libmlxml_a_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
Index: libguestfs-1.43.2/common/mlxml/xml-c.c
Index: libguestfs-1.44.2/common/mlxml/xml-c.c
===================================================================
--- libguestfs-1.43.2.orig/common/mlxml/xml-c.c
+++ libguestfs-1.43.2/common/mlxml/xml-c.c
--- libguestfs-1.44.2.orig/common/mlxml/xml-c.c
+++ libguestfs-1.44.2/common/mlxml/xml-c.c
@@ -27,17 +27,21 @@
#include <stdlib.h>
#include <string.h>
@ -133,19 +133,19 @@ Index: libguestfs-1.43.2/common/mlxml/xml-c.c
+ xmlFreeURI (uri);
CAMLreturn (rv);
}
Index: libguestfs-1.43.2/common/mlxml/xml.ml
Index: libguestfs-1.44.2/common/mlxml/xml.ml
===================================================================
--- libguestfs-1.43.2.orig/common/mlxml/xml.ml
+++ libguestfs-1.43.2/common/mlxml/xml.ml
--- libguestfs-1.44.2.orig/common/mlxml/xml.ml
+++ libguestfs-1.44.2/common/mlxml/xml.ml
@@ -162,3 +162,4 @@ type uri = {
}
external parse_uri : string -> uri = "mllib_xml_parse_uri"
+external parse_nonstandard_uri : string -> uri = "mllib_xml_parse_nonstandard_uri"
Index: libguestfs-1.43.2/common/mlxml/xml.mli
Index: libguestfs-1.44.2/common/mlxml/xml.mli
===================================================================
--- libguestfs-1.43.2.orig/common/mlxml/xml.mli
+++ libguestfs-1.43.2/common/mlxml/xml.mli
--- libguestfs-1.44.2.orig/common/mlxml/xml.mli
+++ libguestfs-1.44.2/common/mlxml/xml.mli
@@ -115,3 +115,7 @@ val parse_uri : string -> uri
Note this is different from the {!URI} module which is specialized
for parsing the [-a] parameter on the command line. This function
@ -154,10 +154,10 @@ Index: libguestfs-1.43.2/common/mlxml/xml.mli
+val parse_nonstandard_uri : string -> uri
+(** Similar to {!parse_uri} but only for use with our non-standard
+ URIs. See [guestfs_int_parse_nonstandard_uri] in [common/utils]. *)
Index: libguestfs-1.43.2/common/options/uri.c
Index: libguestfs-1.44.2/common/options/uri.c
===================================================================
--- libguestfs-1.43.2.orig/common/options/uri.c
+++ libguestfs-1.43.2/common/options/uri.c
--- libguestfs-1.44.2.orig/common/options/uri.c
+++ libguestfs-1.44.2/common/options/uri.c
@@ -38,6 +38,7 @@
#include "guestfs.h"
@ -178,13 +178,13 @@ Index: libguestfs-1.43.2/common/options/uri.c
getprogname (), arg);
return -1;
}
Index: libguestfs-1.43.2/common/utils/Makefile.am
Index: libguestfs-1.44.2/common/utils/Makefile.am
===================================================================
--- libguestfs-1.43.2.orig/common/utils/Makefile.am
+++ libguestfs-1.43.2/common/utils/Makefile.am
@@ -28,12 +28,15 @@ libutils_la_SOURCES = \
libxml2-cleanups.c \
--- libguestfs-1.44.2.orig/common/utils/Makefile.am
+++ libguestfs-1.44.2/common/utils/Makefile.am
@@ -29,12 +29,15 @@ libutils_la_SOURCES = \
libxml2-writer-macros.h \
pcre2-cleanups.c \
stringlists-utils.c \
+ libxml2-utils.c \
+ libxml2-utils.h \
@ -199,10 +199,10 @@ Index: libguestfs-1.43.2/common/utils/Makefile.am
libutils_la_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
$(GCC_VISIBILITY_HIDDEN) \
Index: libguestfs-1.43.2/common/utils/libxml2-utils.c
Index: libguestfs-1.44.2/common/utils/libxml2-utils.c
===================================================================
--- /dev/null
+++ libguestfs-1.43.2/common/utils/libxml2-utils.c
+++ libguestfs-1.44.2/common/utils/libxml2-utils.c
@@ -0,0 +1,178 @@
+/* libguestfs
+ * Copyright (C) 2017 Red Hat Inc.
@ -382,10 +382,10 @@ Index: libguestfs-1.43.2/common/utils/libxml2-utils.c
+
+ return out;
+}
Index: libguestfs-1.43.2/common/utils/libxml2-utils.h
Index: libguestfs-1.44.2/common/utils/libxml2-utils.h
===================================================================
--- /dev/null
+++ libguestfs-1.43.2/common/utils/libxml2-utils.h
+++ libguestfs-1.44.2/common/utils/libxml2-utils.h
@@ -0,0 +1,27 @@
+/* libguestfs
+ * Copyright (C) 2017 Red Hat Inc.

View File

@ -0,0 +1,42 @@
Subject: ocaml/examples: Link examples to gnulib
From: Richard W.M. Jones rjones@redhat.com Sat Sep 11 09:36:08 2021 +0100
Date: Sat Sep 11 09:36:08 2021 +0100:
Git: 489b14b75e5f30010d8a8c8d3a10ecc52b629563
It's unclear why exactly the OCaml library is using replacement
symbols, but it is so we need gnulib. Note this only applies in the
stable-1.44 branch since upstream we have finally got rid of gnulib,
because of exactly these kinds of problems that it causes everyone.
ocamlfind ocamlopt -cclib -L../../lib/.libs -package unix -linkpkg \
-warn-error A -I .. mlguestfs.cmxa create_disk.ml -o create_disk
../libmlguestfs.a(libguestfsocaml_a-guestfs-c.o): In function `guestfs_finalize':
/home/rjones/d/libguestfs-1.44/ocaml/guestfs-c.c:86: undefined reference to `rpl_free'
/home/rjones/d/libguestfs-1.44/ocaml/guestfs-c.c:88: undefined reference to `rpl_free'
../libmlguestfs.a(libguestfsocaml_a-guestfs-c.o): In function `guestfs_int_ocaml_set_event_callback':
/home/rjones/d/libguestfs-1.44/ocaml/guestfs-c.c:239: undefined reference to `rpl_free'
../libmlguestfs.a(libguestfsocaml_a-guestfs-c.o): In function `guestfs_int_ocaml_delete_event_callback':
/home/rjones/d/libguestfs-1.44/ocaml/guestfs-c.c:266: undefined reference to `rpl_free'
../libmlguestfs.a(libguestfsocaml_a-guestfs-c.o): In function `guestfs_int_ocaml_event_to_string':
/home/rjones/d/libguestfs-1.44/ocaml/guestfs-c.c:290: undefined reference to `rpl_free'
../libmlguestfs.a(libguestfsocaml_a-guestfs-c-actions.o):/home/rjones/d/libguestfs-1.44/ocaml/guestfs-c-actions.c:1188: more undefined references to `rpl_free' follow
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
make[2]: *** [Makefile:2272: create_disk] Error 2
diff --git a/ocaml/examples/Makefile.am b/ocaml/examples/Makefile.am
index 19cbebdf9..d8c3dd4c5 100644
--- a/ocaml/examples/Makefile.am
+++ b/ocaml/examples/Makefile.am
@@ -48,7 +48,9 @@ if HAVE_OCAML
noinst_SCRIPTS = create_disk debug_logging inspect_vm
-OCAMLFINDFLAGS = -cclib -L$(top_builddir)/lib/.libs
+OCAMLFINDFLAGS = \
+ -cclib -L$(top_builddir)/lib/.libs \
+ -cclib -L$(top_builddir)/gnulib/lib/.libs -cclib -lgnu
if HAVE_OCAMLOPT
create_disk: create_disk.ml

View File

@ -0,0 +1,55 @@
Subject: customize, resize, sparsify, sysprep: Link explicitly with pthread
From: Richard W.M. Jones rjones@redhat.com Thu Mar 4 11:57:44 2021 +0000
Date: Sat Sep 11 09:42:12 2021 +0100:
Git: 68a02c2f6c7b4243ecb298c0d9539f0fc51a52ce
Cherry picked from guestfs-tools commit 87543dad61.
diff --git a/customize/Makefile.am b/customize/Makefile.am
index c926687b3..fb418d7bf 100644
--- a/customize/Makefile.am
+++ b/customize/Makefile.am
@@ -169,6 +169,7 @@ OCAMLLINKFLAGS = \
$(LINK_CUSTOM_OCAMLC_ONLY)
OCAMLCLIBS = \
+ -pthread -lpthread \
-lutils \
$(LIBTINFO_LIBS) \
$(LIBCRYPT_LIBS) \
diff --git a/resize/Makefile.am b/resize/Makefile.am
index fa88cc634..936d2b05e 100644
--- a/resize/Makefile.am
+++ b/resize/Makefile.am
@@ -72,6 +72,7 @@ OCAMLPACKAGES += -package gettext-stub
endif
OCAMLCLIBS = \
+ -pthread -lpthread \
-lprogress \
-lutils \
$(LIBTINFO_LIBS) \
diff --git a/sparsify/Makefile.am b/sparsify/Makefile.am
index fa964e8af..4d1af85d6 100644
--- a/sparsify/Makefile.am
+++ b/sparsify/Makefile.am
@@ -80,6 +80,7 @@ OCAMLPACKAGES += -package gettext-stub
endif
OCAMLCLIBS = \
+ -pthread -lpthread \
-lprogress \
-lutils \
$(LIBTINFO_LIBS) \
diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am
index 69bb92820..250c74913 100644
--- a/sysprep/Makefile.am
+++ b/sysprep/Makefile.am
@@ -129,6 +129,7 @@ OCAMLPACKAGES += -package gettext-stub
endif
OCAMLCLIBS = \
+ -pthread -lpthread \
-lvisit \
-lstructs \
-lutils \

View File

@ -0,0 +1,31 @@
Subject: appliance: enable bash's Process Substitution feature
From: Olaf Hering olaf@aepfle.de Wed Sep 15 12:20:42 2021 +0200
Date: Wed Sep 15 12:37:08 2021 +0100:
Git: 9db0c98c99090e601d856c6795544f6967e6155f
bash can read input from a spawned process, and even provide input to
such process. This feature relies on /dev/fd/ being present. In the
past udev silently created this symlink, so this bash feature worked
more or less by accident. With recent systemd versions, such as 246
which is included in Leap 15.3, the symlink is not created anymore. As
a result scripts, such as /sbin/dhclient-script, fail to work
properly.
This symlink should have been created in version 1 of this variant of /init.
https://bugzilla.opensuse.org/show_bug.cgi?id=1190501
Signed-off-by: Olaf Hering <olaf@aepfle.de>
diff --git a/appliance/init b/appliance/init
index b1c4d09ea..cdc39c3b9 100755
--- a/appliance/init
+++ b/appliance/init
@@ -72,6 +72,7 @@ fi
# devtmpfs is required since udev 176
mount -t devtmpfs /dev /dev
+ln -s /proc/self/fd /dev/fd
mkdir -p /dev/pts
mount -t devpts /dev/pts /dev/pts
mkdir -p /dev/shm

View File

@ -1,8 +1,20 @@
Index: libguestfs-1.42.0/appliance/init
Index: libguestfs-1.44.2/appliance/init
===================================================================
--- libguestfs-1.42.0.orig/appliance/init
+++ libguestfs-1.42.0/appliance/init
@@ -245,7 +245,8 @@ else
--- libguestfs-1.44.2.orig/appliance/init
+++ libguestfs-1.44.2/appliance/init
@@ -122,8 +122,10 @@ if test "$guestfs_network" = 1; then
rm -f /etc/dhcp/dhclient-enter-hooks.d/resolved
if dhclient --version >/dev/null 2>&1; then
dhclient $iface
- else
+ elif dhcpcd --version ; then
dhcpcd $iface
+ elif busybox udhcpc --help ; then
+ busybox udhcpc --quit -v
fi
fi
@@ -240,7 +242,8 @@ else
echo "Note: The contents of / (root) are the rescue appliance."
if ! test -d "/sysroot/dev"; then
echo "You have to mount the guests partitions under /sysroot"

View File

@ -0,0 +1,29 @@
Subject: appliance: add reboot and netconfig for SUSE
From: Olaf Hering olaf@aepfle.de Tue Sep 14 17:57:43 2021 +0200
Date: Tue Sep 14 20:49:02 2021 +0100:
Git: c0de4de9029c3e483f738a0f80a2c5066c6532db
systemd-sysvinit contains the reboot command, which is used to
properly stop the VM. This was required by other packages, and as a
result always available. Since Leap 15.3 it will not be installed, and
as a result the VM will just panic because /init died.
If the appliance is started with --network, dhclient will run
/usr/sbin/dhclient-script, which in turn may call /sbin/netconfig to
update /etc/resolv.conf. Install sysconfig-netconfig to make sure DNS
resolving actually works.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
--- a/appliance/packagelist.in
+++ b/appliance/packagelist.in
@@ -133,7 +133,9 @@ ifelse(SUSE,1,
ntfs-3g
reiserfs
squashfs
+ sysconfig-netconfig
systemd
+ systemd-sysvinit
vim
xz
)

View File

@ -0,0 +1,26 @@
Subject: daemon: Build with -pthread
From: Richard W.M. Jones rjones@redhat.com Sat Sep 11 09:27:17 2021 +0100
Date: Sat Sep 11 09:27:17 2021 +0100:
Git: e26cfa445a1947503a03c55d8d65263530747062
The daemon failed to link with glibc < 2.34 because we didn't include
the separate pthread library. Adding -pthread fixes this.
Note this change was also make upstream in commit 733d2182b6 ("Remove
the tools.") although I think either by accident or unrelated.
Reported-by: Toolybird
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2003326
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 86aa920e8..b670bb1e2 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -255,6 +255,7 @@ guestfsd_CPPFLAGS = \
-I$(top_srcdir)/common/utils \
-I$(top_builddir)/common/utils
guestfsd_CFLAGS = \
+ -pthread \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
$(RPC_CFLAGS) \
$(AUGEAS_CFLAGS) \

View File

@ -0,0 +1,77 @@
Subject: appliance: reorder mounting of special filesystems in init
From: Olaf Hering olaf@aepfle.de Wed Sep 15 12:58:23 2021 +0200
Date: Wed Sep 15 12:37:08 2021 +0100:
Git: f47e0bb6725434778384cf79ba3b08610f8c3796
Make sure proc and dev are available early.
No change in behavior intended.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
diff --git a/appliance/init b/appliance/init
index cdc39c3b9..7076821d2 100755
--- a/appliance/init
+++ b/appliance/init
@@ -27,12 +27,12 @@ for d in /lib64 /lib; do
fi
done
-mkdir -p /sysroot
-
-# Mount /proc.
-if [ ! -d /proc ]; then rm -f /proc; fi
-mkdir -p /proc
+mkdir -p /proc /sys
mount -t proc /proc /proc
+mount -t sysfs /sys /sys
+# devtmpfs is required since udev 176
+mount -t devtmpfs /dev /dev
+ln -s /proc/self/fd /dev/fd
# Parse the kernel command line early (must be after /proc is mounted).
cmdline=$(</proc/cmdline)
@@ -54,34 +54,28 @@ if [[ $cmdline == *guestfs_boot_analysis=1* ]]; then
guestfs_boot_analysis=1
fi
-# Mount the other special filesystems.
-if [ ! -d /sys ]; then rm -f /sys; fi
-mkdir -p /sys
-mount -t sysfs /sys /sys
+mkdir -p /dev/pts /dev/shm
+mount -t devpts /dev/pts /dev/pts
+mount -t tmpfs -o mode=1777 shmfs /dev/shm
+
+mkdir -p /sysroot
+
# taken from initramfs-tools/init --Hilko Bengen
mkdir -p /run
mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
mkdir -p /run/lock
ln -s ../run/lock /var/lock
+if [[ $cmdline == *selinux=1* ]]; then
+ mount -t selinuxfs none /sys/fs/selinux
+fi
+
# On Fedora 23, util-linux creates /etc/mtab in %post .. stupid
# and e2fsprogs fails if the link doesn't exist .. stupid stupid
if ! test -e /etc/mtab; then
ln -s /proc/mounts /etc/mtab
fi
-# devtmpfs is required since udev 176
-mount -t devtmpfs /dev /dev
-ln -s /proc/self/fd /dev/fd
-mkdir -p /dev/pts
-mount -t devpts /dev/pts /dev/pts
-mkdir -p /dev/shm
-mount -t tmpfs -o mode=1777 shmfs /dev/shm
-
-if [[ $cmdline == *selinux=1* ]]; then
- mount -t selinuxfs none /sys/fs/selinux
-fi
-
# Static nodes must happen before udev is started.
# Set up kmod static-nodes (RHBZ#1011907).

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:72b7dcdd32da1c17c932cf5a0a70b3bd68bc93e94828ad66a539f2e616adb025
size 23798268

3
libguestfs-1.44.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ea0cd73eb6e5186b14ae48139f16f8701866ad8fb4954dea9c3e4aaa79a1bb9
size 23854577

View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJFBAABCAAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAmE3zKERHHJpY2hAYW5u
ZXhpYS5vcmcACgkQkXOPc+G3aKBGyRAAiV+CFfaAi06iqJ6H9YTfNOB/wK6XPPmu
DG+sLCXBVR/YYe93Myt/T+6+6U9Ue7d1BTGQ6UhHc/E8IbnFPWNi/8tdQSL9W+Nm
KEkfZNDROnnO1vHX8nR/rAuwdcDCHZR5suh58K8TvY/1+i362zNFxY/YMFujExK5
z4kCcP9GjEECoPgvu/RtOJm9YrRdbF0QzF9Fu7ZqhQFbaMkCJg9IDB/mSz5t/mWE
e08rHqwqYsygBCfHCX9lALhNWQO0x/WX2QZrgbcIgMijgWrmTq5czTwkWGPG/CMO
+8tkyF6r1HKHtpz1UsIXsHflOCVk0f0twTncYYltifecZq2sR9UODLBgRPMaTSYa
TLz2jcuSd98yFmkSORr8JNIOGyX8jatFLQT85PqsDZ7MIIilMTT27rYQkY5/EJcN
Yetn3mc+hsbXYjk/eCeZvPVnkD98JQaOlW3+lybTkdS9HWNc3lzaS1M64OSYOzMo
PQL9OAm+ScLzQvvefCKGcLVUGoRvmcabvkg8buYRZb2WuM2uY+xHsLWGWLROxAwa
cI9N+bvD1qyDoze3yjti0WWwBDxCYG/Wz/bJpuwawDx60VEyFUARyk4182nCz2E/
PE+t2z0xLYsbj3bT1grI+Ay8EJEP0u6R88PO7CW7l2jZUYpZNHyFlOCgyG3nB1LF
u4tbE+OLPyA=
=06k/
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,53 @@
-------------------------------------------------------------------
Wed Sep 15 10:31:29 MDT 2021 - carnold@suse.com
- bsc#1190501 - virt-builder fails to install packages when
building an image
9db0c98c-appliance-enable-bashs-Process-Substitution-feature.patch
- Upstream bug fixes
c0de4de9-appliance-add-reboot-and-netconfig-for-SUSE.patch
f47e0bb6-appliance-reorder-mounting-of-special-filesystems-in-init.patch
-------------------------------------------------------------------
Mon Sep 13 16:34:08 MDT 2021 - carnold@suse.com
- Newer cpio versions must be told to extract over symlinks
libguestfs.test.simple.create-opensuse-guest-crypt-on-lvm.sh
libguestfs.test.simple.create-opensuse-guest.sh
libguestfs.test.simple.create-sles12-guest-crypt-on-lvm.sh
libguestfs.test.simple.create-sles12-guest.sh
- Allow the use busybox dhcp client
appliance.patch
netconfig.patch
-------------------------------------------------------------------
Mon Sep 13 15:02:23 MDT 2021 - carnold@suse.com
- Update to version 1.44.2
makefile-ocaml-find-guestfs.patch
* Port libguestfs to use pcre2 instead of pcre
* inspection: More reliable detection of Linux split /usr configurations
* python: Relicense setup.py to LGPLv2+ (originally GPLv2+)
* lib: qemu: Don't use -enable-fips option.
* rust: Fix deprecated use of panic!(format!(...))
* point users to Libera Chat rather than FreeNode
* python: Don't leak fields when creating Python structs
* appliance: Add IBM850 iconv converter for syslinux
* launch: board model for RISC-V
* lib: Add osinfo information for Windows Server 2022 Datacenter
* lib: Autodetect backing format for qemu-img create -b
* appliance: Fix searching for shared libraries on usr-merged Debian systems
* appliance: Add mount package for Debian
* m4/guestfs-appliance.m4: Add support for Alma and Cloud Linux
* daemon/luks.c: Ignore bogus GCC -fanalyzer double-free warning
* daemon/xattr.c: Increase size of temporary buffer for %zu
* daemon/utils.c: Fix potential unbounded stack usage
* Various other bug fixes
- Upstream bug fixes post 1.44.2
e26cfa44-daemon-Build-with--pthread.patch
489b14b7-ocaml-examples-Link-examples-to-gnulib.patch
68a02c2f-customize--resize--sparsify--sysprep-Link-explicitly-with-pthread.patch
-------------------------------------------------------------------
Mon Jul 19 01:01:01 UTC 2021 - ohering@suse.de
@ -49,6 +99,11 @@ Tue Apr 13 13:13:13 UTC 2021 - ohering@suse.de
- Remove ocaml_native_compiler conditional
build native target unconditionally
-------------------------------------------------------------------
Fri Apr 9 09:09:09 UTC 2021 - ohering@suse.de
- Require current ocaml-rpm-macros
-------------------------------------------------------------------
Tue Jan 12 05:38:44 MST 2021 - carnold@suse.com
@ -82,6 +137,13 @@ Mon Jan 11 11:42:51 MST 2021 - carnold@suse.com
bfd08867-golang-Fix-path-to-include-guestfs.h..patch
dbfab7d3-build-fix-includedir-in-uninstalled-libguestfs.pc.patch
-------------------------------------------------------------------
Thu Nov 5 14:57:40 MST 2020 - carnold@suse.com
- bsc#1178495 - Leap Gap: Libguestfs.spec contains the is_opensuse
macro
libguestfs.spec
-------------------------------------------------------------------
Tue Oct 20 14:01:16 MDT 2020 - carnold@suse.com

View File

@ -18,7 +18,7 @@
# needsbinariesforbuild
Version: 1.44.1
Version: 1.44.2
Release: 0
%{?ocaml_preserve_bytecode}
@ -99,13 +99,13 @@ BuildRequires: perl(Module::Build)
BuildRequires: db48-utils
BuildRequires: dhcp-client
BuildRequires: libjansson-devel
BuildRequires: pcre-devel
BuildRequires: pcre2-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(python3)
BuildRequires: qemu-tools
BuildRequires: readline-devel
BuildRequires: supermin >= 5.1.6
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(python3)
# Required to build tools, its independent from bindings
BuildRequires: glib2-devel
BuildRequires: ocaml >= 4.01
@ -141,6 +141,14 @@ Summary: Compatibility package for guestfs-tools
# Upstream patches
License: GPL-2.0-only
# Upstream
Patch1: e26cfa44-daemon-Build-with--pthread.patch
Patch2: 489b14b7-ocaml-examples-Link-examples-to-gnulib.patch
Patch3: 68a02c2f-customize--resize--sparsify--sysprep-Link-explicitly-with-pthread.patch
Patch4: c0de4de9-appliance-add-reboot-and-netconfig-for-SUSE.patch
Patch5: 9db0c98c-appliance-enable-bashs-Process-Substitution-feature.patch
Patch6: f47e0bb6-appliance-reorder-mounting-of-special-filesystems-in-init.patch
# Pending upstram review
Patch50: 0001-Introduce-a-wrapper-around-xmlParseURI.patch
Patch51: 0002-common-extract-UTF-8-conversion-function.patch
@ -149,8 +157,10 @@ Patch52: 0003-inspector-rpm-summary-and-description-may-not-be-utf.patch
Patch100: appliance.patch
Patch101: netconfig.patch
Patch102: libguestfs.env.patch
Patch103: makefile-ocaml-find-guestfs.patch
Source0: https://download.libguestfs.org/1.44-stable/libguestfs-%{version}.tar.gz
Source1: https://download.libguestfs.org/1.44-stable/libguestfs-%{version}.tar.gz.sig
Source3: libguestfs.rpmlintrc
Source100: mount-rootfs-and-chroot.sh
Source101: README

View File

@ -62,7 +62,7 @@ _exit() {
}
_unrpm() {
CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories"
CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories --extract-over-symlinks"
FILES="$@"
for f in $FILES; do
echo -ne "$f:\t"

View File

@ -59,7 +59,7 @@ _exit() {
}
_unrpm() {
CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories"
CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories --extract-over-symlinks"
FILES="$@"
for f in $FILES; do
echo -ne "$f:\t"

View File

@ -63,7 +63,7 @@ _exit() {
}
_unrpm() {
CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories"
CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories --extract-over-symlinks"
FILES="$@"
for f in $FILES; do
echo -ne "$f:\t"

View File

@ -60,7 +60,7 @@ _exit() {
}
_unrpm() {
CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories"
CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories --extract-over-symlinks"
FILES="$@"
for f in $FILES; do
echo -ne "$f:\t"

View File

@ -0,0 +1,44 @@
--- libguestfs-1.44.2/common/mlprogress/Makefile.am.orig 2021-09-14 10:01:16.710596638 -0600
+++ libguestfs-1.44.2/common/mlprogress/Makefile.am 2021-09-14 10:01:25.526596848 -0600
@@ -67,7 +67,7 @@ BOBJECTS = $(SOURCES_ML:.ml=.cmo)
XOBJECTS = $(BOBJECTS:.cmo=.cmx)
OCAMLPACKAGES = \
- -package str,unix,guestfs \
+ -package str,unix \
-I $(top_builddir)/common/utils/.libs \
-I $(top_builddir)/ocaml \
-I $(builddir)
--- libguestfs-1.44.2/common/mlvisit/Makefile.am.orig 2021-09-14 10:37:51.790648944 -0600
+++ libguestfs-1.44.2/common/mlvisit/Makefile.am 2021-09-14 10:44:53.878659002 -0600
@@ -68,7 +68,7 @@ BOBJECTS = $(SOURCES_ML:.ml=.cmo)
XOBJECTS = $(BOBJECTS:.cmo=.cmx)
OCAMLPACKAGES = \
- -package str,unix,guestfs \
+ -package str,unix \
-I $(top_builddir)/common/mlutils \
-I $(top_builddir)/ocaml \
-I $(top_builddir)/common/utils/.libs \
--- libguestfs-1.44.2/common/mltools/Makefile.am.orig 2021-09-14 10:38:03.082649213 -0600
+++ libguestfs-1.44.2/common/mltools/Makefile.am 2021-09-14 10:45:08.230659344 -0600
@@ -114,7 +114,7 @@ BOBJECTS = $(SOURCES_ML:.ml=.cmo)
XOBJECTS = $(BOBJECTS:.cmo=.cmx)
OCAMLPACKAGES = \
- -package str,unix,guestfs \
+ -package str,unix \
-I $(top_builddir)/common/utils/.libs \
-I $(top_builddir)/gnulib/lib/.libs \
-I $(top_builddir)/ocaml \
--- libguestfs-1.44.2/common/mlcustomize/Makefile.am.orig 2021-09-14 10:44:24.598658304 -0600
+++ libguestfs-1.44.2/common/mlcustomize/Makefile.am 2021-09-14 10:44:35.654658567 -0600
@@ -82,7 +82,7 @@ BOBJECTS = $(SOURCES_ML:.ml=.cmo)
XOBJECTS = $(BOBJECTS:.cmo=.cmx)
OCAMLPACKAGES = \
- -package str,unix,guestfs \
+ -package str,unix \
-I $(top_builddir)/common/utils/.libs \
-I $(top_builddir)/ocaml \
-I $(top_builddir)/common/mlstdutils \

View File

@ -1,12 +1,12 @@
Index: libguestfs-1.44.0/appliance/packagelist.in
Index: libguestfs-1.44.2/appliance/packagelist.in
===================================================================
--- libguestfs-1.44.0.orig/appliance/packagelist.in
+++ libguestfs-1.44.0/appliance/packagelist.in
@@ -130,6 +130,7 @@ ifelse(SUSE,1,
ntfs-3g
reiserfs
squashfs
+ sysconfig-netconfig
systemd
vim
xz
--- libguestfs-1.44.2.orig/appliance/packagelist.in
+++ libguestfs-1.44.2/appliance/packagelist.in
@@ -118,6 +118,7 @@ ifelse(SUSE,1,
dnl It seems no other augeas package depends on it.
augeas-lenses
btrfsprogs
+ busybox
cdrkit-cdrtools-compat
cryptsetup
dhcpcd