Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 780903 - sys-apps/fwupd-1.4.7: ERROR: Dependency "tss2-esys" not found, tried pkgconfig and cmake
Summary: sys-apps/fwupd-1.4.7: ERROR: Dependency "tss2-esys" not found, tried pkgconfi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 768039
  Show dependency tree
 
Reported: 2021-04-08 00:15 UTC by Thomas Deutschmann (RETIRED)
Modified: 2021-04-24 12:57 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,9.45 KB, text/plain)
2021-04-08 00:15 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2021-04-08 00:15:04 UTC
Created attachment 698331 [details]
build.log

> Checking for function "pwrite" : YES
> Found CMake: /usr/bin/cmake (3.18.5)
> Run-time dependency tss2-esys found: NO (tried pkgconfig and cmake)
> 
> meson.build:273:2: ERROR: Dependency "tss2-esys" not found, tried pkgconfig and cmake
> 
> A full log can be found at /var/tmp/portage/sys-apps/fwupd-1.4.7/work/fwupd-1.4.7-build/meson-logs/meson-log.txt
>  * ERROR: sys-apps/fwupd-1.4.7::gentoo failed (configure phase):
>  *   (no error message)
>
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2021-04-08 00:18:05 UTC
Installing app-crypt/tpm2-tss fixes the problem so probably a missing test dep.
Comment 2 Larry the Git Cow gentoo-dev 2021-04-12 16:41:21 UTC
The bug has been closed via the following commit(s):

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

commit d039d6fb7710bff785de9a6f73f74d4856f5586e
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-04-12 16:39:55 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-04-12 16:41:12 +0000

    sys-apps/fwupd: Fixed build with FEATURES="test"
    
    Closes: https://bugs.gentoo.org/780903
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-apps/fwupd/fwupd-1.4.7.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 3 Horst Prote 2021-04-15 11:34:16 UTC
Having none of the USE flags that would pull in app-crypt/tpm2-tss activated I still get the same error. After some digging I found the line
  WARNING: Unknown options: "plugin_tpm"
in /var/tmp/portage/sys-apps/fwupd-1.4.7/work/fwupd-1.4.7-build/meson-logs/meson-log.txt and then in /var/tmp/portage/sys-apps/fwupd-1.4.7/work/fwupd-1.4.7/meson.build
  if build_standalone and get_option('tpm')
    tpm2tss = dependency('tss2-esys', version : '>= 2.0')
    conf.set('HAVE_TSS2', '1')
  else
    tpm2tss = dependency('', required: false)
  endif

So I changed
        $(meson_use tpm plugin_tpm)
to
        $(meson_use tpm tpm)
in the ebuild and the error was gone.
Comment 4 Tomasz Golinski 2021-04-21 08:50:43 UTC
I also hit the same problem. I have only these flags enabled: USE="elogind nvme". sys-apps/fwupd-1.5.9 doesn't have this problem anymore.
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-04-21 09:04:24 UTC
Can you test fwupd-1.4.8 as well please?
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2021-04-21 13:41:47 UTC
> Checking for function "getuid" : YES
> Checking for function "realpath" : YES
> Header <locale.h> has symbol "LC_MESSAGES" : YES
> Checking for function "pwrite" : YES
> Found CMake: /usr/bin/cmake (3.18.5)
> Run-time dependency tss2-esys found: NO (tried pkgconfig and cmake)
> 
> meson.build:273:2: ERROR: Dependency "tss2-esys" not found, tried pkgconfig and cmake
> 
> A full log can be found at /var/tmp/portage/sys-apps/fwupd-1.4.8/work/fwupd-1.4.8-build/meson-logs/meson-log.txt
>  * ERROR: sys-apps/fwupd-1.4.8::gentoo failed (configure phase):
>  *   (no error message)
>
Comment 7 Larry the Git Cow gentoo-dev 2021-04-24 12:57:38 UTC
The bug has been closed via the following commit(s):

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

commit 9efc245ed225db85e36e141457b42f0dd8b8435b
Author:     Alarig Le Lay <alarig@swordarmor.fr>
AuthorDate: 2021-04-24 12:25:25 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-04-24 12:57:16 +0000

    sys-apps/fwupd: tpm isn’t a plugin anymore
    
    Closes: https://bugs.gentoo.org/780903
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
    Closes: https://github.com/gentoo/gentoo/pull/20524
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-apps/fwupd/fwupd-1.4.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)