Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 663704

Summary: app-emulation/libcacard-2.6.0 : [TEST] make[3]: *** [Makefile:<snip>: tests/softhsm2.conf] Error 127
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Virtualization Team <virtualization>
Status: RESOLVED FIXED    
Severity: normal CC: erhard_f, whissi
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 611348    
Attachments: emerge-info.txt
app-emulation:libcacard-2.6.0:20180814-195515.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
tests.tbz2

Description Toralf Förster gentoo-dev 2018-08-15 17:57:28 UTC
/var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0/tests/setup-softhsm2.sh: line 91: modutil: command not found
/var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0/tests/setup-softhsm2.sh: line 92: modutil: command not found
make[3]: *** [Makefile:1991: tests/softhsm2.conf] Error 127
make[3]: Leaving directory '/var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0'
make[2]: *** [Makefile:1800: check-am] Error 2
make[2]: Leaving directory '/var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_test_20180809-181720

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.8.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv app-emulation/libcacard
[ebuild  N    ] app-emulation/libcacard-2.6.0  USE="passthrough -static-libs"
Comment 1 Toralf Förster gentoo-dev 2018-08-15 17:57:31 UTC
Created attachment 543584 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-15 17:57:34 UTC
Created attachment 543586 [details]
app-emulation:libcacard-2.6.0:20180814-195515.log
Comment 3 Toralf Förster gentoo-dev 2018-08-15 17:57:37 UTC
Created attachment 543588 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-08-15 17:57:40 UTC
Created attachment 543590 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-08-15 17:57:43 UTC
Created attachment 543592 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-08-15 17:57:46 UTC
Created attachment 543594 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-08-15 17:57:49 UTC
Created attachment 543596 [details]
temp.tbz2
Comment 8 Toralf Förster gentoo-dev 2018-08-15 17:57:54 UTC
Created attachment 543598 [details]
tests.tbz2
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2018-10-13 19:01:31 UTC
Same failure for x86:

> make[3]: Entering directory '/var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0'
> (cd tests/ && /var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0/tests/setup-softhsm2.sh)
> which: no pkcs11-tool in (/usr/lib/portage/python3.6/ebuild-helpers/xattr:/usr/lib/portage/python3.6/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/i686-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin)
> which: no p11tool in (/usr/lib/portage/python3.6/ebuild-helpers/xattr:/usr/lib/portage/python3.6/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/i686-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin)
> which: no certtool in (/usr/lib/portage/python3.6/ebuild-helpers/xattr:/usr/lib/portage/python3.6/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/i686-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin)
> /var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0/tests/setup-softhsm2.sh: line 51: [: too many arguments
> which: no softhsm2-util in (/usr/lib/portage/python3.6/ebuild-helpers/xattr:/usr/lib/portage/python3.6/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/i686-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin)
> /var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0/tests/setup-softhsm2.sh: line 82: softhsm2-util: command not found
> /var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0/tests/setup-softhsm2.sh: line 18: pkcs11-tool: command not found
> Couldn't generate RSA:1024 key pair
> /var/tmp/portage/app-emulation/libcacard-2.6.0/work/libcacard-2.6.0/tests/setup-softhsm2.sh: line 18: pkcs11-tool: command not found
> Couldn't generate RSA:1024 key pair
> ERROR: Failed to add module "SoftHSM PKCS#11". Probable cause : "/usr/lib64/pkcs11/libsofthsm2.so: cannot open shared object file: No such file or directory".
> make[3]: *** [Makefile:1991: tests/softhsm2.conf] Error 22
Comment 10 Tiziano Müller (RETIRED) gentoo-dev 2018-10-14 13:31:56 UTC
seems we are missing dev-libs/nss (and maybe some others in DEPEND="test? ( ... )")
Comment 11 Tiziano Müller (RETIRED) gentoo-dev 2018-11-23 07:45:54 UTC
*** Bug 670747 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2018-11-23 07:51:51 UTC
The bug has been closed via the following commit(s):

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

commit 2084875d5ddd01a0efb61a5d18aff9bb049ff6d5
Author:     Tiziano Müller <dev-zero@gentoo.org>
AuthorDate: 2018-11-23 07:49:56 +0000
Commit:     Tiziano Müller <dev-zero@gentoo.org>
CommitDate: 2018-11-23 07:51:23 +0000

    app-emulation/libcacard: fix test failures
    
    by reducing the test suite for now to avoid pulling in SoftHSMv2
    
    Closes: https://bugs.gentoo.org/663704
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Tiziano Müller <dev-zero@gentoo.org>

 app-emulation/libcacard/libcacard-2.6.0.ebuild | 9 +++++++++
 1 file changed, 9 insertions(+)