[arch-commits] Commit in collectd/trunk (PKGBUILD)
Gaëtan Bisson
bisson at archlinux.org
Thu Nov 9 16:26:00 UTC 2017
Date: Thursday, November 9, 2017 @ 16:25:59
Author: bisson
Revision: 266026
fix FS#56160
Modified:
collectd/trunk/PKGBUILD
----------+
PKGBUILD | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-09 15:29:49 UTC (rev 266025)
+++ PKGBUILD 2017-11-09 16:25:59 UTC (rev 266026)
@@ -4,7 +4,7 @@
pkgname=collectd
pkgver=5.7.2
-pkgrel=5
+pkgrel=6
pkgdesc='Daemon which collects system performance statistics periodically'
url='https://collectd.org/'
arch=('i686' 'x86_64')
@@ -40,7 +40,7 @@
'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 @@
cd "${srcdir}/${pkgname}-${pkgver}"
sed 's/-Werror//g' -i *.ac */*.{am,in} */*/*.{am,in}
autoreconf
+
+ # Fix turbostat build; 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() {
More information about the arch-commits
mailing list