Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858671 - dev-libs/libtpms-0.9.5[test] - make[2]: *** [Makefile:1026: check-TESTS] Error 2
Summary: dev-libs/libtpms-0.9.5[test] - make[2]: *** [Makefile:1026: check-TESTS] Error 2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christopher Byrne
URL: https://github.com/stefanberger/libtp...
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2022-07-17 23:34 UTC by orbea
Modified: 2022-07-25 04:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,376.90 KB, text/x-log)
2022-07-17 23:34 UTC, orbea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description orbea 2022-07-17 23:34:09 UTC
The build with FEATURES=test fails with slibtool.

Reproducible: Always

Actual Results:  
make LIBTOOL=rlibtool  check-TESTS
make[2]: Entering directory '/var/tmp/portage/dev-libs/libtpms-0.9.5/work/libtpms-0.9.5/tests'
make[3]: Entering directory '/var/tmp/portage/dev-libs/libtpms-0.9.5/work/libtpms-0.9.5/tests'
FAIL: nvram_offsets
FAIL: tpm2_createprimary.sh
FAIL: fuzz.sh
FAIL: base64decode.sh
FAIL: tpm2_pcr_read.sh
FAIL: tpm2_selftest.sh
============================================================================
Testsuite summary for libtpms 0.9.5
============================================================================
# TOTAL: 6
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  6
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
============================================================================
make[3]: *** [Makefile:918: test-suite.log] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-libs/libtpms-0.9.5/work/libtpms-0.9.5/tests'
make[2]: *** [Makefile:1026: check-TESTS] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libtpms-0.9.5/work/libtpms-0.9.5/tests'
make[1]: *** [Makefile:1141: check-am] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libtpms-0.9.5/work/libtpms-0.9.5/tests'
make: *** [Makefile:522: check-recursive] Error 1
Comment 1 orbea 2022-07-17 23:34:35 UTC
Created attachment 792038 [details]
Build log
Comment 2 orbea 2022-07-17 23:53:41 UTC
This is also only reproducible if libtpms is not already installed, when it is installed it finds the installed libtpms library rather than the newly built library.
Comment 3 Larry the Git Cow gentoo-dev 2022-07-25 04:19:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cedc01467acc01d153eb30d26e9ed476fb6ca24f

commit cedc01467acc01d153eb30d26e9ed476fb6ca24f
Author:     orbea <orbea@riseup.net>
AuthorDate: 2022-07-17 04:14:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-25 04:09:53 +0000

    dev-libs/libtpms: Fix FEATURES=test with slibtool
    
    Bug: https://bugs.gentoo.org/858671
    Upstream-PR: https://github.com/stefanberger/libtpms/pull/344
    Upstream-Commit: https://github.com/stefanberger/libtpms/commit/0c2bc32a21e2c7218faa8cd6d5cf31b13835e6d5
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libtpms/files/libtpms-0.9.5-slibtool.patch     | 52 ++++++++++++++++++++++
 dev-libs/libtpms/libtpms-0.9.5.ebuild              |  1 +
 2 files changed, 53 insertions(+)