New uptream release, and a few fixes, see rpm changelog

This commit is contained in:
Ingvar Hagelund 2012-09-03 23:19:44 +02:00
parent 36566df438
commit d44558fce0
4 changed files with 56 additions and 37 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ varnish-2.1.3.tar.gz
/varnish-2.1.4.tar.gz /varnish-2.1.4.tar.gz
/varnish-2.1.5.tar.gz /varnish-2.1.5.tar.gz
/varnish-3.0.2.tar.gz /varnish-3.0.2.tar.gz
/varnish-3.0.3.tar.gz

View File

@ -1 +1 @@
c8eae0aabbe66b6daabdf3a1f58cd47a varnish-3.0.2.tar.gz 714310c83fdbd2061d897dacd3f63d8b varnish-3.0.3.tar.gz

13
varnish.no_pcre_jit.patch Normal file
View File

@ -0,0 +1,13 @@
--- lib/libvarnish/vre.c.orig 2012-08-28 23:56:02.163515172 +0200
+++ lib/libvarnish/vre.c 2012-08-28 23:56:18.111315730 +0200
@@ -40,9 +40,7 @@
pcre_extra *re_extra;
};
-#ifndef PCRE_STUDY_JIT_COMPILE
-#define PCRE_STUDY_JIT_COMPILE 0
-#endif
+#define PCRE_STUDY_JIT_COMPILE 0
/*
* We don't want to spread or even expose the majority of PCRE options

View File

@ -1,7 +1,7 @@
Summary: High-performance HTTP accelerator Summary: High-performance HTTP accelerator
Name: varnish Name: varnish
Version: 3.0.2 Version: 3.0.3
Release: 3%{?dist} Release: 1%{?dist}
License: BSD License: BSD
Group: System Environment/Daemons Group: System Environment/Daemons
URL: http://www.varnish-cache.org/ URL: http://www.varnish-cache.org/
@ -10,6 +10,7 @@ Source1: varnish.service
Source2: varnish.params Source2: varnish.params
Source3: varnishncsa.service Source3: varnishncsa.service
Source4: varnishlog.service Source4: varnishlog.service
Patch1: varnish.no_pcre_jit.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# To build from git, start with a make dist, see redhat/README.redhat # To build from git, start with a make dist, see redhat/README.redhat
# You will need at least automake autoconf libtool python-docutils # You will need at least automake autoconf libtool python-docutils
@ -85,28 +86,17 @@ Documentation files for %name
%setup -q %setup -q
#%setup -q -n varnish-cache #%setup -q -n varnish-cache
%ifarch i386 i686 ppc
%patch1
%endif
mkdir examples mkdir examples
cp bin/varnishd/default.vcl etc/zope-plone.vcl examples cp bin/varnishd/default.vcl etc/zope-plone.vcl examples
%build %build
# No rst2man in rhel4 or rhel5 (use pregenerated manpages)
%if 0%{?rhel} <= 5
export RST2MAN=true
%endif
# No pkgconfig/libpcre.pc in rhel4
%if 0%{?rhel} == 4
export PCRE_CFLAGS="`pcre-config --cflags`"
export PCRE_LIBS="`pcre-config --libs`"
%endif
# Remove "--disable static" if you want to build static libraries # Remove "--disable static" if you want to build static libraries
# jemalloc is not compatible with Red Hat's ppc64 RHEL kernel :-( %configure --disable-static --localstatedir=/var/lib
%ifarch ppc64 ppc
%configure --disable-static --localstatedir=/var/lib --without-rst2man --without-rst2html --without-jemalloc
%else
%configure --disable-static --localstatedir=/var/lib --without-rst2man --without-rst2html
%endif
# We have to remove rpath - not allowed in Fedora # We have to remove rpath - not allowed in Fedora
# (This problem only visible on 64 bit arches) # (This problem only visible on 64 bit arches)
@ -139,22 +129,6 @@ mv doc/sphinx/\=build/html doc
rm -rf doc/sphinx/\=build rm -rf doc/sphinx/\=build
%check %check
# rhel5 on ppc64 is just too strange
%ifarch ppc64
%if 0%{?rhel} > 4
cp bin/varnishd/.libs/varnishd bin/varnishd/lt-varnishd
%endif
%endif
# The redhat ppc builders seem to have some ulimit problems?
# These tests work on a rhel4 ppc/ppc64 instance outside the builders
%ifarch ppc64 ppc
%if 0%{?rhel} == 4
rm bin/varnishtest/tests/c00031.vtc
rm bin/varnishtest/tests/r00387.vtc
%endif
%endif
LD_LIBRARY_PATH="lib/libvarnish/.libs:lib/libvarnishcompat/.libs:lib/libvarnishapi/.libs:lib/libvcl/.libs:lib/libvgz/.libs" bin/varnishd/varnishd -b 127.0.0.1:80 -C -n /tmp/foo LD_LIBRARY_PATH="lib/libvarnish/.libs:lib/libvarnishcompat/.libs:lib/libvarnishapi/.libs:lib/libvcl/.libs:lib/libvgz/.libs" bin/varnishd/varnishd -b 127.0.0.1:80 -C -n /tmp/foo
make check LD_LIBRARY_PATH="../../lib/libvarnish/.libs:../../lib/libvarnishcompat/.libs:../../lib/libvarnishapi/.libs:../../lib/libvcl/.libs:../../lib/libvgz/.libs" make check LD_LIBRARY_PATH="../../lib/libvarnish/.libs:../../lib/libvarnishcompat/.libs:../../lib/libvarnishapi/.libs:../../lib/libvcl/.libs:../../lib/libvgz/.libs"
@ -265,12 +239,26 @@ exit 0
%post %post
%if 0%{?fedora} >= 17 %if 0%{?fedora} >= 17
# Fedora 17
%if 0%{?fedora} == 17
# Initial installation
if [ $1 -eq 1 ] ; then
/bin/systemctl daemon-reload >/dev/null 2>&1 || : /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
# Fedora 18+
%else
%systemd_post varnish.service
%endif
# Other distros: Use chkconfig
%else %else
/sbin/chkconfig --add varnish /sbin/chkconfig --add varnish
/sbin/chkconfig --add varnishlog /sbin/chkconfig --add varnishlog
/sbin/chkconfig --add varnishncsa /sbin/chkconfig --add varnishncsa
%endif %endif
test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc/varnish/secret) test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc/varnish/secret)
%triggerun -- varnish < 3.0.2-1 %triggerun -- varnish < 3.0.2-1
@ -287,9 +275,14 @@ test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc
#/bin/systemctl try-restart varnish.service >/dev/null 2>&1 || : #/bin/systemctl try-restart varnish.service >/dev/null 2>&1 || :
%preun %preun
%if 0%{?fedora} >= 18
%systemd_preun varnish.service
%else
if [ $1 -lt 1 ]; then if [ $1 -lt 1 ]; then
# Package removal, not upgrade # Package removal, not upgrade
%if 0%{?fedora} >= 17 %if 0%{?fedora} == 17
/bin/systemctl --no-reload disable varnish.service > /dev/null 2>&1 || : /bin/systemctl --no-reload disable varnish.service > /dev/null 2>&1 || :
/bin/systemctl stop varnish.service > /dev/null 2>&1 || : /bin/systemctl stop varnish.service > /dev/null 2>&1 || :
%else %else
@ -301,12 +294,24 @@ if [ $1 -lt 1 ]; then
/sbin/chkconfig --del varnishncsa /sbin/chkconfig --del varnishncsa
%endif %endif
fi fi
%endif
%post libs -p /sbin/ldconfig %post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%if 0%{?fedora} >= 18
%systemd_postun_with_restart varnish.service
%endif
%changelog %changelog
* Tue Aug 21 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.3-1
- New upstream release
- Remove unneeded hacks for ppc
- Remove hacks for rhel4, we no longer support that
- Remove unneeded hacks for docs, since we use the pregenerated docs
- Add new systemd scriptlets from f18+
- Added a patch switching off pcre jit on i386 and ppc to avoid upstream bug #1191
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-3 * Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild