From 8c0a8a6a89660f12fa9ca1e090b0de607a6ed743 Mon Sep 17 00:00:00 2001 From: Andreas Rogge Date: Mon, 11 Nov 2019 16:00:37 +0100 Subject: [PATCH] autoconf: Backport SUSE detection from 17.2 Previously SLE 15 was misdetected which lead to problems in the RPM build process. This patch makes sure the distro is detected just like it is on 17.2 onwards. --- autoconf/bareos/os.m4 | 5 +---- configure | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/autoconf/bareos/os.m4 b/autoconf/bareos/os.m4 index 8f8e4c871a2..87f007d473d 100644 --- a/autoconf/bareos/os.m4 +++ b/autoconf/bareos/os.m4 @@ -169,10 +169,7 @@ else then LSB_DISTRIBUTOR=`lsb_release -i -s` case ${LSB_DISTRIBUTOR} in - "SUSE LINUX") - DISTNAME=suse - ;; - "openSUSE project") + *SUSE*) DISTNAME=suse ;; CentOS) diff --git a/configure b/configure index f2550522ebb..df5ad0a940d 100755 --- a/configure +++ b/configure @@ -17853,10 +17853,7 @@ else then LSB_DISTRIBUTOR=`lsb_release -i -s` case ${LSB_DISTRIBUTOR} in - "SUSE LINUX") - DISTNAME=suse - ;; - "openSUSE project") + *SUSE*) DISTNAME=suse ;; CentOS)