pcp
[Top] [All Lists]

Re: [pcp] Issues with 3.8 on rhel 6 (minor) and sles 11 (not as minor)

To: pcp@xxxxxxxxxxx
Subject: Re: [pcp] Issues with 3.8 on rhel 6 (minor) and sles 11 (not as minor)
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 15 May 2013 07:25:01 +1000
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5192396A.3090600@xxxxxxx>
References: <5192396A.3090600@xxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5
G'day Jeff.

On 14/05/13 23:17, Jeff Hanson wrote:
On my rhel 6 system ./Makepkgs works as expected.  On upgrade to
the build rpms the startup could not find pmwebd

I have a fix for this ... the build of pmwebd depends on libmicrohttpd being 
available ... this is conditional in the build, but we've been struggling to 
find and plug all the consequential places where conditional logic is needed in 
the packaging and installation scripts.

On sles 11 (sp2 to be specific) Makepgs builds rpms (once I installed 
python-devel).
The rpms fail to freshen because
labyrinth:/home/jhanson/pcp-3.8.0/build/rpm # rpm -Fv *.rpm
error: Failed dependencies:
         initscripts is needed by pcp-3.8.0-1.x86_64
         python-ctypes is needed by pcp-3.8.0-1.x86_64

There is no rpm for initscripts on sles (this is a rhel rpm).  If I believe
http://python.net/crew/theller/ctypes/ there is no need for a python-ctypes
rpm (nor is there one in sles or the sdk) in python 2.6 (which is what
I have on sles).

I agree python-ctypes should not be there ... but I'd like one of the python 
pixies to chime in an confirm this ... otherwise some conditional spec file 
glue may be required.

The initscripts one appears to be a simple a spec file botch ... it is 
specified once conditionally (correct) _and_ then again unconditionally (wrong).

On
Host        PCP      CPU     Operating System
----------- -------- ------  ------------------
grundy      3.8.0    ia64    SUSE SLES11 SP1

I see

kenj@grundy:~/src/pcp$ sudo rpm -Uv `ls build/rpm/*.rpm | sed -e '/src.rpm/d'`
Preparing packages for installation...
pcp-libs-3.8.0-8
python-pcp-3.8.0-8
pcp-3.8.0-8
Waiting for pmcd to terminate ...                                    done
Rebuilding PMNS ...                                                  done
Starting pmcd ...                                                    done
Starting pmlogger ...                                                done
Performance Co-Pilot starting inference engine(s) ...                done
Waiting for pmproxy to terminate ...                                 done
Performance Co-Pilot starting pmproxy (logfile is 
/var/log/pcp/pmproxy/pmproxy.log) ...                                           
                   done
perl-PCP-LogImport-3.8.0-8
pcp-libs-devel-3.8.0-8
perl-PCP-PMDA-3.8.0-8
pcp-import-iostat2pcp-3.8.0-8
pcp-import-mrtg2pcp-3.8.0-8
pcp-import-sar2pcp-3.8.0-8
pcp-import-sheet2pcp-3.8.0-8
pcp-testsuite-3.8.0-8
perl-PCP-LogSummary-3.8.0-8
perl-PCP-MMV-3.8.0-8

Patch attached if you can/want to try it out (and for others to review).

Attachment: patch.pcp
Description: Text document

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