[Pacemaker] build pacemaker package (./ConfigureMe package)
Andrew Beekhof
beekhof at gmail.com
Mon Jan 21 09:36:07 UTC 2008
On Jan 21, 2008, at 9:01 AM, Andrew Beekhof wrote:
>
> On Jan 21, 2008, at 7:15 AM, Junko IKEDA wrote:
>>
>>>
>>> Running gmake rpm
you can also try "make drpm" (also carried over from heartbeat) which
passes the --nodeps option to avoid the problem below
>>>
>>> rm -f pacemaker.tar.gz
>>> hg archive -t tgz pacemaker.tar.gz
>>> echo Rebuilt pacemaker.tar.gz on `date`
>>> Rebuilt pacemaker.tar.gz on Mon Jan 21 11:51:19 JST 2008
>>> /usr/bin/rpmbuild -ta pacemaker.tar.gz </dev/null;
>>> error: Failed build dependencies:
>>> openais-devel is needed by pacemaker-0.6.0-1.x86_64
>>> gmake: *** [rpm] Error 1
>>>
>>>
>>> pacemaker.spec in pacemaker.tar.gz which created by " hg archive"
>>> includes
>> a
>>> configuration, "With AIS support = 1".
>>
>> I know it's the wrong way...
>
> Yeah, it's really broken to have configure generate the spec file.
> But I'll change it so that by default it tries to build both (and
> continues as long as one cluster stack is detected)
>
>>
>> I tried to edit pacemaker.spec directly before running ConfigureMe.
>>
>> # vim pacemaker.spec
>> --- pacemaker.spec.org 2008-01-21 14:50:51.000000000 +0900
>> +++ pacemaker.spec 2008-01-21 15:01:23.000000000 +0900
>> @@ -13,7 +13,7 @@
>> %define with_extra_warnings 0
>> %define with_debugging 0
>> %define without_fatal_warnings 1
>> -%define with_ais_support 1
>> +%define with_ais_support 0
>> %define with_heartbeat_support 1
>>
>> # hg commit -u 'junko' -m 'change pacemaker.spec'
it should no longer be necessary to commit the change in order to build
make (d)rpm now use the copy of pacemaker.spec in the top directory
instead of what's in the tarball
so you now have two ways to make it work :-)
- edit the spec file, or
- use "make drpm"
>>
>> # hg update
>> # ./ConfigureMe package --with-heartbeat-support --without-ais-
>> support 2>&1
>> | tee configure-pacemaker.log
>>
>> It worked.
>>
>> Thanks,
>> Junko
>>
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at clusterlabs.org
>> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>
More information about the Pacemaker
mailing list