[Libguestfs] [PATCH] build: support openSUSE Leap 15.0

Pino Toscano ptoscano at redhat.com
Mon Oct 1 14:31:28 UTC 2018


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




More information about the Libguestfs mailing list