From ee97931bf81821e8422065a1ac49e9802518a97e Mon Sep 17 00:00:00 2001 From: Pavel Zhukov Date: Mon, 4 Jun 2018 07:42:42 -0400 Subject: [PATCH] Enable tests and fix them --- radvd.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/radvd.spec b/radvd.spec index 32aaca3..ff99bd7 100644 --- a/radvd.spec +++ b/radvd.spec @@ -1,7 +1,7 @@ Summary: A Router Advertisement daemon Name: radvd Version: 2.17 -Release: 11%{?dist} +Release: 12%{?dist} # The code includes the advertising clause, so it's GPL-incompatible License: BSD with advertising Group: System Environment/Daemons @@ -11,6 +11,7 @@ Source1: radvd-tmpfs.conf Source2: radvd.service ## https://github.com/reubenhwk/radvd/commit/6e45acbf3d64b9bd945adcb3de622fd7d059ceb9.patch Patch0: radvd-werror.patch +Patch1: radvd-endianess.patch BuildRequires: gcc BuildRequires: bison @@ -36,6 +37,7 @@ services. %prep %setup -q %patch0 -p1 -b .werror +%patch1 -p1 -b .endianess for F in CHANGES; do iconv -f iso-8859-1 -t utf-8 < "$F" > "${F}.new" @@ -44,9 +46,10 @@ for F in CHANGES; do done %build -export CFLAGS="$RPM_OPT_FLAGS -fPIE -Werror=all" +export CFLAGS="$RPM_OPT_FLAGS -fPIE " export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen' %configure \ + --with-check \ --disable-silent-rules \ --with-pidfile=/run/radvd/radvd.pid make %{?_smp_mflags} @@ -67,7 +70,7 @@ install -m 644 %{SOURCE2} %{buildroot}%{_unitdir} %check # The tests don't work, see https://github.com/reubenhwk/radvd/issues/30 -#make check +make check %postun %systemd_postun_with_restart radvd.service @@ -98,6 +101,9 @@ exit 0 %{_sbindir}/radvdump %changelog +* Mon Jun 04 2018 Pavel Zhukov - 2.17-12 +- Enable tests and fix them on big endian arches + * Thu Apr 12 2018 Pavel Zhukov - 2.17-11 - Enable Werror=all