pcp
[Top] [All Lists]

Re: [pcp] Build Errors on CentOS 4.8

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Build Errors on CentOS 4.8
From: Chandana De Silva <chandana@xxxxxxxxxxxxx>
Date: Wed, 14 Nov 2012 03:31:42 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1385170403.25390896.1352759983221.JavaMail.root@xxxxxxxxxx>
References: <1385170403.25390896.1352759983221.JavaMail.root@xxxxxxxxxx>
Reply-to: chandana@xxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1
Here is how I got did the build

First Try
-------------
$ grep -C 3 "remove python" src/include/builddefs.in
# RPM byte-compiles and installs results in our DIST_ROOT, cater for this:
ifeq "$(TARGET_OS)" "linux"
PYTHON_INSTALL =
# remove python #PYTHON_INSTALL = \
# remove python # $(AWK) '{print} /.pyc$$/ {sub(/.pyc$$/,".pyo"); print}' \ # remove python # < $(TOPDIR)/python-pcp.list > $(TOPDIR)/python-pcp.list.rpm
else
ifeq "$(shell [ '$(PACKAGE_DISTRIBUTION)' = cocoa \
                -o '$(PACKAGE_DISTRIBUTION)' = macosx \

./Makepkgs

Result
---------

RPM build errors:
Could not open %files file /home/m4u-chandana/pcp-3.6.9/pcp-3.6.9/python-pcp.list.rpm: No such file or directory
gmake[1]: *** [pack_pcp] Error 1
make: *** [pack_pcp] Error 2

Second Try
-----------------
$ grep -C 3 "remove python" build/rpm/pcp.spec.in
%files -n perl-PCP-LogSummary -f perl-pcp-logsummary.list
%defattr(-,root,root)

# remove python #%files -n python-pcp -f python-pcp.list.rpm
# remove python #%defattr(-,root,root)

%changelog
* Fri Oct 12 2012 Nathan Scott <nathans@xxxxxxxxxx> - 3.6.9-1

./Makepkgs clean

Result
--------
== Packaging pcp, log is in Logs/pcp
Packaging failed, see log in Logs/pcp
    if [ ! -L $SRC_ROOT -a "linux" != mingw ] ; then \
        if [ -n "$SRC_ROOT" ]; then \
            rm -rf $SRC_ROOT || exit 1; \
            ln -s . $SRC_ROOT || exit 1; \
        fi; \
    fi; \
fi
ln: `../pcp-3.6.9/.': cannot overwrite directory
make: *** [pcp.src] Error 1

Third Try
------------
Makepkgs clean did not clean very well, start again in a fresh directory with the same changes

./Makepkgs

Result
---------
== Packaging pcp, log is in Logs/pcp
Packaging failed, see log in Logs/pcp
RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/lib/python2.3/site-packages/pcp.py
   /usr/lib/python2.3/site-packages/pcp.pyc
   /usr/lib/python2.3/site-packages/pcpi.py
   /usr/lib/python2.3/site-packages/pcpi.pyc
   /usr/lib/python2.3/site-packages/pmapi.so
gmake[1]: *** [pack_pcp] Error 1
make: *** [pack_pcp] Error 2

At this point, I gave up and removed all the python stuff from builddefs.in and the spec file.

Chandana


On 13/11/12 09:39, Nathan Scott wrote:
Oh, OK - I was trying to get a successful build with python bits,
not a python-disabled build.  What was the subsequent error after
you removed the PYTHON_INSTALL chunk (below)?

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