From 63f8e1329148921e2995cb60ae5e0c41536f0ff1 Mon Sep 17 00:00:00 2001 From: Ralf Barth Date: Thu, 9 Nov 2017 14:56:09 +0100 Subject: [PATCH] add and fix header include patch from FS#56160 --- trunk/PKGBUILD | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 21bde64..04e9ee3 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -1,4 +1,4 @@ -# $Id$ +# $Id: PKGBUILD 263014 2017-10-15 23:13:57Z bisson $ # Maintainer: Gaetan Bisson # Contributor: Gerhard Brauer @@ -40,7 +40,7 @@ makedepends=('curl' 'libdbi' 'libesmtp' 'libgcrypt' 'libmemcached' 'libmariadbclient' 'iproute2' 'net-snmp' 'libnotify' 'openipmi' 'liboping' 'libpcap' 'postgresql-libs' 'python2' 'rrdtool' 'lm_sensors' 'libvirt' 'libxml2' 'yajl' 'libatasmart' 'lvm2' - 'protobuf-c' 'mosquitto' 'libmicrohttpd') + 'protobuf-c' 'mosquitto' 'libmicrohttpd' 'linux-headers') depends=('libltdl' 'iptables') @@ -55,6 +55,12 @@ prepare() { cd "${srcdir}/${pkgname}-${pkgver}" sed 's/-Werror//g' -i *.ac */*.{am,in} */*/*.{am,in} autoreconf + + # For turbostat, see: FS#56160 + _lh=$(pacman -Qlq linux-headers | grep ARCH/build/$) + sed \ + -e "s:asm/msr-index\\.h:$_lh/arch/x86/include/asm/msr-index.h:g" \ + -i configure src/turbostat.c } build() { -- 2.14.3