Added simple compilation fix for gcc-10.0.1/s390x
This commit is contained in:
parent
eaeab2ccb1
commit
42153a6679
11
varnish-6.3.2_fix_s390x.patch
Normal file
11
varnish-6.3.2_fix_s390x.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- bin/varnishtest/vtc_varnish.c.orig 2020-02-10 23:29:22.765650634 +0100
|
||||||
|
+++ bin/varnishtest/vtc_varnish.c 2020-02-10 23:30:04.179140158 +0100
|
||||||
|
@@ -117,7 +117,7 @@
|
||||||
|
cmd, errno, strerror(errno));
|
||||||
|
}
|
||||||
|
i = VCLI_ReadResult(v->cli_fd, &retval, &r, vtc_maxdur);
|
||||||
|
- if (i != 0 && !vtc_stop)
|
||||||
|
+ if (i != 0 && !vtc_stop && cmd != NULL)
|
||||||
|
vtc_fatal(v->vl, "CLI failed (%s) = %d %u %s",
|
||||||
|
cmd, i, retval, r);
|
||||||
|
vtc_log(v->vl, 3, "CLI RX %u", retval);
|
12
varnish.spec
12
varnish.spec
@ -24,7 +24,7 @@
|
|||||||
Summary: High-performance HTTP accelerator
|
Summary: High-performance HTTP accelerator
|
||||||
Name: varnish
|
Name: varnish
|
||||||
Version: 6.3.2
|
Version: 6.3.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://www.varnish-cache.org/
|
URL: https://www.varnish-cache.org/
|
||||||
Source0: http://varnish-cache.org/_downloads/%{name}-%{version}%{?vd_rc}.tgz
|
Source0: http://varnish-cache.org/_downloads/%{name}-%{version}%{?vd_rc}.tgz
|
||||||
@ -62,6 +62,9 @@ Patch16: varnish-6.3.0_el6_fix_warning_from_old_gcc.patch
|
|||||||
# Patch 017: Fix stack size on ppc64 in test c_00057, upstream commit 88948d9
|
# Patch 017: Fix stack size on ppc64 in test c_00057, upstream commit 88948d9
|
||||||
#Patch17: varnish-6.2.0_fix_ppc64_for_test_c00057.patch
|
#Patch17: varnish-6.2.0_fix_ppc64_for_test_c00057.patch
|
||||||
|
|
||||||
|
# Patch 018: gcc-10.0.1/s390x compilation fix
|
||||||
|
Patch18: varnish-6.3.2_fix_s390x.patch
|
||||||
|
|
||||||
%if 0%{?fedora} > 29
|
%if 0%{?fedora} > 29
|
||||||
Provides: varnish%{_isa} = %{version}-%{release}
|
Provides: varnish%{_isa} = %{version}-%{release}
|
||||||
Provides: varnishd(abi)%{_isa} = %{abi}
|
Provides: varnishd(abi)%{_isa} = %{abi}
|
||||||
@ -95,7 +98,7 @@ BuildRequires: make
|
|||||||
BuildRequires: nghttp2
|
BuildRequires: nghttp2
|
||||||
|
|
||||||
# haproxy is broken in rawhide now
|
# haproxy is broken in rawhide now
|
||||||
#if 0%{?fedora} || 0%{?rhel} >= 8
|
#if 0#{?fedora} || 0#{?rhel} >= 8
|
||||||
#BuildRequires: haproxy
|
#BuildRequires: haproxy
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -188,6 +191,8 @@ sed -i '8 i\RPM_BUILD_ROOT=%{buildroot}' find-provides
|
|||||||
%patch16 -p1
|
%patch16 -p1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%patch18 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?rhel} == 6
|
%if 0%{?rhel} == 6
|
||||||
export CFLAGS="%{optflags} -fPIC"
|
export CFLAGS="%{optflags} -fPIC"
|
||||||
@ -421,6 +426,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 11 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.3.2-2
|
||||||
|
- Added simple compilation fix for gcc-10.0.1/s390x
|
||||||
|
|
||||||
* Tue Feb 11 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.3.2-1
|
* Tue Feb 11 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.3.2-1
|
||||||
- New upstream release, a security release. Includes fix for VSV00005
|
- New upstream release, a security release. Includes fix for VSV00005
|
||||||
- Added new checkout of pkg-varnish
|
- Added new checkout of pkg-varnish
|
||||||
|
Loading…
Reference in New Issue
Block a user