Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710502 - dev-libs/libgit2-0.99.0[gssapi] fails with CMake Error at cmake/Modules/SelectGSSAPI.cmake:48 (MESSAGE): Asked for backend yes but it wasn't found
Summary: dev-libs/libgit2-0.99.0[gssapi] fails with CMake Error at cmake/Modules/Selec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-22 16:44 UTC by Andrei Slavoiu
Modified: 2020-02-24 17:03 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,7.05 KB, text/plain)
2020-02-22 16:45 UTC, Andrei Slavoiu
Details
emerge --info (emerge.info,8.76 KB, text/plain)
2020-02-22 21:51 UTC, Andrei Slavoiu
Details
ebuild with gssapi usex fixed (libgit2-0.99.0.ebuild,1.71 KB, text/plain)
2020-02-24 16:53 UTC, ron widler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2020-02-22 16:44:52 UTC
-- Found GSSAPI: /usr/lib64/libgssapi_krb5.so;/usr/lib64/libkrb5.so;/usr/lib64/libk5crypto.so;/usr/lib64/libcom_err.so  
CMake Error at cmake/Modules/SelectGSSAPI.cmake:48 (MESSAGE):
  Asked for backend yes but it wasn't found
Call Stack (most recent call first):
  src/CMakeLists.txt:238 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/dev-libs/libgit2-0.99.0/work/libgit2-0.99.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/dev-libs/libgit2-0.99.0/work/libgit2-0.99.0_build/CMakeFiles/CMakeError.log".
 * ERROR: dev-libs/libgit2-0.99.0::gentoo failed (configure phase):
 *   cmake failed


Reproducible: Always
Comment 1 Andrei Slavoiu 2020-02-22 16:45:29 UTC
Created attachment 615130 [details]
build.log
Comment 2 Jonas Stein gentoo-dev 2020-02-22 19:30:04 UTC
Thank you for the report. Please recompile and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 3 Andrei Slavoiu 2020-02-22 21:51:47 UTC
Created attachment 615182 [details]
emerge --info
Comment 4 Andrei Slavoiu 2020-02-22 22:00:24 UTC
Ok, I added the output of `emerge --info`, but it's completely irrelevant to this bug. It's quite obvious that the ebuild passed USE_GSSAPI=yes where the package expects either "on" to autodetect the backend or the explicit backend name.
Comment 5 ron widler 2020-02-24 16:52:36 UTC
to test this changed the ebuild to use `-DUSE_GSSAPI=$(usex gssapi on off)` to test, but this leads to 
---
CMake Error at cmake/Modules/SelectGSSAPI.cmake:48 (MESSAGE):
  Asked for backend on but it wasn't found
---
so i guess it wants something else.

setting `-DUSE_GSSAPI=gssapi` works for me, as does "-DUSE_GSSAPI=no".

so i guess the solution could be to use "-DUSE_GSSAPI=$(usex gssapi gssapi no)"

i'll attach an ebuild with this change made for further testing.
Comment 6 ron widler 2020-02-24 16:53:12 UTC
Created attachment 615462 [details]
ebuild with gssapi usex fixed
Comment 7 Larry the Git Cow gentoo-dev 2020-02-24 17:03:15 UTC
The bug has been closed via the following commit(s):

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

commit a9109f0db6cf2ec9b7cf843cf047948be43ef68a
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-02-24 16:58:39 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-02-24 17:01:45 +0000

    dev-libs/libgit2: Fix boolean args
    
    Upstream started using exact string matches in some places; adjust
    the usex constants appropriately.
    
    Closes: https://bugs.gentoo.org/710502
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-libs/libgit2/libgit2-0.99.0-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)