Hey,
Nathan Scott <nathans@xxxxxxxxxx> writes:
[...]
> Hitting a problem here when installing all ...
>
> error: Failed dependencies:
> pcp-pmda-nvidia is obsoleted by (installed) pcp-3.10.4-1.x86_64
[...]
> Not sure if there's an easy solution here, but I guess one angle of
> attack might be to use a "pcp-pmda-nvidia-gpu" package name to dodge
> the bullet entirely.
So, after messing around with this a bit today, renaming the package
worked out to be much easier. I've attached the patch that should work
directly on top of your master branch Nathan.
Cheers,
Lukas
>From 184298a60bf4588702ac89376ec7c7c9a0d957dd Mon Sep 17 00:00:00 2001
From: Lukas Berk <lberk@xxxxxxxxxx>
Date: Wed, 6 May 2015 16:35:57 -0400
Subject: [PATCH] Rename pcp-pmda-nvidia rpm to pcp-pmda-nvidia-gpu
Using the name pcp-pmda-nvidia conflicts with older pcp versions,
renaming this package avoids the 'conflicts' statements.
Signed-off-by: Lukas Berk <lberk@xxxxxxxxxx>
---
build/rpm/pcp.spec.in | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/build/rpm/pcp.spec.in b/build/rpm/pcp.spec.in
index 2fb03cc..acbe8c3 100644
--- a/build/rpm/pcp.spec.in
+++ b/build/rpm/pcp.spec.in
@@ -1159,18 +1159,18 @@ collecting metrics about filesystem mounts. The PMDA
is written in C.
# end pcp-pmda-mounts
#
-# pcp-pmda-nvidia
+# pcp-pmda-nvidia-gpu
#
-%package pmda-nvidia
+%package pmda-nvidia-gpu
License: GPLv2+
Group: Applications/System
Summary: Performance Co-Pilot (PCP) metrics for the Nvidia shell
URL: http://www.pcp.io
Requires: pcp-libs = @package_version@
-%description pmda-nvidia
+%description pmda-nvidia-gpu
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Nvidia gpu metrics. The PMDA is written in C.
-# end pcp-pmda-nvidia
+# end pcp-pmda-nvidia-gpu
#
# pcp-pmda-roomtemp
@@ -1305,7 +1305,7 @@ Requires: pcp-pmda-samba pcp-pmda-snmp pcp-pmda-systemtap
pcp-pmda-vmware pcp-pm
Requires: pcp-pmda-dm pcp-pmda-gluster pcp-pmda-zswap pcp-pmda-unbound
pcp-pmda-apache
Requires: pcp-pmda-dm pcp-pmda-gluster pcp-pmda-unbound pcp-pmda-apache
Requires: pcp-pmda-bash pcp-pmda-cisco pcp-pmda-gfs2 pcp-pmda-lmsensors
pcp-pmda-mailq pcp-pmda-mounts
-Requires: pcp-pmda-nvidia pcp-pmda-roomtemp pcp-pmda-rpm pcp-pmda-sendmail
pcp-pmda-shping
+Requires: pcp-pmda-nvidia-gpu pcp-pmda-roomtemp pcp-pmda-rpm pcp-pmda-sendmail
pcp-pmda-shping
Requires: pcp-pmda-summary pcp-pmda-trace pcp-pmda-weblog
Requires: pcp-system-tools
%description compat
@@ -1328,7 +1328,7 @@ Requires: pcp-pmda-samba pcp-pmda-snmp pcp-pmda-systemtap
pcp-pmda-vmware pcp-pm
Requires: pcp-pmda-dm pcp-pmda-gluster pcp-pmda-zswap pcp-pmda-unbound
pcp-pmda-apache
Requires: pcp-pmda-dm pcp-pmda-gluster pcp-pmda-unbound pcp-pmda-apache
Requires: pcp-pmda-bash pcp-pmda-cisco pcp-pmda-gfs2 pcp-pmda-lmsensors
pcp-pmda-mailq pcp-pmda-mounts
-Requires: pcp-pmda-nvidia pcp-pmda-roomtemp pcp-pmda-rpm pcp-pmda-sendmail
pcp-pmda-shping
+Requires: pcp-pmda-nvidia-gpu pcp-pmda-roomtemp pcp-pmda-rpm pcp-pmda-sendmail
pcp-pmda-shping
Requires: pcp-pmda-summary pcp-pmda-trace pcp-pmda-weblog
%description collector
This package contains the PCP metric collection dependencies. This includes
@@ -2045,7 +2045,7 @@ cd
%files pmda-mounts -f pmda_mounts_files.rpm
-%files pmda-nvidia -f pmda_nvidia_files.rpm
+%files pmda-nvidia-gpu -f pmda_nvidia_files.rpm
%files pmda-roomtemp -f pmda_roomtemp_files.rpm
--
2.1.0
|