RSS feed

Re: RPM packaging for version 0.8.12

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: RPM packaging for version 0.8.12

On Fri, 2012-11-30 at 08:24 +0100, Juan Asensio Sánchez wrote:
> Commenting the line about reconf makes the script run wihout the
> previous error (but not finish the rpmbuild, read bellow); if this can
> help, I am using version 2.59, included in CentOS 5.5.

The minimal version as specified in the file is 2.61 so
regenerating the configure script with an older version can break the

> And added this to the section %files (i am not sure how the %files
> section works, can anyone confirm this is correct?):

I don't know much about RPM packaging but perhaps someone else can

> Anyway, after commenting the line about autoreconf, it doesn't
> generate the RPMs because of the tests:
> test_tio: writing 11 blocks of 400 bytes (4400 total)
> test_tio: reading 400 blocks of 11 bytes (4400 total)
> test_tio: writing 11 blocks of 10240 bytes (112640 total)
> test_tio: reading 1024 blocks of 110 bytes (112640 total)
> test_tio: writing 20 blocks of 5115 bytes (102300 total)
> test_tio: reading 5 blocks of 20460 bytes (102300 total)
> test_tio: test_tio.c:316: test_timeout_writer: Assertion `end>start' failed.
> /bin/sh: line 5: 29939 Aborted                 ${dir}$tst
> FAIL: test_tio

This is interesting. Does the test fail every time? Attached is a
replacement for test_tio.c that is a little more verbose in the above

I would be interested in finding the cause of the failing test and see
whether there is a bug somewhere.

> This is because although I have a LDAP server in the compilation
> machine (although this can not be always true), my LDAP server has not
> that naming context (dc=test,dc=tld). How can I disable the tests
> during the generation of the RPMs?

The LDAP-specific tests should automatically be skipped if the test
environment that is described in tests/README is not detected.

The command in the spec file that runs the test is
make check

-- arthur - - --

Attachment: test_tio.c
Description: Text Data

To unsubscribe send an email to or see