Mailing List Archive

build resource agents 3.9.1rc1 on RHEL5
Hi,

I am trying to build the latest resource agents 3.9.1rc1 on RHEL5.6,
and encountered the following error.
It seems that ".spec" is a bit off.
Please see the attached.

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.6 (Tikanga)

# uname -a
Linux build 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64
x86_64 x86_64 GNU/Linux

# git clone https://github.com/ClusterLabs/resource-agents/
# ./autogen.sh
# ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
--with-ras-set=linux-ha
# make rpm

Obsoletes: heartbeat-ldirectord <= 3.9.1
Processing files: resource-agents-debuginfo-3.9.1-0rc1.20.b3154.el5
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/resource-agents-3.9.1-0rc1.20.b3154.el5-Po8088
error: Installed (but unpackaged) file(s) found:
/usr/share/man/man8/ocf-tester.8.gz


RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/share/man/man8/ocf-tester.8.gz
make: *** [rpm] Error 1


Best Regards,
Junko IKEDA

NTT DATA INTELLILINK CORPORATION
Re: build resource agents 3.9.1rc1 on RHEL5 [ In reply to ]
Hellom

On 2011-06-16 11:02, Junko IKEDA wrote:
> Hi,
>
> I am trying to build the latest resource agents 3.9.1rc1 on RHEL5.6,
> and encountered the following error.
> It seems that ".spec" is a bit off.
> Please see the attached.
>
> # cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 5.6 (Tikanga)
>
> # uname -a
> Linux build 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64
> x86_64 x86_64 GNU/Linux
>
> # git clone https://github.com/ClusterLabs/resource-agents/
> # ./autogen.sh
> # ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
> --with-ras-set=linux-ha
> # make rpm
>
> Obsoletes: heartbeat-ldirectord <= 3.9.1
> Processing files: resource-agents-debuginfo-3.9.1-0rc1.20.b3154.el5
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> Checking for unpackaged file(s): /usr/lib/rpm/check-files
> /var/tmp/resource-agents-3.9.1-0rc1.20.b3154.el5-Po8088
> error: Installed (but unpackaged) file(s) found:
> /usr/share/man/man8/ocf-tester.8.gz
>
>
> RPM build errors:
> Installed (but unpackaged) file(s) found:
> /usr/share/man/man8/ocf-tester.8.gz
> make: *** [rpm] Error 1

Commit 10e6d6d8d9c1877e4669e42765122b83e3e2a203 should have fixed this;
can you build from current git HEAD please?

make distclean
./autogen.sh
./configure
make dist
rpmbuild -tb <generated tarball>

Do make sure, however, that your RPM dist macros are set correctly.
Here's my set:

# cat /etc/rpm/macros.dist
# dist macros.
%rhel 5
%dist .el5
%el5 1

Hope this helps.

Cheers,
Florian
Re: build resource agents 3.9.1rc1 on RHEL5 [ In reply to ]
On 2011-06-16 11:47, Junko IKEDA wrote:
> Hi,
>
> I got it from following repo.
> b3154571851274e4a3c353b2346c967d1405508f
>
> https://github.com/ClusterLabs/resource-agents/commit/b3154571851274e4a3c353b2346c967d1405508f
>
> The following branch is included here.
> +%if 0%{?rhel} == 0
> +%{_mandir}/man8/ocf-tester.8*
> +%endif
>
>> Do make sure, however, that your RPM dist macros are set correctly.
>> Here's my set:
>>
>> # cat /etc/rpm/macros.dist
>> # dist macros.
>> %rhel 5
>> %dist .el5
>> %el5 1
>
> Yes, I made this file.

And you're still getting the "installed but unpackaged" error?

Fabio, can you help?

Cheers,
Florian
Re: build resource agents 3.9.1rc1 on RHEL5 [ In reply to ]
On 06/16/2011 12:03 PM, Florian Haas wrote:
> On 2011-06-16 11:47, Junko IKEDA wrote:
>> Hi,
>>
>> I got it from following repo.
>> b3154571851274e4a3c353b2346c967d1405508f
>>
>> https://github.com/ClusterLabs/resource-agents/commit/b3154571851274e4a3c353b2346c967d1405508f
>>
>> The following branch is included here.
>> +%if 0%{?rhel} == 0
>> +%{_mandir}/man8/ocf-tester.8*
>> +%endif
>>
>>> Do make sure, however, that your RPM dist macros are set correctly.
>>> Here's my set:
>>>
>>> # cat /etc/rpm/macros.dist
>>> # dist macros.
>>> %rhel 5
>>> %dist .el5
>>> %el5 1
>>
>> Yes, I made this file.
>
> And you're still getting the "installed but unpackaged" error?
>
> Fabio, can you help?

Yes I am already looking into it.

There is something very fishy in his build environment because I don't
get the error and there is no way to autoreconf on rhel5 as he does. So
either he is running some backported packages or a mixed environment
that we might not be able to support directly without some other deeper
changes (for instance we could avoid generating ocf-tester man page on
the fly and ship it constantly, dropping also the requirement for
help2man at build time).

Fabio
_______________________________________________
ha-wg-technical mailing list
ha-wg-technical@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/ha-wg-technical
Re: build resource agents 3.9.1rc1 on RHEL5 [ In reply to ]
Hi,

On 06/16/2011 11:02 AM, Junko IKEDA wrote:
> Hi,
>
> I am trying to build the latest resource agents 3.9.1rc1 on RHEL5.6,
> and encountered the following error.
> It seems that ".spec" is a bit off.
> Please see the attached.

It should now be fixed in 3.9.1 final release.

Cheers
Fabio
_______________________________________________
ha-wg-technical mailing list
ha-wg-technical@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/ha-wg-technical
Re: build resource agents 3.9.1rc1 on RHEL5 [ In reply to ]
Hi,

It worked, many thanks!

Best Regards,
Junko IKEDA

On 2011/06/16, at 22:28, Fabio M. Di Nitto wrote:

> Hi,
>
> On 06/16/2011 11:02 AM, Junko IKEDA wrote:
>> Hi,
>>
>> I am trying to build the latest resource agents 3.9.1rc1 on RHEL5.6,
>> and encountered the following error.
>> It seems that ".spec" is a bit off.
>> Please see the attached.
>
> It should now be fixed in 3.9.1 final release.
>
> Cheers
> Fabio
> _______________________________________________
> ha-wg-technical mailing list
> ha-wg-technical@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/ha-wg-technical

_______________________________________________
ha-wg-technical mailing list
ha-wg-technical@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/ha-wg-technical
Re: build resource agents 3.9.1rc1 on RHEL5 [ In reply to ]
On 06/17/2011 04:11 PM, Junko IKEDA wrote:
> Hi,
>
> It worked, many thanks!
>
> Best Regards,
> Junko IKEDA

good, thanks for the feedback!

Fabio
_______________________________________________
ha-wg-technical mailing list
ha-wg-technical@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/ha-wg-technical