From: Tagir Bakirov Date: Thu, 11 Jun 2015 10:26:51 +0000 (+0200) Subject: contrib/redhat/collectd.spec: added bison and flex X-Git-Tag: collectd-5.5.1~120 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=38203b1c8d8a8e5e567d7f6783dd8b88a2487070;p=collectd.git 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. --- 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 \