[Pacemaker] build pacemaker package (./ConfigureMe package)
Andrew Beekhof
beekhof at gmail.com
Mon Jan 21 10:43:08 UTC 2008
On Jan 21, 2008, at 11:33 AM, Junko IKEDA wrote:
>> you can also try "make drpm" (also carried over from heartbeat) which
>> passes the --nodeps option to avoid the problem below
>
> Thank you for your advice.
> Now they're saying;
>
> # ./ConfigureMe bootstrap --enable-snmp --with-heartbeat-support
> --without-ais-support 2>&1 | tee configure-pacemaker.log
> # make 2>&1 | tee make-pacemaker.log
> # make drpm 2>&1 | tee drpm-pacemaker.log
>
> gmake[1]: Entering directory `/root/tmp/src/pacemaker-6be96ba752a0/
> debian'
> gmake[1]: *** No rule to make target `heartbeat.dirs', needed by
> `distdir'.
> Stop.
> gmake[1]: Leaving directory `/root/tmp/src/pacemaker-6be96ba752a0/
> debian'
> make: *** [distdir] Error 1
>
> How can I set distdir?
I think actually that the makefile is trying to build something that
it shouldn't.
http://hg.clusterlabs.org/pacemaker/stable-0.6/rev/e123e899602b
I wonder how this worked in the past
>
> Sorry for idle question.
no need at all to apologize... thanks for finding this stuff :-)
>
>
>>
>>>>>
>>>>> 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
>>>
>>
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at clusterlabs.org
>> http://list.clusterlabs.org/mailman/listinfo/pacemaker
> <configure-pacemaker.log><make-pacemaker.log><drpm-
> pacemaker.log>_______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list