|
|
|
@ -12,12 +12,12 @@
|
|
|
|
|
|
|
|
|
|
%global __provides_exclude_from ^%{_libdir}/varnish/vmods
|
|
|
|
|
|
|
|
|
|
%global abi cd1d10ab53a6f6115b2b4f3b2a1da94c1f749f80
|
|
|
|
|
%global vrt 18.0
|
|
|
|
|
%global abi ed1243ca162a7b1d975bc0332f0d66d33f0bc78e
|
|
|
|
|
%global vrt 20.0
|
|
|
|
|
|
|
|
|
|
# Package scripts are now external
|
|
|
|
|
# https://github.com/varnishcache/pkg-varnish-cache
|
|
|
|
|
%global commit1 cfa8cb3724e4ca6398f60b09157715bcb99d189d
|
|
|
|
|
%global commit1 7d90347be31891b338dededb318594cebb668ba7
|
|
|
|
|
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
|
|
|
|
|
|
|
|
|
|
# Default: Use jemalloc, as adviced by upstream project
|
|
|
|
@ -36,8 +36,8 @@
|
|
|
|
|
|
|
|
|
|
Summary: High-performance HTTP accelerator
|
|
|
|
|
Name: varnish
|
|
|
|
|
Version: 7.4.2
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 7.6.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
License: BSD-2-Clause AND (BSD-2-Clause-FreeBSD AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain AND Zlib)
|
|
|
|
|
URL: https://www.varnish-cache.org/
|
|
|
|
|
Source0: http://varnish-cache.org/_downloads/%{name}-%{version}.tgz
|
|
|
|
@ -67,17 +67,20 @@ BuildRequires: python34 python34-sphinx python34-docutils
|
|
|
|
|
BuildRequires: python3, python3-sphinx, python3-docutils
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
%if %{with system_allocator}
|
|
|
|
|
# use glibc
|
|
|
|
|
%else
|
|
|
|
|
%ifnarch aarch64
|
|
|
|
|
BuildRequires: jemalloc-devel
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
BuildRequires: pcre2-devel
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
%if %{with system_allocator}
|
|
|
|
|
# use glibc
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: jemalloc-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Extra requirements for the build suite
|
|
|
|
|
# needs haproxy2
|
|
|
|
@ -86,15 +89,15 @@ BuildRequires: haproxy
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: nghttp2
|
|
|
|
|
|
|
|
|
|
# Varnish actually needs gcc installed to work. It uses the C compiler
|
|
|
|
|
# at runtime to compile the VCL configuration files. This is by design.
|
|
|
|
|
Requires: gcc
|
|
|
|
|
Requires: logrotate
|
|
|
|
|
Requires: ncurses
|
|
|
|
|
Requires: pcre2
|
|
|
|
|
Requires: redhat-rpm-config
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
Requires(post): /usr/bin/uuidgen
|
|
|
|
|
# Varnish actually needs gcc installed to work. It uses the C compiler
|
|
|
|
|
# at runtime to compile the VCL configuration files. This is by design.
|
|
|
|
|
Requires: gcc
|
|
|
|
|
Requires(post): systemd-units
|
|
|
|
|
Requires(post): systemd-sysv
|
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
@ -163,6 +166,8 @@ export CFLAGS="$CFLAGS -ffloat-store -fexcess-precision=standard"
|
|
|
|
|
export CFLAGS="$CFLAGS -Wno-error=free-nonheap-object"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# What platform is this
|
|
|
|
|
uname -a
|
|
|
|
|
|
|
|
|
|
# What gcc version is this?
|
|
|
|
|
gcc --version
|
|
|
|
@ -199,20 +204,18 @@ rm -rf doc/html/_sources
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
# Remove these for now. Hard to get the size and timing right
|
|
|
|
|
%ifarch s390 s390x aarch64
|
|
|
|
|
rm bin/varnishtest/tests/o00005.vtc
|
|
|
|
|
%endif
|
|
|
|
|
%ifarch armv7hl
|
|
|
|
|
rm bin/varnishtest/tests/b00046.vtc
|
|
|
|
|
%endif
|
|
|
|
|
%ifarch s390x
|
|
|
|
|
rm bin/varnishtest/tests/r02310.vtc
|
|
|
|
|
%endif
|
|
|
|
|
# failing on all arches
|
|
|
|
|
rm bin/varnishtest/tests/h00004.vtc
|
|
|
|
|
# Up the stack size in tests, necessary on secondary arches
|
|
|
|
|
sed -i 's/thread_pool_stack 80k/thread_pool_stack 128k/g;' bin/varnishtest/tests/*.vtc
|
|
|
|
|
sed -i 's/file,2M/file,8M/' bin/varnishtest/tests/r04036.vtc
|
|
|
|
|
|
|
|
|
|
%make_build check
|
|
|
|
|
# Just a hack to avoid too high load on secondary arch builders
|
|
|
|
|
%ifarch s390x ppc64le
|
|
|
|
|
# This works when ran alone, but not in the whole suite. Load and/or timing issues
|
|
|
|
|
rm bin/varnishtest/tests/t02014.vtc
|
|
|
|
|
make -j2 check
|
|
|
|
|
%else
|
|
|
|
|
#make_build check
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
@ -287,9 +290,10 @@ chmod 644 lib/libvmod_*/*.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
getent group varnish >/dev/null || groupadd -r varnish
|
|
|
|
|
getent passwd varnish >/dev/null || \
|
|
|
|
|
useradd -r -g varnish -d /var/lib/varnish -s /sbin/nologin \
|
|
|
|
|
getent group varnish >/dev/null ||
|
|
|
|
|
groupadd -r varnish
|
|
|
|
|
getent passwd varnish >/dev/null ||
|
|
|
|
|
useradd -r -g varnish -d /var/lib/varnish -s /sbin/nologin \
|
|
|
|
|
-c "Varnish Cache" varnish
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
@ -309,6 +313,11 @@ test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 19 2024 Luboš Uhliarik <luhliari@redhat.com> - 7.6.0-3
|
|
|
|
|
- Resolves: RHEL-59267 - varnish rebase to 7.6.0
|
|
|
|
|
- Resolves: RHEL-30333 CVE-2024-30156 varnish: HTTP/2 Broken Window
|
|
|
|
|
Attack may result in denial of service
|
|
|
|
|
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 7.4.2-5
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|