[packages/libguestfs] initial support for pld appliance

atler atler at pld-linux.org
Mon Jun 26 14:15:21 CEST 2023


commit bde17f446e0b847817cbef6f79014b31c870ca55
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jun 26 14:14:21 2023 +0200

    initial support for pld appliance

 appliance-pld.patch | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 libguestfs.spec     |  4 +++-
 2 files changed, 55 insertions(+), 1 deletion(-)
---
diff --git a/libguestfs.spec b/libguestfs.spec
index b55dbc9..bb04399 100644
--- a/libguestfs.spec
+++ b/libguestfs.spec
@@ -47,6 +47,7 @@ Patch0:		ncurses.patch
 Patch1:		augeas-libxml2.patch
 Patch2:		%{name}-completionsdir.patch
 Patch3:		x32.patch
+Patch4:		appliance-pld.patch
 URL:		https://libguestfs.org/
 BuildRequires:	acl-devel
 BuildRequires:	augeas-devel >= 1.2.0
@@ -100,7 +101,7 @@ BuildRequires:	xz-devel
 BuildRequires:	yara-devel >= 4.0.0
 BuildRequires:	zstd
 %if %{with appliance}
-BuildRequires:	supermin >= 5.1.18
+BuildRequires:	supermin >= 5.2.2-2
 %endif
 %if %{with erlang}
 # erl_interface package
@@ -456,6 +457,7 @@ Bashowe uzupełnianie argumentów dla narzędzi libguestfs.
 %ifarch x32
 %patch3 -p1
 %endif
+%patch4 -p1
 
 %build
 # preserve dir across libtoolize
diff --git a/appliance-pld.patch b/appliance-pld.patch
new file mode 100644
index 0000000..614f964
--- /dev/null
+++ b/appliance-pld.patch
@@ -0,0 +1,52 @@
+--- libguestfs-1.50.1.orig/m4/guestfs-appliance.m4	2023-02-20 13:08:27.926251990 +0100
++++ libguestfs-1.50.1/m4/guestfs-appliance.m4	2023-06-24 11:33:37.996124936 +0200
+@@ -129,7 +129,7 @@
+     AC_SUBST([DISTRO])
+ fi
+ AM_CONDITIONAL([HAVE_RPM],
+-    [AS_CASE([$DISTRO], [REDHAT | SUSE | OPENMANDRIVA | MAGEIA ], [true],
++    [AS_CASE([$DISTRO], [REDHAT | SUSE | OPENMANDRIVA | MAGEIA | PLD ], [true],
+                         [*], [false])])
+ AM_CONDITIONAL([HAVE_DPKG],
+     [AS_CASE([$DISTRO], [DEBIAN | UBUNTU ], [true],
+--- libguestfs-1.50.1.orig/appliance/packagelist.in	2023-02-21 21:39:30.320831356 +0100
++++ libguestfs-1.50.1/appliance/packagelist.in	2023-06-25 20:41:33.719990490 +0200
+@@ -214,6 +214,27 @@
+   zstd
+ )
+ 
++ifelse(PLD,1,
++  cryptsetup
++  dhcp-client
++  grub2
++  iproute2
++  iputils
++  kernel
++  libldm
++  nilfs-utils
++  ntfsprogs
++  ntfs-3g
++  openssh-clients
++  policycoreutils
++  reiserfsprogs
++  rpm-lib
++  systemd              dnl for /sbin/reboot and udevd
++  vim-light
++  xz
++  zstd
++)
++
+ include(guestfsd.deps)
+ 
+ acl
+@@ -290,6 +311,10 @@
+   qemu-img
+   which
+ )
++ifelse(PLD,1,
++  qemu-img
++  which
++)
+ curl
+ kpartx
+ dnl (virt-dib) tools optionally used for elements
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libguestfs.git/commitdiff/bde17f446e0b847817cbef6f79014b31c870ca55



More information about the pld-cvs-commit mailing list