Hello community,

here is the log from the commit of package varnish for openSUSE:Factory checked 
in at 2018-05-11 14:27:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/varnish (Old)
 and      /work/SRC/openSUSE:Factory/.varnish.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "varnish"

Fri May 11 14:27:29 2018 rev:24 rq:602965 version:6.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/varnish/varnish.changes  2017-11-24 
10:56:33.343715518 +0100
+++ /work/SRC/openSUSE:Factory/.varnish.new/varnish.changes     2018-05-11 
14:27:37.857496199 +0200
@@ -1,0 +2,14 @@
+Wed May  2 06:47:32 UTC 2018 - jeng...@inai.de
+
+- Put %fillup back into %post
+
+-------------------------------------------------------------------
+Mon Mar 19 22:22:35 UTC 2018 - jeng...@inai.de
+
+- Update to new upstream release 6.0.0
+  * Added support for Unix Domain Sockets, both for clients and
+    for backend servers. This brings a new level of the VCL
+    language, version 4.1.
+  * Always use HTTP/1.1 on backend connections for pass fetch.
+
+-------------------------------------------------------------------

Old:
----
  varnish-5.1.2.tar.gz

New:
----
  varnish-6.0.0.tgz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ varnish.spec ++++++
--- /var/tmp/diff_new_pack.o4yCR9/_old  2018-05-11 14:27:41.421366709 +0200
+++ /var/tmp/diff_new_pack.o4yCR9/_new  2018-05-11 14:27:41.425366564 +0200
@@ -17,8 +17,8 @@
 
 
 #Compat macro for new _fillupdir macro introduced in Nov 2017
-%if ! %{defined _fillupdir}
-  %define _fillupdir /var/adm/fillup-templates
+%if !0%{?_fillupdir:1}
+%define _fillupdir /var/adm/fillup-templates
 %endif
 
 %define library_name libvarnishapi1
@@ -26,15 +26,15 @@
 %define pkg_logdir   %_localstatedir/log/%name
 %define pkg_cachedir %_localstatedir/cache/%name
 Name:           varnish
-Version:        5.1.2
+Version:        6.0.0
 Release:        0
-Summary:        High-performance HTTP accelerator
+Summary:        Accelerator for HTTP services
 License:        BSD-2-Clause
 Group:          Productivity/Networking/Web/Proxy
 URL:            http://varnish-cache.org/
 #Git-Clone:    git://git.varnish-cache.org/varnish-cache
 #Git-Web:      https://varnish-cache.org/trac/browser
-Source:         https://repo.varnish-cache.org/source/%name-%version.tar.gz
+Source:         https://varnish-cache.org/_downloads/%name-%version.tgz
 Source3:        varnish.sysconfig
 Source5:        varnish.logrotate
 Source7:        varnish.service
@@ -51,17 +51,17 @@
 BuildRequires:  xz
 Requires:       c_compiler
 BuildRoot:      %_tmppath/%name-%version-build
-Prereq(post):  %_sbindir/useradd %_sbindir/groupadd
+Requires(pre): %_sbindir/useradd %_sbindir/groupadd
 %if 0%{?suse_version} >= 1010
 Recommends:     logrotate
 %endif
 
 %description
-Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse
-Proxy) is an application that stores (caches) documents that have been
-requested over the HTTP protocol.
+Varnish is an HTTP accelerator. Often called Reverse Proxy, it is an
+application that stores (caches) documents that have been requested
+over the HTTP protocol.
 
-Based on certain criteria the next client requesting the document is either
+Based on certain criteria, the next client requesting the document is either
 given the cached document, or a "fresh" document requested from a backend
 server. The purpose of this is to minimize the requests going to the backend
 server(s) by serving the same document to potentially many users.
@@ -71,11 +71,11 @@
 Group:          Productivity/Networking/Web/Proxy
 
 %description -n %library_name
-Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse
-Proxy) is an application that stores (caches) documents that have been
-requested over the HTTP protocol.
+Varnish is an HTTP accelerator. Often called Reverse Proxy, it is an
+application that stores (caches) documents that have been requested
+over the HTTP protocol.
 
-Based on certain criteria the next client requesting the document is either
+Based on certain criteria, the next client requesting the document is either
 given the cached document, or a "fresh" document requested from a backend
 server. The purpose of this is to minimize the requests going to the backend
 server(s) by serving the same document to potentially many users.
@@ -88,14 +88,9 @@
 Requires:       %name = %version
 
 %description devel
-Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse
-Proxy) is an application that stores (caches) documents that have been
-requested over the HTTP protocol.
-
-Based on certain criteria the next client requesting the document is either
-given the cached document, or a "fresh" document requested from a backend
-server. The purpose of this is to minimize the requests going to the backend
-server(s) by serving the same document to potentially many users.
+Varnish is an HTTP accelerator. Often called Reverse Proxy, it is an
+application that stores (caches) documents that have been requested
+over the HTTP protocol.
 
 This package holds the development files for varnish.
 
@@ -106,7 +101,7 @@
 %build
 export CFLAGS="%optflags -fstack-protector"
 %ifarch %ix86
-export CFLAGS+=" -ffloat-store -fexcess-precision=standard"
+export CFLAGS="$CFLAGS -ffloat-store -fexcess-precision=standard"
 %endif
 %configure --disable-static --docdir="%_docdir/%name" \
            --localstatedir="%_localstatedir/cache/" \
@@ -115,22 +110,22 @@
 make %{?_smp_mflags}
 
 %install
-b="%buildroot";
+b="%buildroot"
 %make_install
 # There is no use for them to normal users
