debian/0000775000000000000000000000000012323001226007157 5ustar debian/liblz4-1.symbols0000664000000000000000000000276612313154074012153 0ustar liblz4.so.1 liblz4-1 #MINVER# LZ4_compress@Base 0.0~r113 LZ4_compressBound@Base 0.0~r114 LZ4_compressHC2@Base 0.0~r113 LZ4_compressHC2_continue@Base 0.0~r113 LZ4_compressHC2_limitedOutput@Base 0.0~r113 LZ4_compressHC2_limitedOutput_continue@Base 0.0~r113 LZ4_compressHC2_limitedOutput_withStateHC@Base 0.0~r113 LZ4_compressHC2_withStateHC@Base 0.0~r113 LZ4_compressHC@Base 0.0~r113 LZ4_compressHC_continue@Base 0.0~r113 LZ4_compressHC_limitedOutput@Base 0.0~r113 LZ4_compressHC_limitedOutput_continue@Base 0.0~r113 LZ4_compressHC_limitedOutput_withStateHC@Base 0.0~r113 LZ4_compressHC_withStateHC@Base 0.0~r113 LZ4_compress_continue@Base 0.0~r113 LZ4_compress_limitedOutput@Base 0.0~r113 LZ4_compress_limitedOutput_continue@Base 0.0~r113 LZ4_compress_limitedOutput_withState@Base 0.0~r113 LZ4_compress_withState@Base 0.0~r113 LZ4_create@Base 0.0~r113 LZ4_createHC@Base 0.0~r113 LZ4_decompress_fast@Base 0.0~r113 LZ4_decompress_fast_withPrefix64k@Base 0.0~r113 LZ4_decompress_safe@Base 0.0~r113 LZ4_decompress_safe_partial@Base 0.0~r113 LZ4_decompress_safe_withPrefix64k@Base 0.0~r113 LZ4_free@Base 0.0~r113 LZ4_freeHC@Base 0.0~r113 LZ4_resetStreamState@Base 0.0~r113 LZ4_resetStreamStateHC@Base 0.0~r113 LZ4_sizeofState@Base 0.0~r113 LZ4_sizeofStateHC@Base 0.0~r113 LZ4_sizeofStreamState@Base 0.0~r113 LZ4_sizeofStreamStateHC@Base 0.0~r113 LZ4_slideInputBuffer@Base 0.0~r113 LZ4_slideInputBufferHC@Base 0.0~r113 LZ4_uncompress@Base 0.0~r114 LZ4_uncompress_unknownOutputSize@Base 0.0~r114 debian/control0000664000000000000000000000521712323000145010566 0ustar Source: lz4 Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Nobuhiro Iwamatsu Build-Depends: debhelper (>= 9.0.0) Standards-Version: 3.9.5 Section: utils Homepage: http://code.google.com/p/lz4/ Vcs-Git: git://anonscm.debian.org/collab-maint/lz4.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/lz4.git;a=summary Package: liblz4-dev Section: libdevel Architecture: any Depends: liblz4-1 (= ${binary:Version}), ${misc:Depends} Multi-Arch: same Description: Fast LZ compression algorithm library - development files LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems. . This package contains files that are needed to build applications. Package: liblz4-1 Section: libs Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Fast LZ compression algorithm library - runtime LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems. . This package includes the shared library. Package: liblz4-1-dbg Section: debug Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, liblz4-1 (= ${binary:Version}) Replaces: liblz4-0.0-dbg (<= 0.0~r113-1) Conflicts: liblz4-0.0-dbg (<= 0.0~r113-1) Description: Fast LZ compression algorithm library - Debugging Symbols LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems. . This package contains the debugging symbols. Package: liblz4-tool Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, liblz4-1 (= ${binary:Version}) Multi-Arch: foreign Description: Fast LZ compression algorithm library - tool LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems. . This package contains files that is tool using liblz4. debian/copyright0000664000000000000000000000372012305501334011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: lz4 Source: http://code.google.com/p/lz4/ Files: lz4_encoder.h xxhash.c xxhash.h lz4hc.h lz4.c lz4hc.c lz4_decoder.h lz4hc_encoder.h lz4.h Copyright: Copyright (C) 2011-2013, Yann Collet. License: BSD-2-clause Files: lz4c.c bench.c bench.h Copyright: Copyright (C) 2011-2013, Yann Collet. License: GPL-2+ See `/usr/share/common-licenses/GPL-2'. Files: fuzzer.c Copyright: Copyright (C) Andrew Mahone - Yann Collet 2012-2013 License: GPL-2+ See `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2013 Nobuhiro Iwamatsu License: GPL-2+ See `/usr/share/common-licenses/GPL-2'. License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/changelog0000664000000000000000000000560212323001226011034 0ustar lz4 (0.0~r114-2ubuntu1) trusty; urgency=medium * debian/patches/fix-endianness-check.patch: Include before using __GLIBC__. Checking for __GLIBC__ without including a header that defines it doesn't work very well, so the endianness falls back to the hardcoded arch list, which incorrectly identifies ppc64el as big endian. -- William Grant Mon, 14 Apr 2014 16:25:20 +0100 lz4 (0.0~r114-2) unstable; urgency=low * Update patches/add-support-kfreebsd.patch. Support programs.Makefile too. -- Nobuhiro Iwamatsu Sat, 22 Mar 2014 14:23:35 +0900 lz4 (0.0~r114-1) unstable; urgency=low * Snapshot, taken from the trunk (r113). * Remove support-library-version.patch Applied to upstream. * Update add-ldflags.patch. * Add patches/fix-install.patch. Fix install library. * Update symbols file. * Add patches/add-support-kfreebsd.patch. Support install on kFreeBSD. -- Nobuhiro Iwamatsu Sat, 22 Mar 2014 01:53:20 +0900 lz4 (0.0~r113-2) unstable; urgency=low * Update debian/control. - Add Conflict and Replaces field of libz4-1-dbg (Closes: #741003). - Update package description (Closes: #741001). -- Nobuhiro Iwamatsu Mon, 10 Mar 2014 08:34:29 +0900 lz4 (0.0~r113-1) unstable; urgency=low * Snapshot, taken from the trunk (r113). * Update debian/rules. - Change build tool from cmake to GNU make. * Update debian/control. - cmake from Build-Depends - Update Standards-Version to 3.9.5 * Update symbols file. * Add patches/add-dlflags.patch. * Add patches/support-library-version.patch. * Remove old patches. * Change package name and install script name. * Add manpage of lz4. -- Nobuhiro Iwamatsu Wed, 05 Mar 2014 10:50:41 +0900 lz4 (0.0~r109-1) unstable; urgency=low * Snapshot, taken from the trunk (r109). -- Nobuhiro Iwamatsu Wed, 25 Dec 2013 07:26:12 +0900 lz4 (0.0~r107-1) unstable; urgency=low * Snapshot, taken from the trunk (r107). * Update patches. * Update symbol file. -- Nobuhiro Iwamatsu Wed, 23 Oct 2013 19:51:48 +0900 lz4 (0.0~r99-1) unstable; urgency=low * New upstream released. * Add symbols file. * Update debian/control. - Update Vcs-Git and Vcs-Browser field. -- Nobuhiro Iwamatsu Wed, 31 Jul 2013 12:28:38 +0900 lz4 (0.0~r94-2) unstable; urgency=low * Fix install path on 32bit build. (Closes: #710458) Update patches/0001-Fix-install-path.patch. * Remove unrecognized command line option '-march=native'. (Closes: #710459) Add patches/remove_optimize. -- Nobuhiro Iwamatsu Fri, 31 May 2013 14:05:43 +0900 lz4 (0.0~r94-1) unstable; urgency=low * Initial release. (Closes: #698256) -- Nobuhiro Iwamatsu Sat, 04 May 2013 08:31:31 +0900 debian/docs0000664000000000000000000000003312305501334010033 0ustar lz4_format_description.txt debian/lz4c.10000664000000000000000000000243212305501334010123 0ustar .TH "lz4c" 1 "May 2013" "LZ4C" "LZ4C" .SH NAME lz4c \- Tool using Fast LZ compression algorithm library .SH SYNOPSIS .B lz4c [options] file ... .SH DESCRIPTION \fBLZ4\fP is a very fast lossless compression algorithm. This uses Dictionary compression, and only supports compression and decompression unit blocks. .br Infomation about compression ratio and speed (from webpage of lz4): single thread, Core 2 Duo @3GHz, using the Open-Source Benchmark program by m^2 compiled with GCC v4.5.2, on the Silesia Corpus. .br Name Ratio C.speed D.speed .br LZ4 (r59) 2.084 330 915 .br LZO 2.05 1x_1 2.038 311 480 .br QuickLZ 1.5 \-1 2.233 257 277 .br Snappy 1.0.5 2.024 227 729 .br LZF 2.076 197 465 .br FastLZ 2.030 190 420 .br zlib 1.2.5 \-1 2.728 39 195 .br LZ4 HC (r66) 2.712 18 1020 .br zlib 1.2.5 \-6 3.095 14 210 .br .SH OPTIONS: .TP .B \\-H Help (this text + advanced options) .TP .B \\-c0/\\-c Fast compression (default) .TP .B \\-c1/\\-hc \-c1/\-hc: High compression .TP .B \\-d decompression .TP .B \\-y overwrite without prompting .SH AUTHOR This manual page was written by Nobuhiro Iwamatsu for the Debian GNU/Linux system (but may be used by others). debian/liblz4-tool.install0000664000000000000000000000001212305501334012720 0ustar usr/bin/* debian/liblz4-dev.install0000664000000000000000000000006112305501334012525 0ustar usr/include/* usr/lib/*/lib*.a usr/lib/*/lib*.so debian/liblz4-1.install0000664000000000000000000000002412305551203012106 0ustar usr/lib/*/lib*.so.* debian/lz4.10000664000000000000000000000263312305552441007770 0ustar .TH "lz4" 1 "March 2014" "LZ4" "LZ4" .SH NAME lz4 \- Tool using Fast LZ compression algorithm library .SH SYNOPSIS .B lz4 [arg] [input] [output] .SH DESCRIPTION \fBLZ4\fP is a very fast lossless compression algorithm. This uses Dictionary compression, and only supports compression and decompression unit blocks. .br Infomation about compression ratio and speed (from webpage of lz4): single thread, Core 2 Duo @3GHz, using the Open-Source Benchmark program by m^2 compiled with GCC v4.5.2, on the Silesia Corpus. .br Name Ratio C.speed D.speed .br LZ4 (r59) 2.084 330 915 .br LZO 2.05 1x_1 2.038 311 480 .br QuickLZ 1.5 \-1 2.233 257 277 .br Snappy 1.0.5 2.024 227 729 .br LZF 2.076 197 465 .br FastLZ 2.030 190 420 .br zlib 1.2.5 \-1 2.728 39 195 .br LZ4 HC (r66) 2.712 18 1020 .br zlib 1.2.5 \-6 3.095 14 210 .br .SH OPTIONS: .B input a filename with no FILE, or when FILE is - or stdin, read standard input .TP .B \\-1 Fast compression (default) .TP .B \\-9 High compression .TP .B \\-d decompression (default for .lz4 extension) .TP .B \\-z force compression .TP .B \\-f overwrite output without prompting .TP .B \\-h/\\-H display help/long help and exit .SH AUTHOR This manual page was written by Nobuhiro Iwamatsu for the Debian GNU/Linux system (but may be used by others). debian/patches/0000775000000000000000000000000012323001210010577 5ustar debian/patches/add-support-kfreebsd.patch0000664000000000000000000000156212313217007015665 0ustar Description: Add support GNU/kFreeBSD Forwarded: not yet Author: Nobuhiro Iwamatsu Last-Update: 2014-03-22 diff --git a/Makefile b/Makefile index 16d8e93..55df00e 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ clean: #make install option is reserved to Linux & OSX targets -ifneq (,$(filter $(shell uname),Linux Darwin)) +ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD)) install: liblz4 @install -d -m 755 $(DESTDIR)$(LIBDIR)/ $(DESTDIR)$(INCLUDEDIR)/ diff --git a/programs/Makefile b/programs/Makefile index 868c5fb..71bcd10 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -81,7 +81,7 @@ clean: @echo Cleaning completed -ifneq (,$(filter $(shell uname),Linux Darwin)) +ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD)) install: lz4 lz4c @install -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MANDIR)/ debian/patches/series0000664000000000000000000000013212322776535012044 0ustar add-ldflags.patch fix-install.patch add-support-kfreebsd.patch fix-endianness-check.patch debian/patches/fix-endianness-check.patch0000664000000000000000000000230512323001207015614 0ustar Description: Fix __GLIBC__ endianness check to include stdlib.h Checking for __GLIBC__ without including a header that defines it doesn't work very well, so the endianness falls back to the hardcoded arch list, which incorrectly identifies ppc64el as big endian. Author: William Grant Index: lz4-0.0~r114/lz4.c =================================================================== --- lz4-0.0~r114.orig/lz4.c 2014-04-14 16:25:19.569151223 +0100 +++ lz4-0.0~r114/lz4.c 2014-04-14 16:44:40.081195450 +0100 @@ -68,6 +68,7 @@ * Little Endian or Big Endian ? * Overwrite the #define below if you know your architecture endianess */ +#include #if defined (__GLIBC__) # include # if (__BYTE_ORDER == __BIG_ENDIAN) Index: lz4-0.0~r114/lz4hc.c =================================================================== --- lz4-0.0~r114.orig/lz4hc.c 2014-04-14 16:25:19.569151223 +0100 +++ lz4-0.0~r114/lz4hc.c 2014-04-14 16:44:50.917195863 +0100 @@ -66,6 +66,7 @@ * Little Endian or Big Endian ? * Overwrite the #define below if you know your architecture endianess */ +#include #if defined (__GLIBC__) # include # if (__BYTE_ORDER == __BIG_ENDIAN) debian/patches/fix-install.patch0000664000000000000000000000161512313154074014075 0ustar Description: Fix install library Forwarded: not-need Author: Nobuhiro Iwamatsu Last-Update: 2014-03-22 diff --git a/Makefile b/Makefile index 0ad1e0a..16d8e93 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,9 @@ install: liblz4 @install -m 755 liblz4.a $(DESTDIR)$(LIBDIR)/liblz4.a @install -m 755 liblz4.so.$(LIBVER) $(DESTDIR)$(LIBDIR)/liblz4.so.$(LIBVER) @install -m 755 liblz4.so.$(LIBVER_MAJOR) $(DESTDIR)$(LIBDIR)/liblz4.so.$(LIBVER_MAJOR) - @install -m 755 liblz4.so $(DESTDIR)$(LIBDIR)/liblz4.so + @install -m 755 liblz4.so.$(LIBVER) $(DESTDIR)$(LIBDIR)/liblz4.so.$(LIBVER) + @ln -sf liblz4.so.$(LIBVER) $(DESTDIR)$(LIBDIR)/liblz4.so.$(LIBVER_MAJOR) + @ln -sf liblz4.so.$(LIBVER) $(DESTDIR)$(LIBDIR)/liblz4.so @install -m 755 lz4.h $(DESTDIR)$(INCLUDEDIR)/lz4.h @install -m 755 lz4hc.h $(DESTDIR)$(INCLUDEDIR)/lz4hc.h @echo lz4 static and shared library installed debian/patches/add-ldflags.patch0000664000000000000000000000364112313154074014006 0ustar Description: Add LDFLAGS to each Makefile Forwarded: not-need Author: Nobuhiro Iwamatsu Last-Update: 2014-03-22 diff --git a/Makefile b/Makefile index 380e1fe..90e7093 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ liblz4.a: lz4.c lz4hc.c ar rcs liblz4.a lz4.o lz4hc.o liblz4.so: lz4.c lz4hc.c - $(CC) $(CFLAGS) -shared $^ -fPIC -Wl,-soname=liblz4.so.$(LIBVER_MAJOR) -o $@.$(LIBVER) + $(CC) $(CFLAGS) $(LDFLAGS) -shared $^ -fPIC -Wl,-soname=liblz4.so.$(LIBVER_MAJOR) -o $@.$(LIBVER) @ln -s $@.$(LIBVER) $@.$(LIBVER_MAJOR) @ln -s $@.$(LIBVER) $@ diff --git a/programs/Makefile b/programs/Makefile index 868c5fb..2fa3396 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -54,22 +54,22 @@ default: lz4 lz4c all: lz4 lz4c lz4c32 fuzzer fuzzer32 fullbench fullbench32 lz4: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c - $(CC) $(CFLAGS) -DDISABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT) + $(CC) $(CFLAGS) -I.. $(LDFLAGS) -DDISABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT) lz4c : $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c - $(CC) $(CFLAGS) $^ -o $@$(EXT) + $(CC) $(CFLAGS) -I.. $(LDFLAGS) $^ -o $@$(EXT) lz4c32: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c - $(CC) -m32 $(CFLAGS) $^ -o $@$(EXT) + $(CC) -m32 $(CFLAGS) -I.. $(LDFLAGS) $^ -o $@$(EXT) fuzzer : $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c fuzzer.c - $(CC) $(CFLAGS) $^ -o $@$(EXT) + $(CC) $(CFLAGS) -I.. $(LDFLAGS) $^ -o $@$(EXT) fuzzer32: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c fuzzer.c - $(CC) -m32 $(CFLAGS) $^ -o $@$(EXT) + $(CC) -m32 $(CFLAGS) -I.. $(LDFLAGS) $^ -o $@$(EXT) fullbench : $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c xxhash.c fullbench.c - $(CC) $(CFLAGS) $^ -o $@$(EXT) + $(CC) $(CFLAGS) -I.. $(LDFLAGS) $^ -o $@$(EXT) fullbench32: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c xxhash.c fullbench.c $(CC) -m32 $(CFLAGS) $^ -o $@$(EXT) debian/compat0000664000000000000000000000000212305501334010362 0ustar 8 debian/source/0000775000000000000000000000000012305501334010464 5ustar debian/source/format0000664000000000000000000000001412305501334011672 0ustar 3.0 (quilt) debian/rules0000775000000000000000000000125512313153702010250 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CPPFLAGS:= $(shell dpkg-buildflags --get CPPFLAGS) CFLAGS:= $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) CXXFLAGS:= $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) LDFLAGS:= $(shell dpkg-buildflags --get LDFLAGS) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS) export CFLAGS export CPPFLAGS export LDFLAGS %: dh $@ override_dh_install: make install DESTDIR=$$(pwd)/debian/tmp LIBDIR=$(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH) dh_install override_dh_strip: dh_strip -a --dbg-package=liblz4-1-dbg debian/liblz4-tool.manpages0000664000000000000000000000003312305552605013057 0ustar debian/lz4c.1 debian/lz4.1