lists.arthurdejong.org
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



Hi again

2012/11/30 Arthur de Jong <arthur [at] arthurdejong.org>
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 configure.ac file is 2.61 so
regenerating the configure script with an older version can break the
build.

> 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
comment.

> 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
test.

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

Instead of recompiling again the package, I hace uncompressend the TGZ and run make check-TESTS in the tests directory. After replacing the attached file, I am already getting the same error:

PASS: test_dict
PASS: test_set
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_timeout_writer: written 186 blocks of 20 bytes in 0 second(s)
test_tio: test_tio.c:321: test_timeout_writer: Assertion `end>start' failed.
/bin/sh: line 5:  8676 Abortado                ${dir}$tst
FAIL: test_tio
PASS: test_expr
PASS: test_getpeercred
PASS: test_cfg
test_myldap.sh: LDAP server ldap://127.0.0.1/ not available for dc=test,dc=tld
SKIP: test_myldap.sh
PASS: test_common
./test_nsscmds.sh: /etc/nslcd.conf: not found
SKIP: test_nsscmds.sh
./test_pamcmds.sh: /etc/nslcd.conf: not found
SKIP: test_pamcmds.sh
===========================================================
1 of 7 tests failed
(3 tests were not run)
Please report to nss-pam-ldapd-users [at] lists.arthurdejong.org
===========================================================
make: *** [check-TESTS] Error 1

I don't see any relevant new data. I don't have any nslcd.conf file in /etc, as I am just generating the RPM and this machine has not yet the package installed. Is this a requisite, or the script is not detecting I have not a test environment?


> 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 - arthur [at] arthurdejong.org - http://arthurdejong.org --

--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe [at] lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/

-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/