Support the ID found in openSUSE Leap 15.0 in addition to the other
SUSE-related IDs. While there is already --with-distro=ID to force the
ID without using os-release, this makes it possible to build OOTB.
---
m4/guestfs-appliance.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/m4/guestfs-appliance.m4 b/m4/guestfs-appliance.m4
index 5c2bc3e8d..bcba4c1a1 100644
--- a/m4/guestfs-appliance.m4
+++ b/m4/guestfs-appliance.m4
@@ -105,7 +105,7 @@ AC_ARG_WITH([distro],
DISTRO="`. /etc/os-release && echo $ID | tr
'@<:@:lower:@:>@' '@<:@:upper:@:>@'`"
AS_CASE([$DISTRO],
[FEDORA | RHEL | CENTOS],[DISTRO=REDHAT],
- [OPENSUSE | SLED | SLES],[DISTRO=SUSE],
+ [OPENSUSE-LEAP | OPENSUSE | SLED | SLES],[DISTRO=SUSE],
[ARCH],[DISTRO=ARCHLINUX])
AC_MSG_RESULT([$DISTRO (from /etc/os-release)])
else
--
2.17.1
Richard W.M. Jones
2018-Oct-01 14:45 UTC
Re: [Libguestfs] [PATCH] build: support openSUSE Leap 15.0
On Mon, Oct 01, 2018 at 04:31:28PM +0200, Pino Toscano wrote:> Support the ID found in openSUSE Leap 15.0 in addition to the other > SUSE-related IDs. While there is already --with-distro=ID to force the > ID without using os-release, this makes it possible to build OOTB. > --- > m4/guestfs-appliance.m4 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/m4/guestfs-appliance.m4 b/m4/guestfs-appliance.m4 > index 5c2bc3e8d..bcba4c1a1 100644 > --- a/m4/guestfs-appliance.m4 > +++ b/m4/guestfs-appliance.m4 > @@ -105,7 +105,7 @@ AC_ARG_WITH([distro], > DISTRO="`. /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" > AS_CASE([$DISTRO], > [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], > - [OPENSUSE | SLED | SLES],[DISTRO=SUSE], > + [OPENSUSE-LEAP | OPENSUSE | SLED | SLES],[DISTRO=SUSE], > [ARCH],[DISTRO=ARCHLINUX]) > AC_MSG_RESULT([$DISTRO (from /etc/os-release)]) > elseACK Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Reasonably Related Threads
- [PATCH] rpm: generalize openSUSE support
- [supermin PATCH] rpm: support openSUSE Leap 15
- [PATCH] build: improve and simplify distro detection
- Re: [PATCH] appliance: read ID_LIKE from os-release as a fallback
- [PATCH v2] appliance: use ID_LIKE as a fallback for SUSE distro detection