-mv "$b/%_bindir"/* "$b/%_sbindir/";
+mv "$b/%_bindir"/* "$b/%_sbindir/"
 #
 ##missing directories
-install -dm 0755 "$b"/{%pkg_logdir,%pkg_home};
-install -Dpm 0644 "%{S:5}" "$b/%_sysconfdir/logrotate.d/varnish";
+install -dm 0755 "$b"/{%pkg_logdir,%pkg_home}
+install -Dpm 0644 "%{S:5}" "$b/%_sysconfdir/logrotate.d/varnish"
 #
 ##init scripts
-install -Dpm 0644 "%{S:3}" "$b%{_fillupdir}/sysconfig.%name";
-install -Dpm 0644 "%{S:7}" "$b/%_unitdir/varnish.service";
-install -Dpm 0644 "%{S:8}" "$b/%_unitdir/varnishlog.service";
-mkdir -p "$b/%_sbindir";
-ln -s service "$b/%_sbindir/rcvarnish";
-ln -s service "$b/%_sbindir/rcvarnishlog";
+install -Dpm 0644 "%{S:3}" "$b/%_fillupdir/sysconfig.%name"
+install -Dpm 0644 "%{S:7}" "$b/%_unitdir/varnish.service"
+install -Dpm 0644 "%{S:8}" "$b/%_unitdir/varnishlog.service"
+mkdir -p "$b/%_sbindir"
+ln -s service "$b/%_sbindir/rcvarnish"
+ln -s service "$b/%_sbindir/rcvarnishlog"
 #
 ##config files
 mkdir -p "$b/%_sysconfdir/%name"
@@ -141,6 +136,9 @@
 mkdir -p "$b/%_docdir/%name"
 cp -a ChangeLog LICENSE README.rst "$b/%_docdir/%name/"
 
+perl -i -pe 's{^#!/usr/bin/env python}{#!/usr/bin/python}g' \
+       "$b/usr/share/varnish/vmodtool.py" "$b/usr/share/varnish/vsctool.py"
+
 %check
 if ! make %{?_smp_mflags} check; then
        x="$?"
@@ -150,24 +148,21 @@
 
 %pre
 %_bindir/getent group varnish >/dev/null || \
-       %_sbindir/groupadd -r varnish || :
+       %_sbindir/groupadd -r varnish
 %_bindir/getent passwd varnish >/dev/null || \
        %_sbindir/useradd -g varnish -s /bin/false -r -c "user for Varnish" \
-               -d %pkg_home varnish || :
-%service_add_pre varnish.service
-%service_add_pre varnishlog.service
+               -d %pkg_home varnish
+%service_add_pre varnish.service varnishlog.service
 
 %post
-%service_add_post varnish.service
-%service_add_post varnishlog.service
+%fillup_only
+%service_add_post varnish.service varnishlog.service
 
 %preun
-%service_del_preun varnish.service
-%service_del_preun varnishlog.service
+%service_del_preun varnish.service varnishlog.service
 
 %postun
-%service_del_postun varnish.service
-%service_del_postun varnishlog.service
+%service_del_postun varnish.service varnishlog.service
 
 %post   -n %library_name -p /sbin/ldconfig
 %postun -n %library_name -p /sbin/ldconfig
@@ -187,7 +182,7 @@
 %dir %attr(0750,varnish,varnish) %pkg_home
 %dir %attr(0750,varnish,varnish) %pkg_cachedir
 %dir %attr(0750,varnish,varnish) %pkg_logdir
-%{_fillupdir}/sysconfig.%name
+%_fillupdir/sysconfig.%name
 
 %files -n %library_name
 %defattr(-,root,root,-)
@@ -195,7 +190,7 @@
 
 %files devel
 %defattr(-,root,root,-)
-%_includedir/varnish
+%_includedir/varnish/
 %_datadir/aclocal/
 %_libdir/pkgconfig/*
 %_libdir/libvarnishapi.so

++++++ varnish-5.1.2-add-fallthrough-comments.patch ++++++
--- /var/tmp/diff_new_pack.o4yCR9/_old  2018-05-11 14:27:41.453365546 +0200
+++ /var/tmp/diff_new_pack.o4yCR9/_new  2018-05-11 14:27:41.461365256 +0200
@@ -10,9 +10,28 @@
 https://github.com/varnishcache/varnish-cache/commit/5fae561).
 
 --
-diff -up varnish-5.1.2/lib/libvgz/infback.c.orig 
varnish-5.1.2/lib/libvgz/infback.c
---- varnish-5.1.2/lib/libvgz/infback.c.orig    2017-06-25 18:25:04.558206683 
+0200
-+++ varnish-5.1.2/lib/libvgz/infback.c 2017-06-25 18:25:16.410207203 +0200
+---
+ bin/varnishadm/varnishadm.c |    1 +
+ lib/libvgz/infback.c        |    1 +
+ lib/libvgz/inflate.c        |   18 ++++++++++++++++++
+ 3 files changed, 20 insertions(+)
+
+Index: varnish-6.0.0/bin/varnishadm/varnishadm.c
+===================================================================
+--- varnish-6.0.0.orig/bin/varnishadm/varnishadm.c
++++ varnish-6.0.0/bin/varnishadm/varnishadm.c
+@@ -452,6 +452,7 @@ main(int argc, char * const *argv)
+               case 'h':
+                       /* Usage help */
+                       usage(0);
++                      break;
+               case 'n':
+                       n_arg = optarg;
+                       break;
+Index: varnish-6.0.0/lib/libvgz/infback.c
+===================================================================
+--- varnish-6.0.0.orig/lib/libvgz/infback.c
++++ varnish-6.0.0/lib/libvgz/infback.c
 @@ -477,6 +477,7 @@ void FAR *out_desc;
              }
              Tracev((stderr, "inflate:       codes ok\n"));
@@ -21,18 +40,19 @@
  
          case LEN:
              /* use inflate_fast() if we have enough input and output */
-diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig 
varnish-5.1.2/lib/libvgz/inflate.c
---- varnish-5.1.2/lib/libvgz/inflate.c.orig    2017-06-25 18:24:51.234206098 
+0200
-+++ varnish-5.1.2/lib/libvgz/inflate.c 2017-06-25 18:25:42.098208329 +0200
-@@ -719,6 +719,7 @@ int flush;
-             if (state->flags & 0x0200) CRC2(state->check, hold);
+Index: varnish-6.0.0/lib/libvgz/inflate.c
+===================================================================
+--- varnish-6.0.0.orig/lib/libvgz/inflate.c
++++ varnish-6.0.0/lib/libvgz/inflate.c
+@@ -747,6 +747,7 @@ int flush;
+                 CRC2(state->check, hold);
              INITBITS();
              state->mode = EXLEN;
 +            /* FALLTHROUGH */
          case EXLEN:
              if (state->flags & 0x0400) {
                  NEEDBITS(16);
-@@ -731,6 +732,7 @@ int flush;
+@@ -760,6 +761,7 @@ int flush;
              else if (state->head != Z_NULL)
                  state->head->extra = Z_NULL;
              state->mode = EXTRA;
@@ -40,7 +60,7 @@
          case EXTRA:
              if (state->flags & 0x0400) {
                  copy = state->length;
-@@ -753,6 +755,7 @@ int flush;
+@@ -782,6 +784,7 @@ int flush;
              }
              state->length = 0;
              state->mode = NAME;
@@ -48,7 +68,7 @@
          case NAME:
              if (state->flags & 0x0800) {
                  if (have == 0) goto inf_leave;
-@@ -774,6 +777,7 @@ int flush;
+@@ -803,6 +806,7 @@ int flush;
                  state->head->name = Z_NULL;
              state->length = 0;
              state->mode = COMMENT;
@@ -56,7 +76,7 @@
          case COMMENT:
              if (state->flags & 0x1000) {
                  if (have == 0) goto inf_leave;
-@@ -794,6 +798,7 @@ int flush;
+@@ -823,6 +827,7 @@ int flush;
              else if (state->head != Z_NULL)
                  state->head->comment = Z_NULL;
              state->mode = HCRC;
@@ -64,7 +84,7 @@
          case HCRC:
              if (state->flags & 0x0200) {
                  NEEDBITS(16);
-@@ -817,6 +822,7 @@ int flush;
+@@ -846,6 +851,7 @@ int flush;
              strm->adler = state->check = ZSWAP32(hold);
              INITBITS();
              state->mode = DICT;
@@ -72,7 +92,7 @@
          case DICT:
              if (state->havedict == 0) {
                  RESTORE();
-@@ -824,8 +830,10 @@ int flush;
+@@ -853,8 +859,10 @@ int flush;
              }
              strm->adler = state->check = adler32(0L, Z_NULL, 0);
              state->mode = TYPE;
@@ -83,7 +103,7 @@
          case TYPEDO:
              if (strm->start_bit == 0)
                  strm->start_bit = 8 * (strm->total_in + in - have) - bits;
-@@ -881,8 +889,10 @@ int flush;
+@@ -910,8 +918,10 @@ int flush;
              INITBITS();
              state->mode = COPY_;
              if (flush == Z_TREES) goto inf_leave;
@@ -94,7 +114,7 @@
          case COPY:
              copy = state->length;
              if (copy) {
-@@ -1022,8 +1032,10 @@ int flush;
+@@ -1051,8 +1061,10 @@ int flush;
              Tracev((stderr, "inflate:       codes ok\n"));
              state->mode = LEN_;
              if (flush == Z_TREES) goto inf_leave;
@@ -105,7 +125,7 @@
          case LEN:
              if (have >= 6 && left >= 258) {
                  RESTORE();
-@@ -1073,6 +1085,7 @@ int flush;
+@@ -1102,6 +1114,7 @@ int flush;
              }
              state->extra = (unsigned)(here.op) & 15;
              state->mode = LENEXT;
@@ -113,7 +133,7 @@
          case LENEXT:
              if (state->extra) {
                  NEEDBITS(state->extra);
-@@ -1083,6 +1096,7 @@ int flush;
+@@ -1112,6 +1125,7 @@ int flush;
              Tracevv((stderr, "inflate:         length %u\n", state->length));
              state->was = state->length;
              state->mode = DIST;
@@ -121,7 +141,7 @@
          case DIST:
              for (;;) {
                  here = state->distcode[BITS(state->distbits)];
-@@ -1110,6 +1124,7 @@ int flush;
+@@ -1139,6 +1153,7 @@ int flush;
              state->offset = (unsigned)here.val;
              state->extra = (unsigned)(here.op) & 15;
              state->mode = DISTEXT;
@@ -129,7 +149,7 @@
          case DISTEXT:
              if (state->extra) {
                  NEEDBITS(state->extra);
-@@ -1126,6 +1141,7 @@ int flush;
+@@ -1155,6 +1170,7 @@ int flush;
  #endif
              Tracevv((stderr, "inflate:         distance %u\n", 
state->offset));
              state->mode = MATCH;
@@ -137,7 +157,7 @@
          case MATCH:
              if (left == 0) goto inf_leave;
              copy = out - left;
-@@ -1201,6 +1217,7 @@ int flush;
+@@ -1230,6 +1246,7 @@ int flush;
              }
  #ifdef GUNZIP
              state->mode = LENGTH;
@@ -145,7 +165,7 @@
          case LENGTH:
              if (state->wrap && state->flags) {
                  NEEDBITS(32);
-@@ -1214,6 +1231,7 @@ int flush;
+@@ -1243,6 +1260,7 @@ int flush;
              }
  #endif
              state->mode = DONE;
@@ -153,14 +173,3 @@
          case DONE:
              ret = Z_STREAM_END;
              goto inf_leave;
-diff -up varnish-5.1.2/bin/varnishadm/varnishadm.c.orig 
varnish-5.1.2/bin/varnishadm/varnishadm.c
---- varnish-5.1.2/bin/varnishadm/varnishadm.c.orig     2017-06-25 
18:38:35.790242267 +0200
-+++ varnish-5.1.2/bin/varnishadm/varnishadm.c  2017-06-25 18:41:45.510250589 
+0200
-@@ -462,6 +462,7 @@ main(int argc, char * const *argv)
-               case 'h':
-                       /* Usage help */
-                       usage(0);
-+                      break;
-               case 'n':
-                       n_arg = optarg;
-                       break;

++++++ varnish.service ++++++
--- /var/tmp/diff_new_pack.o4yCR9/_old  2018-05-11 14:27:41.509363511 +0200
+++ /var/tmp/diff_new_pack.o4yCR9/_new  2018-05-11 14:27:41.509363511 +0200
@@ -5,7 +5,7 @@
 [Service]
 EnvironmentFile=/etc/sysconfig/varnish
 PIDFile=/var/run/varnishd.pid
-ExecStart=/usr/sbin/varnishd $VARNISHD_PARAMS -P /var/run/varnishd.pid -F
+ExecStart=/usr/sbin/varnishd -P /var/run/varnishd.pid -F $VARNISHD_PARAMS
 
 [Install]
 WantedBy=multi-user.target

++++++ varnishlog.service ++++++
--- /var/tmp/diff_new_pack.o4yCR9/_old  2018-05-11 14:27:41.553361913 +0200
+++ /var/tmp/diff_new_pack.o4yCR9/_new  2018-05-11 14:27:41.557361768 +0200
@@ -6,7 +6,7 @@
 [Service]
 EnvironmentFile=/etc/sysconfig/varnish
 PIDFile=/var/run/varnishlog.pid
-ExecStart=/usr/sbin/varnishncsa $VARNISHLOG_PARAMS -P /var/run/varnishlog.pid
+ExecStart=/usr/sbin/varnishncsa -P /var/run/varnishlog.pid $VARNISHLOG_PARAMS
 
 [Install]
 WantedBy=multi-user.target


Reply via email to