Mailing List Archive

build pacemaker package (./ConfigureMe package)
Hi,

I have built heartbeat and pacemaker at the dictation of the following
instructions.

http://www.clusterlabs.org/mw/Install

It worked!
The documentation was very useful.

but when I tried to build package(./ConfigureMe package),
there were some errors like this;
(OS: Red Hat Enterprise Linux Server release 5.1 (Tikanga))

pacemaker(changeset: 8730c2044510)
...
Running gmake rpm
rm -f pacemaker.tar.gz
hg archive -t tgz pacemaker.tar.gz
echo Rebuilt pacemaker.tar.gz on `date`
Rebuilt pacemaker.tar.gz on Fri Jan 18 11:47:47 JST 2008
/usr/bin/rpmbuild -ta pacemaker.tar.gz </dev/null;
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
gmake: *** [rpm] Error 1

The detail was attached.



This isn't a problem about pacemaker,
heartbeat also generated an error if there was --disable-crm option.

heartbeat(changeset: 7e7ff0d31af1)
...
config.status: creating crm/Makefile
config.status: error: cannot find input file: crm/Makefile.in
error: Bad exit status from /var/tmp/rpm-tmp.7060 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.7060 (%build)
gmake: *** [rpm] Error 1





Best Regards,
Junko Ikeda

NTT DATA INTELLILINK CORPORATION
Re: build pacemaker package (./ConfigureMe package) [ In reply to ]
On Jan 18, 2008, at 5:05 AM, Junko IKEDA wrote:

> Hi,
>
> I have built heartbeat and pacemaker at the dictation of the following
> instructions.
>
> http://www.clusterlabs.org/mw/Install
>
> It worked!
> The documentation was very useful.
>
> but when I tried to build package(./ConfigureMe package),
> there were some errors like this;
> (OS: Red Hat Enterprise Linux Server release 5.1 (Tikanga))
>
> pacemaker(changeset: 8730c2044510)
> ...
> Running gmake rpm

ah, that target isn't (yet) supported for pacemaker
probably because there is no .spec file included with the project
(i'll grab the one we use for the build service packages and add it
shortly).

>
> rm -f pacemaker.tar.gz
> hg archive -t tgz pacemaker.tar.gz
> echo Rebuilt pacemaker.tar.gz on `date`
> Rebuilt pacemaker.tar.gz on Fri Jan 18 11:47:47 JST 2008
> /usr/bin/rpmbuild -ta pacemaker.tar.gz </dev/null;
> error: Name field must be present in package: (main package)
> error: Version field must be present in package: (main package)
> error: Release field must be present in package: (main package)
> error: Summary field must be present in package: (main package)
> error: Group field must be present in package: (main package)
> error: License field must be present in package: (main package)
> gmake: *** [rpm] Error 1
>
> The detail was attached.
>
>
>
> This isn't a problem about pacemaker,
> heartbeat also generated an error if there was --disable-crm option.

the problem here is that "make dist" (which generates the tar-ball)
was also run with --disable-crm, so the entire crm directory structure
isn't there.
personally I prefer to use 'hg archive -t tgz heartbeat.tar.gz' to
create my tarballs. that way everything is there and there is no
chance of any local changes sneaking in accidentally.

i'll push up a patch that stops configure looking for those files if --
disable-crm is used

>
>
> heartbeat(changeset: 7e7ff0d31af1)
> ...
> config.status: creating crm/Makefile
> config.status: error: cannot find input file: crm/Makefile.in
> error: Bad exit status from /var/tmp/rpm-tmp.7060 (%build)
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.7060 (%build)
> gmake: *** [rpm] Error 1
>
>
>
>
>
> Best Regards,
> Junko Ikeda
>
> NTT DATA INTELLILINK CORPORATION
>
> <configure-pacemaker.log><configure-
> heartbeat.log>_______________________________________________
> Pacemaker mailing list
> Pacemaker@clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker


_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker
RE: build pacemaker package (./ConfigureMe package) [ In reply to ]
> On Jan 18, 2008, at 5:05 AM, Junko IKEDA wrote:
>
> > Hi,
> >
> > I have built heartbeat and pacemaker at the dictation of the following
> > instructions.
> >
> > http://www.clusterlabs.org/mw/Install
> >
> > It worked!
> > The documentation was very useful.
> >
> > but when I tried to build package(./ConfigureMe package),
> > there were some errors like this;
> > (OS: Red Hat Enterprise Linux Server release 5.1 (Tikanga))
> >
> > pacemaker(changeset: 8730c2044510)
> > ...
> > Running gmake rpm
>
> ah, that target isn't (yet) supported for pacemaker
> probably because there is no .spec file included with the project
> (i'll grab the one we use for the build service packages and add it
> shortly).
>

