[Pacemaker] Latest pacemaker-1.0 is make rpm error

Andrew Beekhof andrew at beekhof.net
Mon Apr 11 19:41:18 CET 2011


You need the following patch (which I'll push up shortly)

diff -r 8085ed4ab38b pacemaker.spec.in
--- a/pacemaker.spec.in	Mon Apr 04 16:38:38 2011 +0200
+++ b/pacemaker.spec.in	Mon Apr 11 11:40:44 2011 +0200
@@ -2,9 +2,9 @@
 %global uname hacluster
 %global pcmk_docdir %{_docdir}/%{name}

-%global specversion 0.2
+%global specversion 0.5
 %global upstream_version 00c6e47d32f3
-%global upstream_prefix pacemaker
+%global upstream_prefix pacemaker-

 # Keep around for when/if required
 #global alphatag %{upstream_version}.hg
@@ -42,7 +42,7 @@ Release:	%{pcmk_release}
 License:	GPLv2+ and LGPLv2+
 Url:		http://www.clusterlabs.org
 Group:		System Environment/Daemons
-Source0:	pacemaker.tar.bz2
+Source0:	%{upstream_prefix}%{?upstream_version}.tar.bz2
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 AutoReqProv:	on
 Requires(pre):	cluster-glue


On Mon, Apr 11, 2011 at 10:43 AM, nozawat <nozawat at gmail.com> wrote:
> Hi
>
>  I get a source from a following.
>  http://hg.clusterlabs.org/pacemaker/stable-1.0
>
>  I input the following commands afterwards.(RHEL5.5 x86_64)
>  1) Environment Setting
>   $export PREFIX=/usr
>   $export LCRSODIR=$PREFIX/libexec/lcrso
>   $export CLUSTER_USER=hacluster
>   $export CLUSTER_GROUP=haclient
>  2) build command
>   $./autogen.sh && ./configure --prefix=$PREFIX --localstatedir=/var
> --with-lcrso-dir=$LCRSODIR
>   $make
>   $make rpm
>
>  However, the following errors produced make rpm after enforcement.
> ----
> cp pacemaker-fedora.spec pacemaker.spec
> sed -i.sed 's/global\ upstream_version.*/global\ upstream_version\
> e7c9c7341c6f/' pacemaker.spec
> rpmbuild -bs --define "dist .fedora" --define "_sourcedir
> /share/ha/buildbot/build/RHEL5.5-x86_64/pacemaker-1.0/build" --define
> "_specdir   /share/ha/buildbot/build/RHEL5.5-x86_64/pacemaker-1.0/build"
> --define "_srcrpmdir
> /share/ha/buildbot/build/RHEL5.5-x86_64/pacemaker-1.0/build"  pacemaker.spec
> error: File
> /share/ha/buildbot/build/RHEL5.5-x86_64/pacemaker-1.0/build/pacemaker.tar.bz2:
> No such file or directory
> make: *** [srpm-fedora] Error 1
> rm pacemaker-fedora.spec
> ----
>  The following corrections seem to be related to me.
>  http://hg.clusterlabs.org/pacemaker/stable-1.0/diff/e7c9c7341c6f/GNUmakefile
>
> Regards,
> Tomo
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
>



More information about the Pacemaker mailing list