]> git.proxmox.com Git - mirror_frr.git/commit - redhat/frr.spec.in
redhat: enable dist tarball to build in a chroot
authorArthur Jones <arthur.jones@riverbed.com>
Mon, 19 Mar 2018 17:04:00 +0000 (10:04 -0700)
committerArthur Jones <arthur.jones@riverbed.com>
Mon, 19 Mar 2018 18:37:58 +0000 (11:37 -0700)
commita61bbca8312023d74dcc2ddf3a6dc3f93d3af03e
treee5756ce865aa7ead671189aa5ce8d6ea0b121e0a
parent5a52387a11c907f6435e76ac27741f734106b5a5
redhat: enable dist tarball to build in a chroot

When building the rpms, we can use a chroot (in my case docker) to
ensure that the BuildRequires are complete.  This test failed with
errors like:

    checking for CARES... no
    configure: error: trying to build nhrpd, but libcares not found. install c-ares and its -dev headers.
    error: Bad exit status from /var/tmp/rpm-tmp.FewvLf (%build)

This is due to a couple missing BuildRequires in the spec file.  Here, we
add those in for all RPM builds.

Testing done:

Ran a docker build on CentOS7 which succeeded.  Loaded the modules onto
CentOS6 to make sure they were at least valid there, that succeeded.

Issue: https://github.com/FRRouting/frr/issues/1930
Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
redhat/frr.spec.in