From 38203b1c8d8a8e5e567d7f6783dd8b88a2487070 Mon Sep 17 00:00:00 2001 From: Tagir Bakirov Date: Thu, 11 Jun 2015 12:26:51 +0200 Subject: [PATCH] contrib/redhat/collectd.spec: added bison and flex Current .spec does not work due to missing bison and flex dependencies. This fix lets install bison and flex into the build environment as well as define YACC and YFLAGS environment variables. --- contrib/redhat/collectd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 9d491ff8..1e32b27f 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -224,7 +224,7 @@ Source: http://collectd.org/files/%{name}-%{version}.tar.bz2 License: GPLv2 Group: System Environment/Daemons BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildRequires: libgcrypt-devel, kernel-headers, libtool-ltdl-devel, libcap-devel +BuildRequires: libgcrypt-devel, kernel-headers, libtool-ltdl-devel, libcap-devel, flex, bison Vendor: collectd development team %if 0%{?el7:1} @@ -1577,6 +1577,9 @@ Collectd utilities %define _with_zookeeper --disable-zookeeper %endif +export YACC=bison +export YFLAGS=-y + %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \ --disable-static \ --without-included-ltdl \ -- 2.11.0