pcp/0010-pmns-don-t-package-.NeedRebuild-for-SUSE-distros.patch
David Disseldorp 0ce8d1aab1 Accepting request 666263 from home:dmdiss:bsc1121920_add_missing_pmda_bins
- Package missing PMDA binaries; (bsc#1121920).
  + refresh 0001-Install-libraries-without-exec-permission.patch
- Don't package pmns .NeedRebuild flag; (bsc#1092160).
  + add 0010-pmns-don-t-package-.NeedRebuild-for-SUSE-distros.patch

- Upgrade to 4.3.0; (bsc#1121914).
- Refreshed patches
  0001-Install-libraries-without-exec-permission.patch
  0007-pmie-add-systemd-timers-as-cron-alternative.patch
  0008-pmlogger_daily-add-systemd-timers-as-cron-alternativ.patch
  0009-pmlogger_daily_report-add-systemd-timers-as-cron-alt.patch

OBS-URL: https://build.opensuse.org/request/show/666263
OBS-URL: https://build.opensuse.org/package/show/Base:System/pcp?expand=0&rev=68
2019-01-15 15:05:04 +00:00

57 lines
2.1 KiB
Diff

From b591bf4f9f73f11d012e40f4860a8635b4096977 Mon Sep 17 00:00:00 2001
From: David Disseldorp <ddiss@suse.de>
Date: Tue, 15 Jan 2019 01:15:45 +0100
Subject: [PATCH] pmns: don't package .NeedRebuild for SUSE distros
.NeedRebuild creation is handled by rpm scripts.
This change also fixes the target_distro configure check for modern
[open]SUSE distros, which only include /etc/os-release.
Signed-off-by: David Disseldorp <ddiss@suse.de>
---
configure | 1 +
configure.ac | 1 +
src/pmns/GNUmakefile | 2 +-
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 99e07b368..e69366f07 100755
--- a/configure
+++ b/configure
@@ -3324,6 +3324,7 @@ then
$as_echo "#define IS_LINUX 1" >>confdefs.h
test -f /etc/SuSE-release && target_distro=suse
+ grep -q 'ID_LIKE="suse"' /etc/os-release 2> /dev/null && target_distro=suse
test -f /etc/fedora-release && target_distro=fedora
test -f /etc/redhat-release && target_distro=redhat
test -f /etc/debian_version && target_distro=debian
diff --git a/configure.ac b/configure.ac
index 359ed5507..7d8082c56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -281,6 +281,7 @@ if test $target_os = linux
then
AC_DEFINE(IS_LINUX, [1], [Platform is Linux])
test -f /etc/SuSE-release && target_distro=suse
+ grep -q 'ID_LIKE="suse"' /etc/os-release 2> /dev/null && target_distro=suse
test -f /etc/fedora-release && target_distro=fedora
test -f /etc/redhat-release && target_distro=redhat
test -f /etc/debian_version && target_distro=debian
diff --git a/src/pmns/GNUmakefile b/src/pmns/GNUmakefile
index e8707a7e5..9b9458359 100644
--- a/src/pmns/GNUmakefile
+++ b/src/pmns/GNUmakefile
@@ -60,7 +60,7 @@ install: default
$(INSTALL) -m 755 Rebuild $(PMNS_VAR_DIR)/Rebuild
$(INSTALL) -m 755 Make.stdpmid $(PMNS_VAR_DIR)/Make.stdpmid
$(INSTALL) -m 644 $(STDPMID) $(PMNS_VAR_DIR)
-ifeq (, $(filter redhat debian, $(PACKAGE_DISTRIBUTION)))
+ifeq (, $(filter redhat debian suse, $(PACKAGE_DISTRIBUTION)))
$(INSTALL) -m 644 .NeedRebuild $(PMNS_VAR_DIR)/.NeedRebuild
endif
--
2.13.7