Enable tests and fix them
This commit is contained in:
parent
a335df1437
commit
ee97931bf8
12
radvd.spec
12
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 <pzhukov@redhat.com> - 2.17-12
|
||||
- Enable tests and fix them on big endian arches
|
||||
|
||||
* Thu Apr 12 2018 Pavel Zhukov <pzhukov@redhat.com> - 2.17-11
|
||||
- Enable Werror=all
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user