Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libguestfs for openSUSE:Factory 
checked in at 2021-09-15 22:51:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libguestfs (Old)
 and      /work/SRC/openSUSE:Factory/.libguestfs.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libguestfs"

Wed Sep 15 22:51:35 2021 rev:77 rq:919270 version:1.44.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/libguestfs/libguestfs.changes    2021-07-27 
14:32:24.603463415 +0200
+++ /work/SRC/openSUSE:Factory/.libguestfs.new.1899/libguestfs.changes  
2021-09-15 22:51:57.394947836 +0200
@@ -1,0 +2,50 @@
+Wed Sep 15 10:31:29 MDT 2021 - carn...@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 - carn...@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 - carn...@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
+
+-------------------------------------------------------------------
@@ -52,0 +103,5 @@
+Fri Apr  9 09:09:09 UTC 2021 - oher...@suse.de
+
+- Require current ocaml-rpm-macros
+
+-------------------------------------------------------------------
@@ -83,0 +139,7 @@
+
+-------------------------------------------------------------------
+Thu Nov  5 14:57:40 MST 2020 - carn...@suse.com
+
+- bsc#1178495 - Leap Gap: Libguestfs.spec contains the is_opensuse
+  macro
+  libguestfs.spec

Old:
----
  libguestfs-1.44.1.tar.gz

New:
----
  489b14b7-ocaml-examples-Link-examples-to-gnulib.patch
  
68a02c2f-customize--resize--sparsify--sysprep-Link-explicitly-with-pthread.patch
  9db0c98c-appliance-enable-bashs-Process-Substitution-feature.patch
  c0de4de9-appliance-add-reboot-and-netconfig-for-SUSE.patch
  e26cfa44-daemon-Build-with--pthread.patch
  f47e0bb6-appliance-reorder-mounting-of-special-filesystems-in-init.patch
  libguestfs-1.44.2.tar.gz
  libguestfs-1.44.2.tar.gz.sig
  makefile-ocaml-find-guestfs.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libguestfs.spec ++++++
--- /var/tmp/diff_new_pack.elQ6hY/_old  2021-09-15 22:51:58.266948877 +0200
+++ /var/tmp/diff_new_pack.elQ6hY/_new  2021-09-15 22:51:58.266948877 +0200
@@ -18,7 +18,7 @@
 # needsbinariesforbuild
 
 
-Version:        1.44.1
+Version:        1.44.2
 Release:        0
 %{?ocaml_preserve_bytecode}
 
@@ -99,13 +99,13 @@
 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 @@
 # 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 @@
 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

++++++ 0001-Introduce-a-wrapper-around-xmlParseURI.patch ++++++
--- /var/tmp/diff_new_pack.elQ6hY/_old  2021-09-15 22:51:58.298948916 +0200
+++ /var/tmp/diff_new_pack.elQ6hY/_new  2021-09-15 22:51:58.298948916 +0200
@@ -37,10 +37,10 @@
  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 @@
        -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 @@
 +  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 @@
 +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 @@
               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 @@
  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 @@
 +
 +  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.

++++++ 489b14b7-ocaml-examples-Link-examples-to-gnulib.patch ++++++
Subject: ocaml/examples: Link examples to gnulib
From: Richard W.M. Jones rjo...@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
++++++ 
68a02c2f-customize--resize--sparsify--sysprep-Link-explicitly-with-pthread.patch
 ++++++
Subject: customize, resize, sparsify, sysprep: Link explicitly with pthread
From: Richard W.M. Jones rjo...@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 \
++++++ 9db0c98c-appliance-enable-bashs-Process-Substitution-feature.patch ++++++
Subject: appliance: enable bash's Process Substitution feature
From: Olaf Hering o...@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 <o...@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
++++++ appliance.patch ++++++
--- /var/tmp/diff_new_pack.elQ6hY/_old  2021-09-15 22:51:58.358948987 +0200
+++ /var/tmp/diff_new_pack.elQ6hY/_new  2021-09-15 22:51:58.358948987 +0200
@@ -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 guest???s partitions under /sysroot"

++++++ c0de4de9-appliance-add-reboot-and-netconfig-for-SUSE.patch ++++++
Subject: appliance: add reboot and netconfig for SUSE
From: Olaf Hering o...@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 <o...@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
 )
++++++ e26cfa44-daemon-Build-with--pthread.patch ++++++
Subject: daemon: Build with -pthread
From: Richard W.M. Jones rjo...@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) \
++++++ f47e0bb6-appliance-reorder-mounting-of-special-filesystems-in-init.patch 
++++++
Subject: appliance: reorder mounting of special filesystems in init
From: Olaf Hering o...@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 <o...@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).
++++++ libguestfs-1.44.1.tar.gz -> libguestfs-1.44.2.tar.gz ++++++
/work/SRC/openSUSE:Factory/libguestfs/libguestfs-1.44.1.tar.gz 
/work/SRC/openSUSE:Factory/.libguestfs.new.1899/libguestfs-1.44.2.tar.gz 
differ: char 16, line 1

++++++ libguestfs.test.simple.create-opensuse-guest-crypt-on-lvm.sh ++++++
--- /var/tmp/diff_new_pack.elQ6hY/_old  2021-09-15 22:51:58.470949121 +0200
+++ /var/tmp/diff_new_pack.elQ6hY/_new  2021-09-15 22:51:58.470949121 +0200
@@ -62,7 +62,7 @@
 }
 
 _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"

++++++ libguestfs.test.simple.create-opensuse-guest.sh ++++++
--- /var/tmp/diff_new_pack.elQ6hY/_old  2021-09-15 22:51:58.486949140 +0200
+++ /var/tmp/diff_new_pack.elQ6hY/_new  2021-09-15 22:51:58.486949140 +0200
@@ -59,7 +59,7 @@
 }
 
 _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"

++++++ libguestfs.test.simple.create-sles12-guest-crypt-on-lvm.sh ++++++
--- /var/tmp/diff_new_pack.elQ6hY/_old  2021-09-15 22:51:58.506949164 +0200
+++ /var/tmp/diff_new_pack.elQ6hY/_new  2021-09-15 22:51:58.506949164 +0200
@@ -63,7 +63,7 @@
 }
 
 _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"

++++++ libguestfs.test.simple.create-sles12-guest.sh ++++++
--- /var/tmp/diff_new_pack.elQ6hY/_old  2021-09-15 22:51:58.526949188 +0200
+++ /var/tmp/diff_new_pack.elQ6hY/_new  2021-09-15 22:51:58.526949188 +0200
@@ -60,7 +60,7 @@
 }
 
 _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"

++++++ makefile-ocaml-find-guestfs.patch ++++++
--- 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 \
++++++ netconfig.patch ++++++
--- /var/tmp/diff_new_pack.elQ6hY/_old  2021-09-15 22:51:58.566949236 +0200
+++ /var/tmp/diff_new_pack.elQ6hY/_new  2021-09-15 22:51:58.566949236 +0200
@@ -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

Reply via email to