fixes #772481 - Low number of open files for squid process
fixes FTBFS due to gcc4.7
This commit is contained in:
parent
d1fd230342
commit
ceb5ad7c5f
13
squid-3.2.0.14-gcc47.patch
Normal file
13
squid-3.2.0.14-gcc47.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -up squid-3.2.0.14/src/StoreEntryStream.h.gcc47 squid-3.2.0.14/src/StoreEntryStream.h
|
||||||
|
--- squid-3.2.0.14/src/StoreEntryStream.h.gcc47 2012-01-13 15:34:52.973978675 +0100
|
||||||
|
+++ squid-3.2.0.14/src/StoreEntryStream.h 2012-01-13 15:36:01.820858662 +0100
|
||||||
|
@@ -70,7 +70,8 @@ protected:
|
||||||
|
return traits_type::eof();
|
||||||
|
|
||||||
|
if (aChar != traits_type::eof()) {
|
||||||
|
- char chars[1] = {aChar};
|
||||||
|
+ char chars[1];
|
||||||
|
+ chars[0] = aChar;
|
||||||
|
|
||||||
|
if (aChar != traits_type::eof())
|
||||||
|
theEntry->append(chars, 1);
|
@ -4,6 +4,7 @@ After=syslog.target network.target named.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
LimitNOFILE=16384
|
||||||
EnvironmentFile=/etc/sysconfig/squid
|
EnvironmentFile=/etc/sysconfig/squid
|
||||||
ExecStartPre=/usr/libexec/squid/cache_swap.sh
|
ExecStartPre=/usr/libexec/squid/cache_swap.sh
|
||||||
ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF
|
ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: squid
|
Name: squid
|
||||||
Version: 3.2.0.14
|
Version: 3.2.0.14
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: The Squid proxy caching server
|
Summary: The Squid proxy caching server
|
||||||
Epoch: 7
|
Epoch: 7
|
||||||
# See CREDITS for breakdown of non GPLv2+ code
|
# See CREDITS for breakdown of non GPLv2+ code
|
||||||
@ -35,6 +35,7 @@ Patch203: squid-3.0.STABLE1-perlpath.patch
|
|||||||
Patch204: squid-3.2.0.9-fpic.patch
|
Patch204: squid-3.2.0.9-fpic.patch
|
||||||
Patch205: squid-3.1.9-ltdl.patch
|
Patch205: squid-3.1.9-ltdl.patch
|
||||||
Patch206: squid-3.2.0.13-errname.patch
|
Patch206: squid-3.2.0.13-errname.patch
|
||||||
|
Patch207: squid-3.2.0.14-gcc47.patch
|
||||||
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: bash >= 2.0
|
Requires: bash >= 2.0
|
||||||
@ -96,6 +97,7 @@ The squid-sysvinit contains SysV initscritps support.
|
|||||||
%patch204 -p1 -b .fpic
|
%patch204 -p1 -b .fpic
|
||||||
%patch205 -p1 -b .ltdl
|
%patch205 -p1 -b .ltdl
|
||||||
%patch206 -p1 -b .errname
|
%patch206 -p1 -b .errname
|
||||||
|
%patch207 -p1 -b .gcc47
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch sparcv9 sparc64 s390 s390x
|
%ifarch sparcv9 sparc64 s390 s390x
|
||||||
@ -303,6 +305,10 @@ fi
|
|||||||
/sbin/chkconfig --add squid >/dev/null 2>&1 || :
|
/sbin/chkconfig --add squid >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 13 2012 Jiri Skala <jskala@redhat.com> - 7:3.2.0.14-4
|
||||||
|
- fixes #772481 - Low number of open files for squid process
|
||||||
|
- fixes FTBFS due to gcc4.7
|
||||||
|
|
||||||
* Thu Jan 05 2012 Henrik Nordstrom <henrik@henriknordstrom.net> - 3.2.0.14-3
|
* Thu Jan 05 2012 Henrik Nordstrom <henrik@henriknordstrom.net> - 3.2.0.14-3
|
||||||
- rebuild for gcc-4.7.0
|
- rebuild for gcc-4.7.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user