]> git.proxmox.com Git - mirror_frr.git/commitdiff
redhat: Fix dependencies for rpm package
authorMartin Winter <mwinter@opensourcerouting.org>
Thu, 13 Apr 2017 03:23:18 +0000 (20:23 -0700)
committerMartin Winter <mwinter@opensourcerouting.org>
Thu, 13 Apr 2017 03:23:18 +0000 (20:23 -0700)
- Add bison, flex & autoconf
- Remove systemd for systems without it (i.e. CentOS 6)
- Update doc to reflect dependencies

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
redhat/README.rpm_build.md
redhat/frr.spec.in

index d3fd271c62bba184899459ab0d36954a3a90055a..fa1d56e0ef6940ae0a0f1f5f75efd0bed9cafd3c 100644 (file)
@@ -6,10 +6,18 @@ Building your own FRRouting RPM
 
         yum install git autoconf automake libtool make gawk readline-devel \
         texinfo dejagnu net-snmp-devel groff rpm-build net-snmp-devel \
-        libcap-devel texi2html
+        libcap-devel texi2html bison flex
+
+    Additionally, on systems with systemd (CentOS 7, Fedora)
+
+        yum install systemd-devel
 
     (use `dnf install` on new Fedora instead of `yum install`)
-    
+
+    **CentOS 6:** Please check doc/Building_FRR_on_CentOS6.md for details on
+    how to install required version of autoconf, automake and bison. The
+    versions in the common Repo are too old.
+
 2. Checkout FRR under a **unpriviledged** user account
 
         git clone https://github.com/frrouting/frr.git frr
index 0d3bf6db20e72d3abf2daf00ea447c149b0ff8dd..385d5f4202378c3ce3683f7678b8ac95ab079a72 100644 (file)
@@ -106,16 +106,16 @@ Requires:       ncurses json-c
 Requires(pre):  /sbin/install-info
 Requires(preun): /sbin/install-info
 Requires(post): /sbin/install-info
-BuildRequires:  texi2html texinfo autoconf patch libcap-devel groff 
+BuildRequires:  texi2html texinfo autoconf automake patch libcap-devel groff
 BuildRequires:  readline readline-devel ncurses ncurses-devel
-BuildRequires:  json-c-devel bison flex
+BuildRequires:  json-c-devel bison >= 2.7 flex
 Requires:       ncurses initscripts
 %if %{with_pam}
 BuildRequires:  pam-devel
 Requires:       pam
 %endif
 %if "%{initsystem}" == "systemd"
-BuildRequires:      systemd
+BuildRequires:      systemd systemd-devel
 Requires(post):     systemd
 Requires(preun):    systemd
 Requires(postun):   systemd
@@ -242,7 +242,9 @@ developing OSPF-API and frr applications.
 %endif
     --enable-gcc-rdynamic \
     --enable-isisd=yes \
+%if "%{initsystem}" == "systemd"
     --enable-systemd=yes \
+%endif
     --enable-poll=yes
 
 make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"