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

Bug 795264

Summary: sys-apps/fwupd-1.5.9 fails configure on non-x86
Product: Gentoo Linux Reporter: Jannik Glückert <jannik.glueckert>
Component: Current packagesAssignee: Marek Szuba <marecki>
Status: RESOLVED FIXED    
Severity: normal CC: sam, slashbeast
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 (RETIRED) archtester gentoo-dev 2022-07-27 11:34:08 UTC
fwupd ebuilds have had a fix for this for quite a while, closing.