Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624588 - sys-auth/google-authenticator-1.01_pre20160307231538 : FAIL: pam_google_authenticator_unittest
Summary: sys-auth/google-authenticator-1.01_pre20160307231538 : FAIL: pam_google_authe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: tastytea
URL: https://github.com/google/google-auth...
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-07-11 17:59 UTC by Toralf Förster
Modified: 2020-04-11 19:58 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.59 KB, text/plain)
2017-07-11 18:00 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,210.22 KB, text/plain)
2017-07-11 18:00 UTC, Toralf Förster
Details
environment (environment,40.41 KB, text/plain)
2017-07-11 18:00 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,48.86 KB, application/x-bzip)
2017-07-11 18:00 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.06 KB, application/x-bzip)
2017-07-11 18:00 UTC, Toralf Förster
Details
sys-auth:google-authenticator-1.01_pre20160307231538:20170711-093355.log (sys-auth:google-authenticator-1.01_pre20160307231538:20170711-093355.log,23.28 KB, text/plain)
2017-07-11 18:00 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,14.90 KB, application/x-bzip)
2017-07-11 18:00 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-07-11 17:59:57 UTC
make[1]: Entering directory '/var/tmp/portage/sys-auth/google-authenticator-1.01_pre20160307231538/work/google-authenticator-1.01'
make[2]: Entering directory '/var/tmp/portage/sys-auth/google-authenticator-1.01_pre20160307231538/work/google-authenticator-1.01'
FAIL: pam_google_authenticator_unittest
============================================================================
Testsuite summary for google-authenticator 1.01
============================================================================

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_20170706-204158

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

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

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
Comment 1 Toralf Förster gentoo-dev 2017-07-11 18:00:00 UTC
Created attachment 483224 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-11 18:00:04 UTC
Created attachment 483226 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-07-11 18:00:07 UTC
Created attachment 483228 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-07-11 18:00:10 UTC
Created attachment 483230 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-07-11 18:00:14 UTC
Created attachment 483232 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-11 18:00:17 UTC
Created attachment 483234 [details]
sys-auth:google-authenticator-1.01_pre20160307231538:20170711-093355.log
Comment 7 Toralf Förster gentoo-dev 2017-07-11 18:00:20 UTC
Created attachment 483236 [details]
temp.tbz2
Comment 8 Craig Andrews gentoo-dev 2017-08-15 16:20:39 UTC
Reported upstream at https://github.com/google/google-authenticator-libpam/issues/68
Comment 9 tastytea 2019-11-23 00:18:27 UTC
The upstream issue is closed. 1.05 has RESTRICT="test". If I remove that, the test fails. However, if I compile manually, the test succeeds.

The failed test outputs the same error as in the mentioned upstream issue, but gives an additional hint: »Failed to change user id to "nobody"«.

With FEATURES="-userpriv" the test fails with »pam_google_authenticator_unittest: tests/pam_google_authenticator_unittest.c:382: main: Assertion `pam
_sm_authenticate(NULL, 0, targc, targv) == PAM_IGNORE' failed.« instead.

Looks like it fails due to sandboxing. Can we close this?
Comment 10 Craig Andrews gentoo-dev 2019-11-23 01:11:55 UTC
Could we remove RESTRICT=test and patch the source to just disable the failing test, allowing the others to run?
Comment 11 Joonas Niilola gentoo-dev 2020-01-24 10:58:06 UTC
(In reply to Craig Andrews from comment #10)
> Could we remove RESTRICT=test and patch the source to just disable the
> failing test, allowing the others to run?

Yes please, many packages do this.
Comment 12 Larry the Git Cow gentoo-dev 2020-04-11 19:58:58 UTC
The bug has been closed via the following commit(s):

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

commit aa7da5ea0d4cf2d11be41b82ac64f80b2dfa9294
Author:     Ronny Gutbrod <gentoo@tastytea.de>
AuthorDate: 2020-04-11 19:24:44 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2020-04-11 19:58:51 +0000

    sys-auth/google-authenticator: Remove failing tests.
    
    Closes: https://bugs.gentoo.org/624588
    Signed-off-by: Ronny Gutbrod <gentoo@tastytea.de>
    Closes: https://github.com/gentoo/gentoo/pull/15312
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 .../files/1.08-remove-failing-tests.patch          | 301 +++++++++++++++++++++
 .../google-authenticator-1.08.ebuild               |   2 +-
 .../google-authenticator-9999.ebuild               |   2 +-
 3 files changed, 303 insertions(+), 2 deletions(-)