pcp
[Top] [All Lists]

rhel compat package disable

To: pcp developers <pcp@xxxxxxxxxxx>
Subject: rhel compat package disable
From: Martins Innus <minnus@xxxxxxxxxxx>
Date: Fri, 11 Sep 2015 11:44:24 -0400
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
Hi,
ÂÂÂ Any thoughts on providing something like this in the rpm build process:

diff --git a/build/rpm/pcp.spec.in b/build/rpm/pcp.spec.in
index dcb13a2..8cc0501 100644
--- a/build/rpm/pcp.spec.in
+++ b/build/rpm/pcp.spec.in
@@ -11,7 +11,7 @@ Distribution: @package_distribution@
 %if 0%{?fedora} > 22 || 0%{?rhel} > 7
 %global with_compat 0
 %else
-%global with_compat 1
+%global with_compat 0%{!?_without_compat:1}
 %endif
 BuildRequires: procps bison flex
 BuildRequires: ncurses-devel



Because without something like this, I can't find a way to build pcp without compat packages on RHEL7. So for instance, without the ability to override this, the following occurs on a RHEL 7 system with no pcp previously installed:


[vagrant@centos7 rpm]$ sudo rpm -ivh pcp-3.10.7-1.x86_64.rpm pcp-libs-devel-3.10.7-1.x86_64.rpm pcp-libs-3.10.7-1.x86_64.rpm pcp-conf-3.10.7-1.x86_64.rpm perl-PCP-* python-pcp-3.10.7-1.x86_64.rpm pcp-pmda-slurm-3.10.7-1.x86_64.rpm
error: Failed dependencies:
ÂÂÂ pcp-compat is needed by pcp-3.10.7-1.x86_64


That is, I can't figure out a way to do a minimal install. With that patch, and the appropriate setting in the pmmacros file, all works well:


[vagrant@centos7 rpm]$ more ~/.rpmmacros
%_without_compat 1

[vagrant@centos7 rpm]$ sudo rpm -ivh pcp-3.10.7-1.x86_64.rpm pcp-libs-devel-3.10.7-1.x86_64.rpm pcp-libs-3.10.7-1.x86_64.rpm pcp-conf-3.10.7-1.x86_64.rpm perl-PCP-* python-pcp-3.10.7-1.x86_64.rpm pcp-pmda-slurm-3.10.7-1.x86_64.rpm
Preparing...ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ################################# [100%]
Updating / installing...
ÂÂ 1:pcp-conf-3.10.7-1ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ################################# [ 10%]
ÂÂ 2:pcp-libs-3.10.7-1ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ################################# [ 20%]
ÂÂ 3:pcp-3.10.7-1ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ################################# [ 30%]
ÂÂ 4:perl-PCP-PMDA-3.10.7-1ÂÂÂÂÂÂÂÂÂÂ ################################# [ 40%]
ÂÂ 5:pcp-pmda-slurm-3.10.7-1ÂÂÂÂÂÂÂÂÂ ################################# [ 50%]
ÂÂ 6:pcp-libs-devel-3.10.7-1ÂÂÂÂÂÂÂÂÂ ################################# [ 60%]
ÂÂ 7:perl-PCP-LogImport-3.10.7-1ÂÂÂÂÂ ################################# [ 70%]
ÂÂ 8:perl-PCP-LogSummary-3.10.7-1ÂÂÂÂ ################################# [ 80%]
ÂÂ 9:perl-PCP-MMV-3.10.7-1ÂÂÂÂÂÂÂÂÂÂÂ ################################# [ 90%]
 10:python-pcp-3.10.7-1 ################################# [100%]


Is there a different way to do a minimal install?

Thanks

Martins

<Prev in Thread] Current Thread [Next in Thread>