Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 224d25e31b | |||
| 1696c50729 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0b9d53433387aa4f04634a6c63a5efa8203070f2298af72a705f9be3dda65af2
|
||||
size 245592
|
||||
3
zsync-0.6.3.tar.bz2
Normal file
3
zsync-0.6.3.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:293b6191821641d3ed6248206f8f9df0bf46e6ee2cf8b4dd97cfd1d5909edb9a
|
||||
size 272821
|
||||
@@ -1,67 +0,0 @@
|
||||
Index: libzsync/zsync.c
|
||||
===================================================================
|
||||
--- libzsync/zsync.c.orig
|
||||
+++ libzsync/zsync.c
|
||||
@@ -440,12 +440,12 @@ const char *const *zsync_get_urls(struct
|
||||
if (zs->zmap && zs->nzurl) {
|
||||
*n = zs->nzurl;
|
||||
*t = 1;
|
||||
- return zs->zurl;
|
||||
+ return (const char*const*)zs->zurl;
|
||||
}
|
||||
else {
|
||||
*n = zs->nurl;
|
||||
*t = 0;
|
||||
- return zs->url;
|
||||
+ return (const char*const*)zs->url;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -768,7 +768,7 @@ char *zsync_end(struct zsync_state *zs)
|
||||
*/
|
||||
void zsync_configure_zstream_for_zdata(const struct zsync_state *zs,
|
||||
struct z_stream_s *zstrm,
|
||||
- long zoffset, long long *poutoffset) {
|
||||
+ off_t zoffset, off_t *poutoffset) {
|
||||
configure_zstream_for_zdata(zs->zmap, zstrm, zoffset, poutoffset);
|
||||
{ /* Load in prev 32k sliding window for backreferences */
|
||||
long long pos = *poutoffset;
|
||||
Index: libzsync/zmap.h
|
||||
===================================================================
|
||||
--- libzsync/zmap.h.orig
|
||||
+++ libzsync/zmap.h
|
||||
@@ -29,7 +29,7 @@ struct zmap* zmap_make(const struct gzbl
|
||||
void zmap_free(struct zmap*);
|
||||
|
||||
off_t* zmap_to_compressed_ranges(const struct zmap* zm, off_t* byterange, int nrange, int* num);
|
||||
-void configure_zstream_for_zdata(const struct zmap* zm, struct z_stream_s* zs, long zoffset, long long* poutoffset);
|
||||
+void configure_zstream_for_zdata(const struct zmap* zm, struct z_stream_s* zs, off_t zoffset, off_t * poutoffset);
|
||||
|
||||
/* gzip flag byte */
|
||||
#define GZ_ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */
|
||||
Index: libzsync/zmap.c
|
||||
===================================================================
|
||||
--- libzsync/zmap.c.orig
|
||||
+++ libzsync/zmap.c
|
||||
@@ -333,7 +333,7 @@ int zmap_search(const struct zmap* zm, l
|
||||
* and in the order that it returned them, this condition is satisfied.
|
||||
*/
|
||||
void configure_zstream_for_zdata(const struct zmap *zm, z_stream * zs,
|
||||
- long zoffset, long long *poutoffset) {
|
||||
+ off_t zoffset, off_t *poutoffset) {
|
||||
/* Find the zmap entry corresponding to this offset */
|
||||
int i = zmap_search(zm, zoffset);
|
||||
|
||||
Index: client.c
|
||||
===================================================================
|
||||
--- client.c.orig
|
||||
+++ client.c
|
||||
@@ -146,7 +146,7 @@ long long http_down;
|
||||
* number of entries is passed by reference and updated in place. The new entry
|
||||
* is appended to the list.
|
||||
*/
|
||||
-static void **append_ptrlist(int *n, void **p, void *a) {
|
||||
+static char **append_ptrlist(int *n, char **p, char *a) {
|
||||
if (!a)
|
||||
return p;
|
||||
p = realloc(p, (*n + 1) * sizeof *p);
|
||||
@@ -1,8 +1,8 @@
|
||||
Index: make.c
|
||||
===================================================================
|
||||
--- make.c.orig 2009-04-13 12:54:38.000000000 +0200
|
||||
+++ make.c 2010-09-03 23:28:58.575337000 +0200
|
||||
@@ -621,8 +621,7 @@ int main(int argc, char **argv) {
|
||||
--- make.c.orig
|
||||
+++ make.c
|
||||
@@ -627,8 +627,7 @@ int main(int argc, char **argv) {
|
||||
verbose++;
|
||||
break;
|
||||
case 'V':
|
||||
@@ -14,9 +14,9 @@ Index: make.c
|
||||
case 'z':
|
||||
Index: client.c
|
||||
===================================================================
|
||||
--- client.c.orig 2009-01-22 22:03:18.000000000 +0100
|
||||
+++ client.c 2010-09-03 23:29:36.120262000 +0200
|
||||
@@ -491,8 +491,7 @@ int main(int argc, char **argv) {
|
||||
--- client.c.orig
|
||||
+++ client.c
|
||||
@@ -508,8 +508,7 @@ int main(int argc, char **argv) {
|
||||
seedfiles = append_ptrlist(&nseedfiles, seedfiles, optarg);
|
||||
break;
|
||||
case 'V':
|
||||
|
||||
@@ -1,3 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 14 15:56:43 UTC 2025 - Andrea Manzini <andrea.manzini@suse.com>
|
||||
|
||||
- update to 0.6.3
|
||||
* Performance improvements for large (>250MB) files - on multi-gigabyte files
|
||||
this can be a very large improvement.
|
||||
* Tuning to reduce likelyhood of hitting bad performance due to bad checksum
|
||||
distribution.
|
||||
* Fix case where client would think download succeeded and try verifying it
|
||||
when it had really failed.
|
||||
* Fix a problem where the client could get into a loop retrieving data if the
|
||||
remote returned data inconsistent with the .zsync file.
|
||||
* Improvements to some of the error and progress messages.
|
||||
* Stop zsync requesting bytes past the end of the target file.
|
||||
* Fix bug where mtime would be set to something offset from the intended value
|
||||
due to timezones.
|
||||
* Fix a case where auth headers could be send to the wrong server across a
|
||||
redirect. Send auth headers unconditionally when username & password are
|
||||
provided.
|
||||
* Fix compilation with gcc-14.
|
||||
* Other optimisations.
|
||||
|
||||
- dropped patch zsync-gcc14.patch as fixes are included in upstream
|
||||
- ran spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 14 11:07:36 UTC 2024 - Marcus Meissner <meissner@suse.com>
|
||||
|
||||
|
||||
12
zsync.spec
12
zsync.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package zsync
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,17 +17,15 @@
|
||||
|
||||
|
||||
Name: zsync
|
||||
Version: 0.6.2
|
||||
Version: 0.6.3
|
||||
Release: 0
|
||||
Summary: Client-side Implementation of the Rsync Algorithm over HTTP
|
||||
License: Artistic-2.0
|
||||
Group: Productivity/Networking/Other
|
||||
URL: http://zsync.moria.org.uk/
|
||||
Source0: http://zsync.moria.org.uk/download/zsync-%{version}.tar.bz2
|
||||
URL: https://zsync.moria.org.uk/
|
||||
Source0: https://zsync.moria.org.uk/download/zsync-%{version}.tar.bz2
|
||||
# PATCH-FIX-OPENSUSE avoid build time in generated files for build compare
|
||||
Patch0: zsync-no-build-date.patch
|
||||
# PATCH-FIX-OPENSUSE build with gcc14
|
||||
Patch1: zsync-gcc14.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
|
||||
@@ -45,7 +43,7 @@ compressed to further reduce download times.
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags} V=1
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
Reference in New Issue
Block a user