I got heartbeat-2.1.3-3.1.src.rpm and pacemaker-heartbeat-0.6.0-14.1.src.rpm
for now,
and could build rpm.
"rpm -ihv" worked well, but "rpm -e" would fail.
It seems that there is something wrong around %postun in spec file.
If "%postun -p /sbin/ldconfig" is there,
some comments (like ######) shouldn't set before next section.

--- pacemaker.spec.org 2008-01-16 20:38:51.000000000 +0900
+++ pacemaker.spec 2008-01-18 14:49:46.000000000 +0900
@@ -209,7 +209,7 @@
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

-###########################################################
+

Is it special case on redhat???

> > This isn't a problem about pacemaker,
> > heartbeat also generated an error if there was --disable-crm option.
>
> the problem here is that "make dist" (which generates the tar-ball)
> was also run with --disable-crm, so the entire crm directory structure
> isn't there.
> personally I prefer to use 'hg archive -t tgz heartbeat.tar.gz' to
> create my tarballs. that way everything is there and there is no
> chance of any local changes sneaking in accidentally.
>
> i'll push up a patch that stops configure looking for those files if --
> disable-crm is used


Thanks,
Junko


_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker
Re: build pacemaker package (./ConfigureMe package) [ In reply to ]
On Jan 18, 2008, at 9:23 AM, Andrew Beekhof wrote:

>
> On Jan 18, 2008, at 5:05 AM, Junko IKEDA wrote:
>
>> Hi,
>>
>> I have built heartbeat and pacemaker at the dictation of the
>> following
>> instructions.
>>
>> http://www.clusterlabs.org/mw/Install
>>
>> It worked!
>> The documentation was very useful.
>>
>> but when I tried to build package(./ConfigureMe package),
>> there were some errors like this;
>> (OS: Red Hat Enterprise Linux Server release 5.1 (Tikanga))
>>
>> pacemaker(changeset: 8730c2044510)
>> ...
>> Running gmake rpm
>
> ah, that target isn't (yet) supported for pacemaker
> probably because there is no .spec file included with the project
> (i'll grab the one we use for the build service packages and add it
> shortly).

http://hg.clusterlabs.org/pacemaker/stable-0.6/rev/ded94bb4123b

>
>
>>
>> rm -f pacemaker.tar.gz
>> hg archive -t tgz pacemaker.tar.gz
>> echo Rebuilt pacemaker.tar.gz on `date`
>> Rebuilt pacemaker.tar.gz on Fri Jan 18 11:47:47 JST 2008
>> /usr/bin/rpmbuild -ta pacemaker.tar.gz </dev/null;
>> error: Name field must be present in package: (main package)
>> error: Version field must be present in package: (main package)
>> error: Release field must be present in package: (main package)
>> error: Summary field must be present in package: (main package)
>> error: Group field must be present in package: (main package)
>> error: License field must be present in package: (main package)
>> gmake: *** [rpm] Error 1
>>
>> The detail was attached.
>>
>>
>>
>> This isn't a problem about pacemaker,
>> heartbeat also generated an error if there was --disable-crm option.
>
> the problem here is that "make dist" (which generates the tar-ball)
> was also run with --disable-crm, so the entire crm directory
> structure isn't there.
> personally I prefer to use 'hg archive -t tgz heartbeat.tar.gz' to
> create my tarballs. that way everything is there and there is no
> chance of any local changes sneaking in accidentally.
>
> i'll push up a patch that stops configure looking for those files if
> --disable-crm is used

this changeset should do the trick: b8367b4ee2fa

_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker
Re: build pacemaker package (./ConfigureMe package) [ In reply to ]
On Jan 18, 2008, at 9:45 AM, Junko IKEDA wrote:

>> On Jan 18, 2008, at 5:05 AM, Junko IKEDA wrote:
>>
>>> Hi,
>>>
>>> I have built heartbeat and pacemaker at the dictation of the
>>> following
>>> instructions.
>>>
>>> http://www.clusterlabs.org/mw/Install
>>>
>>> It worked!
>>> The documentation was very useful.
>>>
>>> but when I tried to build package(./ConfigureMe package),
>>> there were some errors like this;
>>> (OS: Red Hat Enterprise Linux Server release 5.1 (Tikanga))
>>>
>>> pacemaker(changeset: 8730c2044510)
>>> ...
>>> Running gmake rpm
>>
>> ah, that target isn't (yet) supported for pacemaker
>> probably because there is no .spec file included with the project
>> (i'll grab the one we use for the build service packages and add it
>> shortly).
>>
>
> I got heartbeat-2.1.3-3.1.src.rpm and pacemaker-
> heartbeat-0.6.0-14.1.src.rpm
> for now,
> and could build rpm.
> "rpm -ihv" worked well, but "rpm -e" would fail.
> It seems that there is something wrong around %postun in spec file.
> If "%postun -p /sbin/ldconfig" is there,
> some comments (like ######) shouldn't set before next section.
>
> --- pacemaker.spec.org 2008-01-16 20:38:51.000000000 +0900
> +++ pacemaker.spec 2008-01-18 14:49:46.000000000 +0900
> @@ -209,7 +209,7 @@
> %post -p /sbin/ldconfig
> %postun -p /sbin/ldconfig
>
> -###########################################################
> +
>
> Is it special case on redhat???

possible. i've fixed it anyway as-per your suggestion.

>
>
>>> This isn't a problem about pacemaker,
>>> heartbeat also generated an error if there was --disable-crm option.
>>
>> the problem here is that "make dist" (which generates the tar-ball)
>> was also run with --disable-crm, so the entire crm directory
>> structure
>> isn't there.
>> personally I prefer to use 'hg archive -t tgz heartbeat.tar.gz' to
>> create my tarballs. that way everything is there and there is no
>> chance of any local changes sneaking in accidentally.
>>
>> i'll push up a patch that stops configure looking for those files
>> if --
>> disable-crm is used
>
>
> Thanks,
> Junko
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker@clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker


_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker
RE: build pacemaker package (./ConfigureMe package) [ In reply to ]
> ah, that target isn't (yet) supported for pacemaker
> probably because there is no .spec file included with the project
> (i'll grab the one we use for the build service packages and add it
> shortly).

Thanks,
but I am facing another error this time...

I downloaded the latest pacemaker dev(changeset: 6be96ba752a0),
and try to make rpm.

# ./ConfigureMe package --with-heartbeat-support --without-ais-support

Configuration seems to be in good order.
-----------------------------------------------------
pacemaker configuration:
Version = 0.6.0
Prefix = /usr
Executables = /usr/sbin
Man pages = /usr/share/man
Libraries = /usr/lib
Header files = /usr/include
Arch-independent files = /usr/share
State information = /var
System configuration = /etc
Init (rc) scripts = /etc/init.d
Use system LTDL = yes
HA group name = haclient
HA user name = hacluster
Build snmp subagent = no
SNMP libraries = -L/usr/lib64 -L/usr/lib64 -lnetsnmp -lcrypto
-lm -L/usr/lib64/lib -lwrap
ucd_snmp_devel name = ucd-snmp-devel
With Heartbeat support = 1
With AIS support = 0
-----------------------------------------------------

Despite --without-ais-support, openais-devel is needed during make sequence.

Running gmake rpm
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".

Best Regards,
Junko
RE: build pacemaker package (./ConfigureMe package) [ In reply to ]
> > ah, that target isn't (yet) supported for pacemaker
> > probably because there is no .spec file included with the project
> > (i'll grab the one we use for the build service packages and add it
> > shortly).
>
> Thanks,
> but I am facing another error this time...
>
> I downloaded the latest pacemaker dev(changeset: 6be96ba752a0),
> and try to make rpm.
>
> # ./ConfigureMe package --with-heartbeat-support --without-ais-support
>
> Configuration seems to be in good order.
> -----------------------------------------------------
> pacemaker configuration:
> Version = 0.6.0
> Prefix = /usr
> Executables = /usr/sbin
> Man pages = /usr/share/man
> Libraries = /usr/lib
> Header files = /usr/include
> Arch-independent files = /usr/share
> State information = /var
> System configuration = /etc
> Init (rc) scripts = /etc/init.d
> Use system LTDL = yes
> HA group name = haclient
> HA user name = hacluster
> Build snmp subagent = no
> SNMP libraries = -L/usr/lib64 -L/usr/lib64 -lnetsnmp -lcrypto
> -lm -L/usr/lib64/lib -lwrap
> ucd_snmp_devel name = ucd-snmp-devel
> With Heartbeat support = 1
> With AIS support = 0
> -----------------------------------------------------
>
> Despite --without-ais-support, openais-devel is needed during make
sequence.
>
> Running gmake rpm
> 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...
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'
# hg update
# ./ConfigureMe package --with-heartbeat-support --without-ais-support 2>&1
| tee configure-pacemaker.log

It worked.

Thanks,
Junko


_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker
Re: build pacemaker package (./ConfigureMe package) [ In reply to ]
On Jan 21, 2008, at 7:15 AM, Junko IKEDA wrote:

>>> ah, that target isn't (yet) supported for pacemaker
>>> probably because there is no .spec file included with the project
>>> (i'll grab the one we use for the build service packages and add it
>>> shortly).
>>
>> Thanks,
>> but I am facing another error this time...
>>
>> I downloaded the latest pacemaker dev(changeset: 6be96ba752a0),
>> and try to make rpm.
>>
>> # ./ConfigureMe package --with-heartbeat-support --without-ais-
>> support
>>
>> Configuration seems to be in good order.
>> -----------------------------------------------------
>> pacemaker configuration:
>> Version = 0.6.0
>> Prefix = /usr
>> Executables = /usr/sbin
>> Man pages = /usr/share/man
>> Libraries = /usr/lib
>> Header files = /usr/include
>> Arch-independent files = /usr/share
>> State information = /var
>> System configuration = /etc
>> Init (rc) scripts = /etc/init.d
>> Use system LTDL = yes
>> HA group name = haclient
>> HA user name = hacluster
>> Build snmp subagent = no
>> SNMP libraries = -L/usr/lib64 -L/usr/lib64 -lnetsnmp -
>> lcrypto
>> -lm -L/usr/lib64/lib -lwrap
>> ucd_snmp_devel name = ucd-snmp-devel
>> With Heartbeat support = 1
>> With AIS support = 0
>> -----------------------------------------------------
>>
>> Despite --without-ais-support, openais-devel is needed during make
> sequence.
>>
>> Running gmake rpm
>> 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'
> # hg update
> # ./ConfigureMe package --with-heartbeat-support --without-ais-
> support 2>&1
> | tee configure-pacemaker.log
>
> It worked.
>
> Thanks,
> Junko
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker@clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker


_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker
Re: build pacemaker package (./ConfigureMe package) [ In reply to ]
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@clusterlabs.org
>> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>


_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker
RE: build pacemaker package (./ConfigureMe package) [ In reply to ]
> 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?
Sorry for idle question.

>
> >>>
> >>> 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@clusterlabs.org
> >> http://list.clusterlabs.org/mailman/listinfo/pacemaker
> >
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker@clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
Re: build pacemaker package (./ConfigureMe package) [ In reply to ]
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@clusterlabs.org
>>>> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>>>
>>
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker@clusterlabs.org
>> http://list.clusterlabs.org/mailman/listinfo/pacemaker
> <configure-pacemaker.log><make-pacemaker.log><drpm-
> pacemaker.log>_______________________________________________
> Pacemaker mailing list
> Pacemaker@clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker


_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker
RE: build pacemaker package (./ConfigureMe package) [ In reply to ]
> > # ./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

Have nobody used?
By the way, "/usr/src/packages/SOURCES/" is for suse...
There isn't such a directory on redhat, it has "/usr/src/redhat/SOURCES"
instead.

Another is the following three lines in pacemaker.spec.

%if %with_ais_support
%{_libexecdir}/lcrso/pacemaker.lcrso
%endif

Now I try to configure without ais-support, but "%with_ais_support" is set
as 1 in spec file,
so pacemaker.lcrso is needed despite "make drpm".


RPM build errors:
File not found:
/var/tmp/pacemaker-0.6.0-build/usr/libexec/lcrso/pacemaker.lcrso
make: *** [drpm] Error 1


Thanks,
Junko
Re: build pacemaker package (./ConfigureMe package) [ In reply to ]
On Jan 22, 2008, at 3:01 AM, Junko IKEDA wrote:

>>> # ./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
>
> Have nobody used?

Thats the weird part... anyone that built the package should have
encountered this - including me.

>
> By the way, "/usr/src/packages/SOURCES/" is for suse...
> There isn't such a directory on redhat, it has "/usr/src/redhat/
> SOURCES"
> instead.
>
> Another is the following three lines in pacemaker.spec.
>
> %if %with_ais_support
> %{_libexecdir}/lcrso/pacemaker.lcrso
> %endif
>
> Now I try to configure without ais-support, but "%with_ais_support"
> is set
> as 1 in spec file,
> so pacemaker.lcrso is needed despite "make drpm".

ok
so the only option is to set with_ais_support to 0 before running make
rpm

at least you don't need to commit the change anymore

> RPM build errors:
> File not found:
> /var/tmp/pacemaker-0.6.0-build/usr/libexec/lcrso/pacemaker.lcrso
> make: *** [drpm] Error 1
>
>
> Thanks,
> Junko
> <make-drpm.log>_______________________________________________
> Pacemaker mailing list
> Pacemaker@clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker


_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker
Re: build pacemaker package (./ConfigureMe package) [ In reply to ]
On Jan 22, 2008, at 3:01 AM, Junko IKEDA wrote:

> By the way, "/usr/src/packages/SOURCES/" is for suse...
> There isn't such a directory on redhat, it has "/usr/src/redhat/
> SOURCES"
> instead.

Should be fixed now:
http://hg.clusterlabs.org/pacemaker/stable-0.6/rev/b5e89e19c5ad

_______________________________________________
Pacemaker mailing list
Pacemaker@clusterlabs.org
http://list.clusterlabs.org/mailman/listinfo/pacemaker