Hi Chandana,
> 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
...
> 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
OK, so that file should have been created by ... ah, heh, I see what
happened. By removing the PYTHON_INSTALL entirely, we've prevented
the python-pcp.list.rpm file from being created at all.
Something like this should get us back on track:
PYTHON_INSTALL = cp $(TOPDIR)/python-pcp.list $(TOPDIR)/python-pcp.list.rpm
Could you see if that runs to completion, or is there another error
after that? Its very close to the end of the build here, so there's
not much else left that could go wrong I think. (famous last words)
> 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
I think you need "-clean" not 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
The make (dist)clean should have removed that at the start of the
build (its leftover from an earlier build in the same directory).
cheers.
--
Nathan
|