]> git.pld-linux.org Git - packages/libguestfs.git/commitdiff
initial support for pld appliance
authorJan Palus <atler@pld-linux.org>
Mon, 26 Jun 2023 12:14:21 +0000 (14:14 +0200)
committerJan Palus <atler@pld-linux.org>
Mon, 26 Jun 2023 12:14:21 +0000 (14:14 +0200)
appliance-pld.patch [new file with mode: 0644]
libguestfs.spec

diff --git a/appliance-pld.patch b/appliance-pld.patch
new file mode 100644 (file)
index 0000000..614f964
--- /dev/null
@@ -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
index b55dbc9eb388e15c2b6874acf350a62fc5701dc5..bb04399964da1a12982cf4e8e577f11ecbbd7777 100644 (file)
@@ -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
This page took 1.138807 seconds and 4 git commands to generate.