commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2019-09-05 12:06:56 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new.7948 (New) Package is "libzio" Thu Sep 5 12:06:56 2019 rev:45 rq:720713 version:1.06 Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2018-03-07 10:27:35.513813921 +0100 +++ /work/SRC/openSUSE:Factory/.libzio.new.7948/libzio.changes 2019-09-05 12:06:57.847890320 +0200 @@ -1,0 +2,5 @@ +Fri Aug 2 06:50:26 UTC 2019 - Martin Liška + +- Use FAT LTO objects in order to provide proper static library + +--- Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.b5HzdO/_old 2019-09-05 12:06:58.675890165 +0200 +++ /var/tmp/diff_new_pack.b5HzdO/_new 2019-09-05 12:06:58.691890162 +0200 @@ -1,7 +1,7 @@ # # spec file for package libzio # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -21,7 +21,7 @@ Version:1.06 Release:0 Summary:A Library for Accessing Compressed Text Files -License:GPL-2.0+ +License:GPL-2.0-or-later Group: System/Libraries Url:http://libzio.sourceforge.net/ Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2 @@ -59,6 +59,7 @@ %setup -q %build +%global _lto_cflags %{_lto_cflags} -ffat-lto-objects make %{?_smp_mflags} noweak %check
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2018-03-07 10:27:34 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio" Wed Mar 7 10:27:34 2018 rev:44 rq:580153 version:1.06 Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2018-01-30 16:13:53.343879058 +0100 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2018-03-07 10:27:35.513813921 +0100 @@ -1,0 +2,5 @@ +Thu Feb 22 15:10:40 UTC 2018 - fv...@suse.com + +- Use %license (boo#1082318) + +--- Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.6L75oT/_old 2018-03-07 10:27:36.089793145 +0100 +++ /var/tmp/diff_new_pack.6L75oT/_new 2018-03-07 10:27:36.089793145 +0100 @@ -82,12 +82,13 @@ %files -n %lname %defattr(-,root,root) +%license COPYING %{_libdir}/libzio.so.1 %{_libdir}/libzio.so.%{version} %files devel %defattr(-,root,root) -%doc README COPYING +%doc README %{_libdir}/libzio.a %{_libdir}/libzio.so %{_mandir}/man3/fzopen.3*
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2018-01-30 16:13:52 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio" Tue Jan 30 16:13:52 2018 rev:43 rq:568485 version:1.06 Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2018-01-16 09:27:27.731547787 +0100 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2018-01-30 16:13:53.343879058 +0100 @@ -4,2 +4,2 @@ -- Add changes from Jerrell Watts which has kindly provided - his changes for lzma/xz support with large I/O buffers +- Version 1.06: Add changes from Jerrell Watts which has kindly + provided his changes for lzma/xz support with large I/O buffers Other differences: --
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2018-01-16 09:27:26 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio" Tue Jan 16 09:27:26 2018 rev:42 rq:562880 version:1.06 Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2017-07-10 10:59:40.233657767 +0200 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2018-01-16 09:27:27.731547787 +0100 @@ -1,0 +2,6 @@ +Tue Jan 9 12:54:36 UTC 2018 - wer...@suse.de + +- Add changes from Jerrell Watts which has kindly provided + his changes for lzma/xz support with large I/O buffers + +--- Old: libzio-1.05.tar.bz2 New: libzio-1.06.tar.bz2 Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.x6Adzm/_old 2018-01-16 09:27:28.367518032 +0100 +++ /var/tmp/diff_new_pack.x6Adzm/_new 2018-01-16 09:27:28.367518032 +0100 @@ -1,7 +1,7 @@ # # spec file for package libzio # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: libzio %define lname libzio1 -Version:1.05 +Version:1.06 Release:0 Summary:A Library for Accessing Compressed Text Files License:GPL-2.0+ @@ -38,8 +38,8 @@ %package -n %lname Summary:A Library for Accessing Compressed Text Files Group: System/Libraries -Provides: libzio = %{version} -Obsoletes: libzio <= %{version} +Provides: libzio = 1.06 +Obsoletes: libzio <= 1.00 %description -n %lname Libzio provides a wrapper function for reading or writing gzip or bzip2 @@ -64,11 +64,13 @@ %check make testt make tests +make testx for comp in gzip bzip2 lzma xz do $comp -c < fzopen.3.in > fzopen.test ./testt fzopen.test | cmp fzopen.3.in - cat fzopen.test | ./tests ${comp:0:1} | cmp fzopen.3.in - +./testx ${comp:0:1} < fzopen.3.in | ./tests ${comp:0:1} | cmp fzopen.3.in - done %install ++ libzio-1.05.tar.bz2 -> libzio-1.06.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-1.05/Makefile new/libzio-1.06/Makefile --- old/libzio-1.05/Makefile2017-06-29 13:18:53.927138624 +0200 +++ new/libzio-1.06/Makefile2018-01-09 12:08:07.284065657 +0100 @@ -8,7 +8,7 @@ CFLAGS = $(RPM_OPT_FLAGS) -pipe -Wall -D_GNU_SOURCE -D_REENTRANT -D_DEFAULT_SOURCE $(LARGE) CC = gcc MAJOR = 1 -MINOR = 05 +MINOR = 06 VERSION= $(MAJOR).$(MINOR) SONAME = libzio.so.$(MAJOR) LDMAP = -Wl,--version-script=zio.map @@ -27,6 +27,7 @@ zio.h.in \ testt.c \ tests.c \ + testx.c \ lzw.h \ unlzw.c \ zio.map \ @@ -131,3 +132,6 @@ tests: tests.c libzio.a $(CC) $(CFLAGS) -o $@ $^ $(LIBS) + +testx: testx.c libzio.a + $(CC) $(CFLAGS) -o $@ $^ $(LIBS) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-1.05/tests.c new/libzio-1.06/tests.c --- old/libzio-1.05/tests.c 2007-12-07 17:39:15.0 +0100 +++ new/libzio-1.06/tests.c 2018-01-09 11:54:10.964256039 +0100 @@ -7,7 +7,7 @@ int main(int argc, char *argv[]) { FILE *file; -char line[1024]; +char line[1<<13]; size_t len; if (!(file = fdzopen(fileno(stdin), "r", argc > 1 ? argv[1] : "g"))) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-1.05/testx.c new/libzio-1.06/testx.c --- old/libzio-1.05/testx.c 1970-01-01 01:00:00.0 +0100 +++ new/libzio-1.06/testx.c 2018-01-09 11:54:47.339553023 +0100 @@ -0,0 +1,28 @@ +#include +#include +#include +#include +#include "zio.h" + +int main(int argc, char *argv[]) +{ +FILE *file; +char line[1<<13]; +size_t len; + +if (!(file = fdzopen(fileno(stdout), "w", argc > 1 ? argv[1] : "g"))) { + fprintf(stderr, "%s\n", strerror(errno)); + return 1; +} + +while ((len = fread(line, sizeof(char), sizeof (line), stdin))) { + size_t ret = fwrite(line, sizeof(char), len, file); + if ((ret != len) && ferror(stdout)) { + clearerr(stdout); + } +} + +fclose(file); + +return 0; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-1.05/zio.c new/libzio-1.06/zio.c --- old/li
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2017-07-10 10:59:38 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio" Mon Jul 10 10:59:38 2017 rev:41 rq:507070 version:1.05 Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2017-03-09 01:33:19.502727491 +0100 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2017-07-10 10:59:40.233657767 +0200 @@ -1,0 +2,9 @@ +Thu Jun 29 11:53:07 UTC 2017 - wer...@suse.de + +- Push to version 1.05 + * Avoid that writer of fopencookie(3) will return less than +the initial buffer size. + * Make sure that MIN macro is defined if used. + * Some minor changes as well. + +--- Old: libzio-1.04.tar.bz2 New: libzio-1.05.tar.bz2 Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.nzBZrJ/_old 2017-07-10 10:59:40.865568581 +0200 +++ /var/tmp/diff_new_pack.nzBZrJ/_new 2017-07-10 10:59:40.865568581 +0200 @@ -18,7 +18,7 @@ Name: libzio %define lname libzio1 -Version:1.04 +Version:1.05 Release:0 Summary:A Library for Accessing Compressed Text Files License:GPL-2.0+ ++ libzio-1.04.tar.bz2 -> libzio-1.05.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-1.04/Makefile new/libzio-1.05/Makefile --- old/libzio-1.04/Makefile2017-02-28 11:03:13.815020847 +0100 +++ new/libzio-1.05/Makefile2017-06-29 13:18:53.927138624 +0200 @@ -8,7 +8,7 @@ CFLAGS = $(RPM_OPT_FLAGS) -pipe -Wall -D_GNU_SOURCE -D_REENTRANT -D_DEFAULT_SOURCE $(LARGE) CC = gcc MAJOR = 1 -MINOR = 04 +MINOR = 05 VERSION= $(MAJOR).$(MINOR) SONAME = libzio.so.$(MAJOR) LDMAP = -Wl,--version-script=zio.map diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-1.04/zio.c new/libzio-1.05/zio.c --- old/libzio-1.04/zio.c 2013-02-27 11:40:59.797944802 +0100 +++ new/libzio-1.05/zio.c 2017-06-29 13:27:32.573662844 +0200 @@ -5,6 +5,7 @@ * Copyright 2006 Werner Fink, 2006 SuSE Products GmbH, Germany. * Copyright 2009 Werner Fink, 2009 SuSE Products GmbH, Germany. * Copyright 2013 Werner Fink, 2013 SuSE Products GmbH, Germany. + * Copyright 2017 Werner Fink, 2017 SUSE Linux GmbH, Germany. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -51,7 +52,7 @@ errno = EINVAL; return -1; } -off_t offset = (off_t)*poffset; +off_t offset __attribute__ ((__unused__)) = (off_t)*poffset; return (zio_int_t)gzseek((gzFile)cookie, (z_off_t)(*poffset), whence); } @@ -89,6 +90,7 @@ FILE *stdio; char *mode; char *path; +int level; int fd; } bzfile_t; @@ -118,6 +120,8 @@ len = (ssize_t)BZ2_bzwrite(bzf->file, (void*)buf, count); if (len > 0) bzf->position += len; +if (len > 0 && len < count) + len = count; out: if (len < 0) errno = EINVAL; @@ -335,8 +339,11 @@ len = sizeof(lzma->buf) - strm->avail_out; if (len && fwrite(lzma->buf, 1, len, lzma->file) != len) break; - if (strm->avail_in == 0) + if (strm->avail_in == 0) { + if (len > 0 && len < count) + len = count; return len; + } } return -1; } @@ -512,6 +519,10 @@ # endif /* !HAS_LZMADEC_H */ #endif /* !HAS_LZMA_H */ +#ifndef MIN +# define MIN(x,y) ((x) < (y) ? (x) : (y)) +#endif + typedef struct lzwfile_s { size_t position; LZW_t *file; @@ -867,6 +878,7 @@ goto out; memset(cookie, 0, alignof(bzfile_t)+strsize(ext)+strsize(mode)); + n = strlen(mode); for (i = 1; i < n; i++) { if (mode[i] >= '0' && mode[i] <= '9') { level = (int)mode[i]; @@ -877,6 +889,7 @@ cookie->fd = -1; cookie->mode = ((char*)cookie)+alignof(bzfile_t); cookie->path = cookie->mode+strsize(mode); + cookie->level = level; strcpy(cookie->mode, mode); strcpy(cookie->path, ext); @@ -1132,6 +1145,7 @@ goto out; memset(cookie, 0, alignof(bzfile_t)+strsize(mode)); + n = strlen(mode); for (i = 1; i < n; i++) { if (mode[i] >= '0' && mode[i] <= '9') { level = (int)mode[i]; @@ -1141,6 +1155,7 @@ cookie->fd = fildes; cookie->mode = ((char*)cookie)+al
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2017-03-09 01:33:18 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio" Thu Mar 9 01:33:18 2017 rev:40 rq:460847 version:1.04 Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2015-02-27 10:55:57.0 +0100 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2017-03-09 01:33:19.502727491 +0100 @@ -1,0 +2,19 @@ +Tue Feb 28 10:07:43 UTC 2017 - wer...@suse.de + +- Push version to 1.04 + * Add patch from Andreas Schwab to fix problem with missing + declaration of pthread_sigmask(2) +- Delete pthread-sigmask.patch as now upstream + +--- +Tue Feb 28 09:07:36 UTC 2017 - sch...@linux-m68k.org + +- Add pthread-sigmask.patch to include as required + by pthread_sigmask + +--- +Mon Feb 27 15:48:10 UTC 2017 - wer...@suse.de + +- Use -D_DEFAULT_SOURCE + +--- Old: libzio-1.02.tar.bz2 New: libzio-1.04.tar.bz2 Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.4OVeoo/_old 2017-03-09 01:33:20.522583055 +0100 +++ /var/tmp/diff_new_pack.4OVeoo/_new 2017-03-09 01:33:20.526582489 +0100 @@ -1,7 +1,7 @@ # # spec file for package libzio # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: libzio %define lname libzio1 -Version:1.02 +Version:1.04 Release:0 Summary:A Library for Accessing Compressed Text Files License:GPL-2.0+ @@ -27,8 +27,8 @@ Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2 Source1:baselibs.conf BuildRequires: libbz2-devel -BuildRequires: zlib-devel BuildRequires: xz-devel +BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description ++ libzio-1.02.tar.bz2 -> libzio-1.04.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-1.02/Makefile new/libzio-1.04/Makefile --- old/libzio-1.02/Makefile2013-02-27 12:49:55.0 +0100 +++ new/libzio-1.04/Makefile2017-02-28 11:03:13.815020847 +0100 @@ -5,10 +5,10 @@ # LARGE = $(shell getconf LFS_CFLAGS) -CFLAGS = $(RPM_OPT_FLAGS) -pipe -Wall -D_GNU_SOURCE -D_REENTRANT $(LARGE) +CFLAGS = $(RPM_OPT_FLAGS) -pipe -Wall -D_GNU_SOURCE -D_REENTRANT -D_DEFAULT_SOURCE $(LARGE) CC = gcc MAJOR = 1 -MINOR = 02 +MINOR = 04 VERSION= $(MAJOR).$(MINOR) SONAME = libzio.so.$(MAJOR) LDMAP = -Wl,--version-script=zio.map diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-1.02/lzw.h new/libzio-1.04/lzw.h --- old/libzio-1.02/lzw.h 2013-02-27 12:09:25.0 +0100 +++ new/libzio-1.04/lzw.h 2017-02-28 11:01:13.913324967 +0100 @@ -48,7 +48,7 @@ #include "zioP.h" #if defined _REENTRANT || defined _THREAD_SAFE -# include +# include weak_symbol(pthread_sigmask); #endif
commit libzio for openSUSE:Factory
binsPPzdRWsut.bin Description: Binary data
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2013-04-17 23:06:02 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2013-03-01 07:26:41.0 +0100 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2013-04-17 23:06:03.0 +0200 @@ -1,0 +2,6 @@ +Tue Apr 16 07:55:53 UTC 2013 - mmeis...@suse.com + +- Added url as source. + Please see http://en.opensuse.org/SourceUrls + +--- Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.JKhVNg/_old 2013-04-17 23:06:04.0 +0200 +++ /var/tmp/diff_new_pack.JKhVNg/_new 2013-04-17 23:06:04.0 +0200 @@ -24,7 +24,7 @@ License:GPL-2.0+ Group: System/Libraries Url:http://libzio.sourceforge.net/ -Source: libzio-%{version}.tar.bz2 +Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2 Source1:baselibs.conf # PATCH-FIX-UPSTREAM: handle fseek() correct for bzip2 and lzma/xz Patch0: libzio-1.00.dif -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2013-03-01 07:26:39 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2012-10-26 07:58:27.0 +0200 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2013-03-01 07:26:41.0 +0100 @@ -1,0 +2,11 @@ +Tue Feb 26 16:41:39 UTC 2013 - wer...@suse.de + +- Add patch libzio-1.00.dif: fix seeking cookie functions (related + to bnc#805149) that is handle fseek() correct for bzip2 and lzma/xz + +--- +Mon Jan 7 21:32:08 UTC 2013 - jeng...@inai.de + +- Specify a BuildRoot, which is mandatory for old RPM (like SLE) + +--- New: libzio-1.00.dif Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.phXXNt/_old 2013-03-01 07:26:41.0 +0100 +++ /var/tmp/diff_new_pack.phXXNt/_new 2013-03-01 07:26:41.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package libzio # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,8 @@ Url:http://libzio.sourceforge.net/ Source: libzio-%{version}.tar.bz2 Source1:baselibs.conf +# PATCH-FIX-UPSTREAM: handle fseek() correct for bzip2 and lzma/xz +Patch0: libzio-1.00.dif BuildRequires: libbz2-devel BuildRequires: zlib-devel %if %suse_version <= 1110 @@ -39,7 +41,7 @@ %ifarch ppc64 Obsoletes: libzio-64bit %endif -# +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Libzio provides a wrapper function for reading or writing gzip or bzip2 @@ -85,6 +87,7 @@ %prep %setup -q +%patch0 %build make %{?_smp_mflags} noweak ++ libzio-1.00.dif ++ --- zio.c +++ zio.c 2013-02-26 16:40:47.165444637 + @@ -42,6 +42,7 @@ static zio_int_t zseek(void *cookie, zio errno = EINVAL; return -1; } +off_t offset = (off_t)*poffset; return (zio_int_t)gzseek((gzFile)cookie, (z_off_t)(*poffset), whence); } @@ -74,8 +75,9 @@ static cookie_io_functions_t ioz = { # endif typedef struct bzfile_s { -size_t total_out; +size_t position; BZFILE *file; +FILE *stdio; char *mode; char *path; int fd; @@ -90,7 +92,7 @@ static ssize_t bzread(void *cookie, ch if (bzf->file) len = (ssize_t)BZ2_bzread(bzf->file, (void*)buf, count); if (len > 0) - bzf->total_out += len; + bzf->position += len; out: if (len < 0) errno = EINVAL; @@ -104,9 +106,9 @@ static ssize_t bzwrite(void *cookie, c if (!bzf) goto out; if (bzf->file) - len = (ssize_t)BZ2_bzread(bzf->file, (void*)buf, count); + len = (ssize_t)BZ2_bzwrite(bzf->file, (void*)buf, count); if (len > 0) - bzf->total_out += len; + bzf->position += len; out: if (len < 0) errno = EINVAL; @@ -116,24 +118,29 @@ out: static zio_int_t bzseek(void *cookie, zio_off_t *poffset, int whence) { bzfile_t *bzf = (bzfile_t*)cookie; -off_t offset = (off_t)*poffset; -off_t oldpos, newpos; +off_t offset, curpos, newpos; if (!bzf) { errno = EINVAL; return -1; } -oldpos = (off_t)bzf->total_out; +offset = (off_t)*poffset; +curpos = (off_t)bzf->position; + switch (whence) { case SEEK_SET: - if (offset < 0) + if (offset < 0) { + errno = EINVAL; return -1; + } newpos = offset; break; case SEEK_CUR: - if ((offset < 0 && (off_t)(-1 * offset) > oldpos) || (offset > 0 && (offset+oldpos) < oldpos)) + if ((offset < 0 && (off_t)(-1 * offset) > curpos) || (offset > 0 && (offset+curpos) < curpos)) { + errno = EINVAL; return -1; - newpos = (off_t)bzf->total_out + offset; + } + newpos = curpos + offset; break; case SEEK_END: newpos = -1; @@ -143,7 +150,7 @@ static zio_int_t bzseek(void *cookie, zi return -1; } -if (whence != SEEK_END && newpos < oldpos) { +if (whence != SEEK_END && newpos < curpos) { int status = BZ2_bzflush(bzf->file); BZ2_bzclose(bzf->file); if (status < 0) { @@ -163,27 +170,36 @@ static zio_int_t bzseek(void *cookie, zi errno = EIN
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2012-10-26 07:58:25 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2012-10-13 19:57:46.0 +0200 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2012-10-26 07:58:27.0 +0200 @@ -1,0 +2,5 @@ +Fri Oct 19 19:24:04 CEST 2012 - r...@suse.de + +- provide and obsolete old package name + +--- Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.xEFaot/_old 2012-10-26 07:58:28.0 +0200 +++ /var/tmp/diff_new_pack.xEFaot/_new 2012-10-26 07:58:28.0 +0200 @@ -52,6 +52,8 @@ %package -n %lname Summary:A Library for Accessing Compressed Text Files Group: System/Libraries +Provides: libzio = %{version} +Obsoletes: libzio <= %{version} %description -n %lname Libzio provides a wrapper function for reading or writing gzip or bzip2 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2012-10-13 19:54:16 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2012-10-06 18:39:08.0 +0200 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2012-10-13 19:57:46.0 +0200 @@ -1,0 +2,5 @@ +Fri Oct 12 15:28:21 UTC 2012 - jeng...@inai.de + +- Adjust baselibs.conf to include libzio1 + +--- Other differences: -- ++ baselibs.conf ++ --- /var/tmp/diff_new_pack.iiFCkR/_old 2012-10-13 19:57:49.0 +0200 +++ /var/tmp/diff_new_pack.iiFCkR/_new 2012-10-13 19:57:49.0 +0200 @@ -1,2 +1 @@ -arch ppc package libzio -arch sparcv9 package libzio +libzio1 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2012-10-05 18:38:00 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2012-02-15 16:16:57.0 +0100 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2012-10-06 18:39:08.0 +0200 @@ -1,0 +2,10 @@ +Fri Oct 5 07:49:23 UTC 2012 - wer...@suse.de + +- Strange policy causes new package libzio1 + +--- +Thu Oct 4 13:06:40 UTC 2012 - wer...@suse.de + +- Correct autoconf part of the manual page + +--- Old: libzio-0.99.tar.bz2 New: libzio-1.00.tar.bz2 Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.ZWMiI5/_old 2012-10-06 18:39:08.0 +0200 +++ /var/tmp/diff_new_pack.ZWMiI5/_new 2012-10-06 18:39:08.0 +0200 @@ -15,7 +15,17 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: libzio +%define lname libzio1 +Version:1.00 +Release:0 +Summary:A Library for Accessing Compressed Text Files +License:GPL-2.0+ +Group: System/Libraries +Url:http://libzio.sourceforge.net/ +Source: libzio-%{version}.tar.bz2 +Source1:baselibs.conf BuildRequires: libbz2-devel BuildRequires: zlib-devel %if %suse_version <= 1110 @@ -30,29 +40,31 @@ Obsoletes: libzio-64bit %endif # -Version:0.99 -Release:0 -Summary:A Library for Accessing Compressed Text Files -License:GPL-2.0+ -Group: System/Libraries -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source: libzio-%{version}.tar.bz2 -Source2:baselibs.conf %description Libzio provides a wrapper function for reading or writing gzip or bzip2 files with FILE streams. +Author: + +Werner Fink +%package -n %lname +Summary:A Library for Accessing Compressed Text Files +Group: System/Libraries -Authors: +%description -n %lname +Libzio provides a wrapper function for reading or writing gzip or bzip2 +files with FILE streams. + +Author: Werner Fink %packagedevel Summary:Libzio development files Group: Development/Libraries/C and C++ -Requires: libzio = %{version} +Requires: %lname = %{version} # bug437293 %ifarch ppc64 Obsoletes: libzio-devel-64bit @@ -92,13 +104,13 @@ %install make DESTDIR=$RPM_BUILD_ROOT install libdir=%{_libdir} mandir=%{_mandir} -%post -p /sbin/ldconfig +%post -n %lname -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig -%files +%files -n %lname %defattr(-,root,root) -%{_libdir}/libzio.so.0 +%{_libdir}/libzio.so.1 %{_libdir}/libzio.so.%{version} %files devel ++ libzio-0.99.tar.bz2 -> libzio-1.00.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-0.99/Makefile new/libzio-1.00/Makefile --- old/libzio-0.99/Makefile2009-02-23 15:55:44.0 +0100 +++ new/libzio-1.00/Makefile2012-10-04 15:34:02.0 +0200 @@ -7,8 +7,8 @@ LARGE = $(shell getconf LFS_CFLAGS) CFLAGS = $(RPM_OPT_FLAGS) -pipe -Wall -D_GNU_SOURCE -D_REENTRANT $(LARGE) CC = gcc -MAJOR = 0 -MINOR = 99 +MAJOR = 1 +MINOR = 00 VERSION= $(MAJOR).$(MINOR) SONAME = libzio.so.$(MAJOR) LDMAP = -Wl,--version-script=zio.map diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libzio-0.99/fzopen.3.in new/libzio-1.00/fzopen.3.in --- old/libzio-0.99/fzopen.3.in 2009-02-23 15:59:59.0 +0100 +++ new/libzio-1.00/fzopen.3.in 2012-10-04 15:04:26.0 +0200 @@ -142,7 +142,7 @@ .nf AC_CHECK_HEADER(zio.h, [ AC_CHECK_LIB(zio, fzopen, [ -AC_CHECK_LIB(zio, fdzopen, [LIBS="$LIBS -l$zio"; am_cv_libzio=yes]) +AC_CHECK_LIB(zio, fdzopen, [LIBS="$LIBS -lzio"; am_cv_libzio=yes]) ]) ]) if test "$am_cv_libzio" = yes; then @@ -167,11 +167,20 @@ done ]) AC_CHECK_HEADER(lzmadec.h, [ -for lib in libzma lzmadec; do +for lib in lzma lzmadec; do AC_CHECK_LIB($lib, lzmadec_open, [ LIBS="$LIBS -l$lib" am_cv_libzio="$am_cv_libzio lib$lib" break + ]) +done + ]) + AC_CHECK_HEADER(lzma.h, [ +for lib in lzma; do + AC_CHECK_LIB($lib, lzma_easy_encoder, [ +LIBS="$LIBS -l$lib" +am_cv_libzio="$am_cv_libzio lib$lib" +break ]) done ]) --
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2012-02-15 16:16:48 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/libzio/libzio.changes2011-09-23 02:11:18.0 +0200 +++ /work/SRC/openSUSE:Factory/.libzio.new/libzio.changes 2012-02-15 16:16:57.0 +0100 @@ -1,0 +2,5 @@ +Sun Jan 29 21:32:24 UTC 2012 - jeng...@medozas.de + +- Remove redundant tags/sections per specfile guideline suggestions + +--- Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.rvbVJ6/_old 2012-02-15 16:16:59.0 +0100 +++ /var/tmp/diff_new_pack.rvbVJ6/_new 2012-02-15 16:16:59.0 +0100 @@ -1,7 +1,7 @@ # -# spec file for package libzio (Version 0.99) +# spec file for package libzio # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,27 +15,26 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - - Name: libzio -BuildRequires: libbz2-devel zlib-devel +BuildRequires: libbz2-devel +BuildRequires: zlib-devel %if %suse_version <= 1110 -BuildRequires: lzma lzma-devel +BuildRequires: lzma +BuildRequires: lzma-devel %else -BuildRequires: xz xz-devel +BuildRequires: xz +BuildRequires: xz-devel %endif -License:GPL-2.0+ -Group: System/Libraries -AutoReqProv:on # bug437293 %ifarch ppc64 Obsoletes: libzio-64bit %endif # Version:0.99 -Release:10 +Release:0 Summary:A Library for Accessing Compressed Text Files +License:GPL-2.0+ +Group: System/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: libzio-%{version}.tar.bz2 Source2:baselibs.conf @@ -51,11 +50,9 @@ Werner Fink %packagedevel -License:GPL-2.0+ Summary:Libzio development files Group: Development/Libraries/C and C++ Requires: libzio = %{version} -AutoReqProv:on # bug437293 %ifarch ppc64 Obsoletes: libzio-devel-64bit -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit libzio for openSUSE:Factory
Hello community, here is the log from the commit of package libzio for openSUSE:Factory checked in at 2011-12-06 18:26:32 Comparing /work/SRC/openSUSE:Factory/libzio (Old) and /work/SRC/openSUSE:Factory/.libzio.new (New) Package is "libzio", Maintainer is "wer...@suse.com" Changes: Other differences: -- ++ libzio.spec ++ --- /var/tmp/diff_new_pack.PtJYrj/_old 2011-12-06 18:48:09.0 +0100 +++ /var/tmp/diff_new_pack.PtJYrj/_new 2011-12-06 18:48:09.0 +0100 @@ -25,7 +25,7 @@ %else BuildRequires: xz xz-devel %endif -License:GPLv2+ +License:GPL-2.0+ Group: System/Libraries AutoReqProv:on # bug437293 @@ -51,7 +51,7 @@ Werner Fink %packagedevel -License:GPLv2+ +License:GPL-2.0+ Summary:Libzio development files Group: Development/Libraries/C and C++ Requires: libzio = %{version} -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org