Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 795264 - sys-apps/fwupd-1.5.9 fails configure on non-x86
Summary: sys-apps/fwupd-1.5.9 fails configure on non-x86
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-10 18:43 UTC by Jannik Glückert
Modified: 2022-07-27 11:34 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jannik Glückert 2021-06-10 18:43:33 UTC
fwupd has the meson option "plugin_msr", which defaults to true and is not set by the ebuild. This causes a configure error on non-x86

This is the excerpt from meson.build:

if cc.has_header('cpuid.h') and cc.has_header_symbol('cpuid.h', '__get_cpuid_count') and (host_cpu == 'x86' or host_cpu == 'x86_64')
  conf.set('HAVE_CPUID_H', '1')
else
  if get_option('plugin_msr')
    error('cpuid.h is required for -Dplugin_msr=true')
  endif
endif

As such, -Dplugin_msr should be disabled on any non-x86 platform
Comment 1 Marek Szuba archtester gentoo-dev 2022-07-27 11:34:08 UTC
fwupd ebuilds have had a fix for this for quite a while, closing.