Import lz4_1.8.3-1.debian.tar.xz
authorNobuhiro Iwamatsu <iwamatsu@debian.org>
Tue, 25 Sep 2018 13:26:58 +0000 (14:26 +0100)
committerNobuhiro Iwamatsu <iwamatsu@debian.org>
Tue, 25 Sep 2018 13:26:58 +0000 (14:26 +0100)
[dgit import tarball lz4 1.8.3-1 lz4_1.8.3-1.debian.tar.xz]

16 files changed:
changelog [new file with mode: 0644]
compat [new file with mode: 0644]
control [new file with mode: 0644]
copyright [new file with mode: 0644]
liblz4-1.install [new file with mode: 0644]
liblz4-1.symbols [new file with mode: 0644]
liblz4-dev.install [new file with mode: 0644]
lz4.install [new file with mode: 0644]
lz4.manpages [new file with mode: 0644]
patches/0001-Show-build-info.patch [new file with mode: 0644]
patches/0002-Fix-static-link.patch [new file with mode: 0644]
patches/0003-Ignore-test.patch [new file with mode: 0644]
patches/series [new file with mode: 0644]
rules [new file with mode: 0755]
source/format [new file with mode: 0644]
watch [new file with mode: 0644]

diff --git a/changelog b/changelog
new file mode 100644 (file)
index 0000000..5548bc6
--- /dev/null
+++ b/changelog
@@ -0,0 +1,258 @@
+lz4 (1.8.3-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Update d/patches.
+  * Update d/copyright.
+    Remove unused file paragraph.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Tue, 25 Sep 2018 22:26:58 +0900
+
+lz4 (1.8.2-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Add debian/watch file.
+  * Update debian/liblz4-1.symbols.
+    Add APIs following:
+      - LZ4_attach_HC_dictionary@Base
+      - LZ4_attach_dictionary@Base
+      - LZ4_compress_fast_extState_fastReset@Base
+      - LZ4_decoderRingBufferSize@Base
+      - LZ4_resetStream_fast@Base
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Mon, 14 May 2018 16:45:54 +0900
+
+lz4 (1.8.1.2-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Update static link problem fix.
+    In this fix, add LZ4F_PUBLISH_STATIC_FUNCTIONS to compile option.
+    This makes the following API available for reference to the library.
+      - LZ4F_compressBegin_usingCDict@Base
+      - LZ4F_compressFrame_usingCDict@Base
+      - LZ4F_createCDict@Base
+      - LZ4F_decompress_usingDict@Base
+      - LZ4F_freeCDict@Base
+      - LZ4F_getErrorCode@Base
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Fri, 13 Apr 2018 10:39:09 +0900
+
+lz4 (1.8.0-5) unstable; urgency=medium
+
+  * Upload to unstable.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Thu, 12 Apr 2018 11:46:55 +0900
+
+lz4 (1.8.0-4) experimental; urgency=medium
+
+  * Add liblz4-tool transitional package (Closes: #894279)
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Thu, 12 Apr 2018 08:31:07 +0900
+
+lz4 (1.8.0-3) experimental; urgency=medium
+
+  * Change package name to liblz4-1.
+    Do not need to change SONAME, so revert it.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Wed, 11 Apr 2018 09:02:37 +0900
+
+lz4 (1.8.0-2) experimental; urgency=medium
+
+  * Change package name to liblz4-1a.
+    From 1.8.0, lz4 removed some API in 1.8.0, but upstream dose not bump
+    the SONAME. We changed to -1a to maintain compatibility.
+  * Fix Static link. (#882974)
+  * Update debian/copyright.
+    - Fix insecure copyright format URI.
+    - Update copyright information.
+  * Update Vcs-Browser and Vcs-Git to use salsa.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Wed, 08 Nov 2017 13:26:35 +0900
+
+lz4 (1.8.0-1) experimental; urgency=medium
+
+  * New upstream release. (Closes: #860168, #821740)
+  * Bump Standards-Version to 4.1.0.
+  * Remove patches/ignore_rm_fail.patch.
+  * Update symbols file.
+  * Rename liblz4-tool to lz4. (Closes: #781234)
+  * Change Priority to optional. (Closes: #816620)
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Thu, 31 Aug 2017 08:07:55 +0900
+
+lz4 (1.7.5-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+  * Bump Standards-Version to 3.9.8.
+  * Update symbols file.
+  * Add patches/ignore_rm_fail.patch.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Mon, 19 Jun 2017 09:09:28 +0900
+
+lz4 (0.0~r131-2) unstable; urgency=medium
+
+  * Add support cross compile. (Closes: #814687)
+    Thanks to Helmut Grohne <helmut@subdivi.de>.
+  * Change URL of homepage to https://github.com/Cyan4973/lz4.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Thu, 18 Feb 2016 00:27:54 +0900
+
+lz4 (0.0~r131-1) unstable; urgency=medium
+
+  * Snapshot, taken from the trunk (r131).
+  * Update and enable atches/0001-Disable-valgrind.patch.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Sun, 16 Aug 2015 20:46:09 +0900
+
+lz4 (0.0~r130-1) unstable; urgency=medium
+
+  * Snapshot, taken from the trunk (r130).
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Mon, 01 Jun 2015 09:35:45 +0900
+
+lz4 (0.0~r127-1) experimental; urgency=low
+
+  * Snapshot, taken from the trunk (r127).
+  * Update debian/docs.
+    Add lz4_block_format.txt and LZ4_Frame_Format.html.
+  * Update liblz4-1.symbols.
+  * Bump Standards-Version to 3.9.6.
+  * Update copyright.
+    Add more infomation of copyright.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Sat, 07 Mar 2015 17:21:34 +0900
+
+lz4 (0.0~r122-2) unstable; urgency=medium
+
+  * Install pkgconfig file into liblz4-dev. (Closes: #761906)
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Wed, 17 Sep 2014 08:55:01 +0900
+
+lz4 (0.0~r122-1) unstable; urgency=high
+
+  * Snapshot, taken from the trunk (r122).
+  * Fix test on s390x. (Closes: #757581)
+    Add patches/0001-Add-support-s390x-architecture.patch.
+  * Remove patches.
+    - add-support-kfreebsd.patch, add-support-hurd.patch and Add-LDFLAGS.patch
+      were applied to upstream.
+    - Makefile of upstream was updated.
+      Remove 0001-Remove-test-32-from-test-target.patch.
+  * Update patches/0001-Disable-valgrind.patch.
+  * Update debian/rules.
+    - Re-enable test on s390x.
+  * Update symbols file.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Wed, 17 Sep 2014 01:57:08 +0900
+
+lz4 (0.0~r119-2) unstable; urgency=medium
+
+  * Disable test on s390x and sparc. (Closes: #755170)
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Tue, 29 Jul 2014 01:43:36 +0900
+
+lz4 (0.0~r119-1) unstable; urgency=medium
+
+  * Snapshot, taken from the trunk (r119) (Closes: #751256).
+  * The r119 fixed CVE-2014-4715, and r118 fixed CVE-2014-4611.
+  * Disable valgrind test.
+    Add patches/0001-Disable-valgrind.patch.
+  * Disable test with -m32 option.
+    Add patches/0001-Remove-test-32-from-test-target.patch.
+  * Update liblz4-1.symbols.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Tue, 15 Jul 2014 10:25:02 +0900
+
+lz4 (0.0~r117-1) unstable; urgency=medium
+
+  * Snapshot, taken from the trunk (r117).
+  * Remove patches/add-ldflags.patch and patches/fix-install.patch.
+  * Update patches/add-support-kfreebsd.patch.
+  * Add patches/add-support-hurd.patch (Closes: #749901).
+  * Add patches/Remove-32bit-test-program-from-target.patch.
+  * Add patches/Add-LDFLAGS.patch.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Mon, 09 Jun 2014 14:57:21 +0900
+
+lz4 (0.0~r114-2) unstable; urgency=low
+
+  * Update patches/add-support-kfreebsd.patch.
+    Support programs.Makefile too.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  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 <iwamatsu@debian.org>  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 <iwamatsu@debian.org>  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 <iwamatsu@debian.org>  Wed, 05 Mar 2014 10:50:41 +0900
+
+lz4 (0.0~r109-1) unstable; urgency=low
+
+  * Snapshot, taken from the trunk (r109).
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  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 <iwamatsu@debian.org>  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 <iwamatsu@debian.org>  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 <iwamatsu@debian.org>  Fri, 31 May 2013 14:05:43 +0900
+
+lz4 (0.0~r94-1) unstable; urgency=low
+
+  * Initial release. (Closes: #698256)
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Sat, 04 May 2013 08:31:31 +0900
diff --git a/compat b/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
+++ b/compat
@@ -0,0 +1 @@
+9
diff --git a/control b/control
new file mode 100644 (file)
index 0000000..937eeaf
--- /dev/null
+++ b/control
@@ -0,0 +1,68 @@
+Source: lz4
+Priority: optional
+Maintainer: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+Build-Depends: debhelper (>= 9.0.0)
+Standards-Version: 4.1.0
+Section: utils
+Homepage: https://github.com/Cyan4973/lz4
+Vcs-Browser: https://salsa.debian.org/debian/lz4
+Vcs-Git: https://salsa.debian.org/debian/lz4.git
+
+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}
+Replaces: liblz4-1a
+Breaks: liblz4-1a
+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: lz4
+Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, liblz4-1 (= ${binary:Version})
+Multi-Arch: foreign
+Provides: liblz4-tool
+Replaces: liblz4-tool (<< 1.8.0-1)
+Conflicts: liblz4-tool (<< 1.8.0-1)
+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.
+
+Package: liblz4-tool
+Architecture: all
+Section: oldlibs
+Depends:
+ lz4,
+ ${misc:Depends},
+Description: Fast LZ compression algorithm library - transitional package
+ 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 is a transitional package. It can be safely removed.
diff --git a/copyright b/copyright
new file mode 100644 (file)
index 0000000..51fac2c
--- /dev/null
+++ b/copyright
@@ -0,0 +1,101 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lz4
+Source: https://github.com/Cyan4973/lz4
+
+Files: *
+Copyright: Copyright (C) 2011-2017, Yann Collet.
+License: BSD-2-clause
+
+Files: lib/*
+Copyright: Copyright (C) 2011-2017, Yann Collet.
+License: BSD-2-clause
+
+Files: lib/liblz4.pc.in
+Copyright: Copyright (C) 2011-2014, Yann Collet.
+License: BSD-2-clause
+
+Files: lib/lz4frame.c
+       lib/lz4frame_static.h
+       lib/xxhash.c
+       lib/xxhash.h
+Copyright: Copyright (C) 2011-2016, Yann Collet.
+License: BSD-2-clause
+
+Files: programs/*
+Copyright: Copyright (C) 2011-2016, Yann Collet.
+License: GPL-2+
+
+Files: programs/lz4io.c
+Copyright: Copyright (C) 2011-2017, Yann Collet.
+License: GPL-2+
+
+Files: programs/platform.h
+Copyright: Copyright (C) 2016 -present, Przemyslaw Skibinski, Yann Collet
+License: GPL-2+
+
+Files: programs/util.h
+Copyright: Copyright (C) 2016 -present, Przemyslaw Skibinski, Yann Collet
+License: GPL-2+
+
+Files: ./examples/printVersion.c
+Copyright: Takayuki Matsuoka & Yann Collet
+License: GPL-2
+
+Files: ./examples/blockStreaming_lineByLine.c
+       ./examples/blockStreaming_doubleBuffer.c
+Copyright: Takayuki Matsuoka
+License: GPL-2
+
+Files: ./examples/HCStreaming_ringBuffer.c
+       ./examples/blockStreaming_ringBuffer.c
+Copyright: Yann Collet
+License: GPL-2
+
+Files: ./examples/compress_functions.c
+       ./examples/simple_buffer.c
+Copyright: Kyle Harper
+License: BSD-2-clause
+
+
+Files: debian/*
+Copyright: 2013 Nobuhiro Iwamatsu <iwamatsu@debian.org>
+License: GPL-2+
+
+License: GPL-2
+ 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
+ the Free Software Foundation; version 2 dated June, 1991.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in '/usr/share/common-licenses/GPL-2'.
+
+License: GPL-2+
+ 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
+ the Free Software Foundation; version 2 dated June, 1991, or (at
+ your option) any later version.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in '/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.
diff --git a/liblz4-1.install b/liblz4-1.install
new file mode 100644 (file)
index 0000000..3ddde58
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/liblz4-1.symbols b/liblz4-1.symbols
new file mode 100644 (file)
index 0000000..3b88584
--- /dev/null
@@ -0,0 +1,94 @@
+liblz4.so.1 liblz4-1 #MINVER#
+ LZ4F_compressBegin@Base 0.0~r127
+ LZ4F_compressBegin_usingCDict@Base 1.8.1.2
+ LZ4F_compressBound@Base 0.0~r127
+ LZ4F_compressEnd@Base 0.0~r127
+ LZ4F_compressFrame@Base 0.0~r127
+ LZ4F_compressFrameBound@Base 0.0~r127
+ LZ4F_compressFrame_usingCDict@Base 1.8.1.2
+ LZ4F_compressUpdate@Base 0.0~r127
+ LZ4F_compressionLevel_max@Base 1.8.0
+ LZ4F_createCDict@Base 1.8.1.2
+ LZ4F_createCompressionContext@Base 0.0~r127
+ LZ4F_createDecompressionContext@Base 0.0~r127
+ LZ4F_decompress@Base 0.0~r127
+ LZ4F_decompress_usingDict@Base 1.8.1.2
+ LZ4F_flush@Base 0.0~r127
+ LZ4F_freeCDict@Base 1.8.1.2
+ LZ4F_freeCompressionContext@Base 0.0~r127
+ LZ4F_freeDecompressionContext@Base 0.0~r127
+ LZ4F_getErrorCode@Base 1.8.1.2
+ LZ4F_getErrorName@Base 0.0~r127
+ LZ4F_getFrameInfo@Base 0.0~r127
+ LZ4F_getVersion@Base 1.7.5
+ LZ4F_isError@Base 0.0~r127
+ LZ4F_resetDecompressionContext@Base 1.8.0
+ LZ4_attach_HC_dictionary@Base 1.8.2
+ LZ4_attach_dictionary@Base 1.8.2
+ 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_HC@Base 0.0~r130
+ LZ4_compress_HC_continue@Base 0.0~r130
+ LZ4_compress_HC_extStateHC@Base 0.0~r130
+ LZ4_compress_continue@Base 0.0~r113
+ LZ4_compress_default@Base 0.0~r130
+ LZ4_compress_destSize@Base 0.0~r130
+ LZ4_compress_fast@Base 0.0~r130
+ LZ4_compress_fast_continue@Base 0.0~r130
+ LZ4_compress_fast_extState@Base 0.0~r130
+ LZ4_compress_fast_extState_fastReset@Base 1.8.2
+ 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_createStream@Base 0.0~r119
+ LZ4_createStreamDecode@Base 0.0~r119
+ LZ4_createStreamHC@Base 0.0~r127
+ LZ4_decoderRingBufferSize@Base 1.8.2
+ LZ4_decompress_fast@Base 0.0~r113
+ LZ4_decompress_fast_continue@Base 0.0~r119
+ LZ4_decompress_fast_usingDict@Base 0.0~r119
+ LZ4_decompress_fast_withPrefix64k@Base 0.0~r113
+ LZ4_decompress_safe@Base 0.0~r113
+ LZ4_decompress_safe_continue@Base 0.0~r119
+ LZ4_decompress_safe_partial@Base 0.0~r113
+ LZ4_decompress_safe_usingDict@Base 0.0~r119
+ LZ4_decompress_safe_withPrefix64k@Base 0.0~r113
+ LZ4_freeHC@Base 0.0~r113
+ LZ4_freeStream@Base 0.0~r122
+ LZ4_freeStreamDecode@Base 0.0~r122
+ LZ4_freeStreamHC@Base 0.0~r127
+ LZ4_loadDict@Base 0.0~r119
+ LZ4_loadDictHC@Base 0.0~r127
+ LZ4_resetStream@Base 0.0~r122
+ LZ4_resetStreamHC@Base 0.0~r127
+ LZ4_resetStreamState@Base 0.0~r113
+ LZ4_resetStreamStateHC@Base 0.0~r113
+ LZ4_resetStream_fast@Base 1.8.2
+ LZ4_saveDict@Base 0.0~r119
+ LZ4_saveDictHC@Base 0.0~r127
+ LZ4_setStreamDecode@Base 0.0~r122
+ 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
+ LZ4_versionNumber@Base 0.0~r122
+ LZ4_versionString@Base 1.8.0
diff --git a/liblz4-dev.install b/liblz4-dev.install
new file mode 100644 (file)
index 0000000..76f28fa
--- /dev/null
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/lib*.a
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/*
diff --git a/lz4.install b/lz4.install
new file mode 100644 (file)
index 0000000..1df36c6
--- /dev/null
@@ -0,0 +1 @@
+usr/bin/*
diff --git a/lz4.manpages b/lz4.manpages
new file mode 100644 (file)
index 0000000..4450a71
--- /dev/null
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man1/*.1
diff --git a/patches/0001-Show-build-info.patch b/patches/0001-Show-build-info.patch
new file mode 100644 (file)
index 0000000..05913f9
--- /dev/null
@@ -0,0 +1,677 @@
+From beea964e85890f55d843f249f8b8251a6eac83c7 Mon Sep 17 00:00:00 2001
+From: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+Date: Tue, 15 May 2018 07:47:23 +0900
+Subject: [PATCH 1/2] Show build info
+
+Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+---
+ Makefile                    |  46 ++++++++--------
+ contrib/djgpp/Makefile      |  60 ++++++++++-----------
+ contrib/gen_manual/Makefile |   4 +-
+ examples/Makefile           |  20 +++----
+ lib/Makefile                |  18 +++----
+ lib/dll/example/Makefile    |   4 +-
+ programs/Makefile           |  48 ++++++++---------
+ tests/Makefile              | 104 ++++++++++++++++++------------------
+ 8 files changed, 152 insertions(+), 152 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 86613fd..8ff33df 100644
+--- a/Makefile
++++ b/Makefile
+@@ -58,14 +58,14 @@ allmost: lib lz4 examples
+ .PHONY: lib lib-release liblz4.a
+ lib: liblz4.a
+ lib lib-release liblz4.a:
+-      @$(MAKE) -C $(LZ4DIR) $@
++      $(MAKE) -C $(LZ4DIR) $@
+ .PHONY: lz4 lz4-release
+ lz4 : liblz4.a
+ lz4-release : lib-release
+ lz4 lz4-release :
+-      @$(MAKE) -C $(PRGDIR) $@
+-      @cp $(PRGDIR)/lz4$(EXT) .
++      $(MAKE) -C $(PRGDIR) $@
++      cp $(PRGDIR)/lz4$(EXT) .
+ .PHONY: examples
+ examples: liblz4.a
+@@ -73,17 +73,17 @@ examples: liblz4.a
+ .PHONY: manuals
+ manuals:
+-      @$(MAKE) -C contrib/gen_manual $@
++      $(MAKE) -C contrib/gen_manual $@
+ .PHONY: clean
+ clean:
+-      @$(MAKE) -C $(LZ4DIR) $@ > $(VOID)
+-      @$(MAKE) -C $(PRGDIR) $@ > $(VOID)
+-      @$(MAKE) -C $(TESTDIR) $@ > $(VOID)
+-      @$(MAKE) -C $(EXDIR) $@ > $(VOID)
+-      @$(MAKE) -C contrib/gen_manual $@ > $(VOID)
+-      @$(RM) lz4$(EXT)
+-      @echo Cleaning completed
++      $(MAKE) -C $(LZ4DIR) $@ > $(VOID)
++      $(MAKE) -C $(PRGDIR) $@ > $(VOID)
++      $(MAKE) -C $(TESTDIR) $@ > $(VOID)
++      $(MAKE) -C $(EXDIR) $@ > $(VOID)
++      $(MAKE) -C contrib/gen_manual $@ > $(VOID)
++      $(RM) lz4$(EXT)
++      echo Cleaning completed
+ #-----------------------------------------------------------------------------
+@@ -94,14 +94,14 @@ HOST_OS = POSIX
+ .PHONY: install uninstall
+ install uninstall:
+-      @$(MAKE) -C $(LZ4DIR) $@
+-      @$(MAKE) -C $(PRGDIR) $@
++      $(MAKE) -C $(LZ4DIR) $@
++      $(MAKE) -C $(PRGDIR) $@
+ travis-install:
+       $(MAKE) -j1 install DESTDIR=~/install_test_dir
+ cmake:
+-      @cd contrib/cmake_unofficial; cmake $(CMAKE_PARAMS) CMakeLists.txt; $(MAKE)
++      cd contrib/cmake_unofficial; cmake $(CMAKE_PARAMS) CMakeLists.txt; $(MAKE)
+ endif
+@@ -119,7 +119,7 @@ ifneq (,$(filter $(HOST_OS),MSYS POSIX))
+ .PHONY: list
+ list:
+-      @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
++      $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
+ .PHONY: check
+ check:
+@@ -132,15 +132,15 @@ test:
+ clangtest: clean
+       clang -v
+-      @CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(LZ4DIR)  all CC=clang
+-      @CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(PRGDIR)  all CC=clang
+-      @CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(TESTDIR) all CC=clang
++      CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(LZ4DIR)  all CC=clang
++      CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(PRGDIR)  all CC=clang
++      CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(TESTDIR) all CC=clang
+ clangtest-native: clean
+       clang -v
+-      @CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(LZ4DIR)  all    CC=clang
+-      @CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(PRGDIR)  native CC=clang
+-      @CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(TESTDIR) native CC=clang
++      CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(LZ4DIR)  all    CC=clang
++      CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(PRGDIR)  native CC=clang
++      CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(TESTDIR) native CC=clang
+ usan: clean
+       CC=clang CFLAGS="-O3 -g -fsanitize=undefined" $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1
+@@ -152,8 +152,8 @@ staticAnalyze: clean
+       CFLAGS=-g scan-build --status-bugs -v $(MAKE) all
+ platformTest: clean
+-      @echo "\n ---- test lz4 with $(CC) compiler ----"
+-      @$(CC) -v
++      echo "\n ---- test lz4 with $(CC) compiler ----"
++      $(CC) -v
+       CFLAGS="-O3 -Werror"         $(MAKE) -C $(LZ4DIR) all
+       CFLAGS="-O3 -Werror -static" $(MAKE) -C $(PRGDIR) all
+       CFLAGS="-O3 -Werror -static" $(MAKE) -C $(TESTDIR) all
+diff --git a/contrib/djgpp/Makefile b/contrib/djgpp/Makefile
+index 8cd3580..2ee4356 100644
+--- a/contrib/djgpp/Makefile
++++ b/contrib/djgpp/Makefile
+@@ -77,50 +77,50 @@ install: $(INC) $(LIB) $(EXE)
+       rm -f .footprint
+       echo $(DESTDIR)/bin/$(EXE) >> .footprint
+       cp -v $(EXE) $(DESTDIR)/bin/
+-      @for T in $(LIB); \
++      for T in $(LIB); \
+       do ( \
+               echo $(DESTDIR)/$$T >> .footprint; \
+               cp -v --parents $$T $(DESTDIR) \
+       ); done
+-      @for T in $(INC); \
++      for T in $(INC); \
+       do ( \
+               echo $(DESTDIR)/include/`basename -a $$T` >> .footprint; \
+               cp -v $$T $(DESTDIR)/include/ \
+       ); done
+ uninstall: .footprint
+-      @for T in $(shell cat .footprint); do rm -v $$T; done
++      for T in $(shell cat .footprint); do rm -v $$T; done
+ -include $(SDEPS) $(LSDEPS)
+ showconfig:
+-      @echo "PWD="$(PWD)
+-      @echo "VERSION="$(VERSION)
+-      @echo "RELEASE="$(RELEASE)
+-      @echo "LIBVER_MAJOR="$(LIBVER_MAJOR)
+-      @echo "LIBVER_MINOR="$(LIBVER_MINOR)
+-      @echo "LIBVER_PATCH="$(LIBVER_PATCH)
+-      @echo "LIBVER="$(LIBVER)
+-      @echo "CROSS="$(CROSS)
+-      @echo "CC="$(CC)
+-      @echo "AR="$(AR)
+-      @echo "LD="$(LD)
+-      @echo "DESTDIR="$(DESTDIR)
+-      @echo "CFLAGS="$(CFLAGS)
+-      @echo "LDFLAGS="$(LDFLAGS)
+-      @echo "SRC="$(SRC)
+-      @echo "OBJ="$(OBJ)
+-      @echo "IDIR="$(IDIR)
+-      @echo "INC="$(INC)
+-      @echo "EDIR="$(EDIR)
+-      @echo "EXE="$(EXE)
+-      @echo "LDIR="$(LDIR)
+-      @echo "LSRC="$(LSRC)
+-      @echo "LOBJ="$(LOBJ)
+-      @echo "LNK="$(LNK)
+-      @echo "LIB="$(LIB)
+-      @echo "SDEPS="$(SDEPS)
+-      @echo "LSDEPS="$(LSDEPS)
++      echo "PWD="$(PWD)
++      echo "VERSION="$(VERSION)
++      echo "RELEASE="$(RELEASE)
++      echo "LIBVER_MAJOR="$(LIBVER_MAJOR)
++      echo "LIBVER_MINOR="$(LIBVER_MINOR)
++      echo "LIBVER_PATCH="$(LIBVER_PATCH)
++      echo "LIBVER="$(LIBVER)
++      echo "CROSS="$(CROSS)
++      echo "CC="$(CC)
++      echo "AR="$(AR)
++      echo "LD="$(LD)
++      echo "DESTDIR="$(DESTDIR)
++      echo "CFLAGS="$(CFLAGS)
++      echo "LDFLAGS="$(LDFLAGS)
++      echo "SRC="$(SRC)
++      echo "OBJ="$(OBJ)
++      echo "IDIR="$(IDIR)
++      echo "INC="$(INC)
++      echo "EDIR="$(EDIR)
++      echo "EXE="$(EXE)
++      echo "LDIR="$(LDIR)
++      echo "LSRC="$(LSRC)
++      echo "LOBJ="$(LOBJ)
++      echo "LNK="$(LNK)
++      echo "LIB="$(LIB)
++      echo "SDEPS="$(SDEPS)
++      echo "LSDEPS="$(LSDEPS)
+ gstat:
+       git status
+diff --git a/contrib/gen_manual/Makefile b/contrib/gen_manual/Makefile
+index 95abe2e..4cf9d48 100644
+--- a/contrib/gen_manual/Makefile
++++ b/contrib/gen_manual/Makefile
+@@ -72,5 +72,5 @@ manuals: gen_manual $(LZ4MANUAL) $(LZ4FMANUAL)
+ .PHONY: clean
+ clean:
+-      @$(RM) gen_manual$(EXT)
+-      @echo Cleaning completed
++      $(RM) gen_manual$(EXT)
++      echo Cleaning completed
+diff --git a/examples/Makefile b/examples/Makefile
+index 103e7ec..074fe74 100644
+--- a/examples/Makefile
++++ b/examples/Makefile
+@@ -86,27 +86,27 @@ $(LZ4) :
+       $(MAKE) -C ../programs lz4
+ test : all $(LZ4)
+-      @echo "\n=== Print Version ==="
++      echo "\n=== Print Version ==="
+       ./printVersion$(EXT)
+-      @echo "\n=== Simple compression example ==="
++      echo "\n=== Simple compression example ==="
+       ./simpleBuffer$(EXT)
+-      @echo "\n=== Double-buffer ==="
++      echo "\n=== Double-buffer ==="
+       ./doubleBuffer$(EXT) $(TESTFILE)
+-      @echo "\n=== Ring Buffer ==="
++      echo "\n=== Ring Buffer ==="
+       ./ringBuffer$(EXT)   $(TESTFILE)
+-      @echo "\n=== Ring Buffer + LZ4 HC ==="
++      echo "\n=== Ring Buffer + LZ4 HC ==="
+       ./ringBufferHC$(EXT) $(TESTFILE)
+-      @echo "\n=== Compress line by line ==="
++      echo "\n=== Compress line by line ==="
+       ./lineCompress$(EXT) $(TESTFILE)
+-      @echo "\n=== Dictionary Random Access ==="
++      echo "\n=== Dictionary Random Access ==="
+       ./dictionaryRandomAccess$(EXT) $(TESTFILE) $(TESTFILE) 1100 1400
+-      @echo "\n=== Frame compression ==="
++      echo "\n=== Frame compression ==="
+       ./frameCompress$(EXT) $(TESTFILE)
+       $(LZ4) -vt $(TESTFILE).lz4
+ clean:
+-      @rm -f core *.o *.dec *-0 *-9 *-8192 *.lz4s *.lz4 \
++      rm -f core *.o *.dec *-0 *-9 *-8192 *.lz4s *.lz4 \
+        printVersion$(EXT) doubleBuffer$(EXT) dictionaryRandomAccess$(EXT) \
+        ringBuffer$(EXT) ringBufferHC$(EXT) lineCompress$(EXT) frameCompress$(EXT) \
+        compressFunctions$(EXT) simpleBuffer$(EXT)
+-      @echo Cleaning completed
++      echo Cleaning completed
+diff --git a/lib/Makefile b/lib/Makefile
+index abb6c07..f674e0d 100644
+--- a/lib/Makefile
++++ b/lib/Makefile
+@@ -93,20 +93,20 @@ endif
+ liblz4.a: $(SRCFILES)
+ ifeq ($(BUILD_STATIC),yes)  # can be disabled on command line
+-      @echo compiling static library
++      echo compiling static library
+       $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -c $^
+       $(Q)$(AR) rcs $@ *.o
+ endif
+ $(LIBLZ4): $(SRCFILES)
+ ifeq ($(BUILD_SHARED),yes)  # can be disabled on command line
+-      @echo compiling dynamic library $(LIBVER)
++      echo compiling dynamic library $(LIBVER)
+ ifneq (,$(filter Windows%,$(OS)))
+       $(Q)$(CC) $(FLAGS) -DLZ4_DLL_EXPORT=1 -shared $^ -o dll\$@.dll
+       dlltool -D dll\liblz4.dll -d dll\liblz4.def -l dll\liblz4.lib
+ else
+       $(Q)$(CC) $(FLAGS) -shared $^ -fPIC -fvisibility=hidden $(SONAME_FLAGS) -o $@
+-      @echo creating versioned links
++      echo creating versioned links
+       $(Q)ln -sf $@ liblz4.$(SHARED_EXT_MAJOR)
+       $(Q)ln -sf $@ liblz4.$(SHARED_EXT)
+ endif
+@@ -117,7 +117,7 @@ liblz4: $(LIBLZ4)
+ clean:
+       $(Q)$(RM) core *.o liblz4.pc dll/liblz4.dll dll/liblz4.lib
+       $(Q)$(RM) *.a *.$(SHARED_EXT) *.$(SHARED_EXT_MAJOR) *.$(SHARED_EXT_VER)
+-      @echo Cleaning library completed
++      echo Cleaning library completed
+ #-----------------------------------------------------------------------------
+@@ -159,7 +159,7 @@ INSTALL_PROGRAM ?= $(INSTALL)
+ INSTALL_DATA    ?= $(INSTALL) -m 644
+ liblz4.pc: liblz4.pc.in Makefile
+-      @echo creating pkgconfig
++      echo creating pkgconfig
+       $(Q)sed -e 's|@PREFIX@|$(prefix)|' \
+          -e 's|@LIBDIR@|$(libdir)|' \
+          -e 's|@INCLUDEDIR@|$(includedir)|' \
+@@ -169,7 +169,7 @@ liblz4.pc: liblz4.pc.in Makefile
+ install: lib liblz4.pc
+       $(Q)$(INSTALL) -d -m 755 $(DESTDIR)$(pkgconfigdir)/ $(DESTDIR)$(includedir)/ $(DESTDIR)$(libdir)/
+       $(Q)$(INSTALL_DATA) liblz4.pc $(DESTDIR)$(pkgconfigdir)/
+-      @echo Installing libraries
++      echo Installing libraries
+ ifeq ($(BUILD_STATIC),yes)
+       $(Q)$(INSTALL_DATA) liblz4.a $(DESTDIR)$(libdir)/liblz4.a
+       $(Q)$(INSTALL_DATA) lz4frame_static.h $(DESTDIR)$(includedir)/lz4frame_static.h
+@@ -179,11 +179,11 @@ ifeq ($(BUILD_SHARED),yes)
+       $(Q)ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT_MAJOR)
+       $(Q)ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(libdir)/liblz4.$(SHARED_EXT)
+ endif
+-      @echo Installing headers in $(includedir)
++      echo Installing headers in $(includedir)
+       $(Q)$(INSTALL_DATA) lz4.h $(DESTDIR)$(includedir)/lz4.h
+       $(Q)$(INSTALL_DATA) lz4hc.h $(DESTDIR)$(includedir)/lz4hc.h
+       $(Q)$(INSTALL_DATA) lz4frame.h $(DESTDIR)$(includedir)/lz4frame.h
+-      @echo lz4 libraries installed
++      echo lz4 libraries installed
+ uninstall:
+       $(Q)$(RM) $(DESTDIR)$(pkgconfigdir)/liblz4.pc
+@@ -195,6 +195,6 @@ uninstall:
+       $(Q)$(RM) $(DESTDIR)$(includedir)/lz4hc.h
+       $(Q)$(RM) $(DESTDIR)$(includedir)/lz4frame.h
+       $(Q)$(RM) $(DESTDIR)$(includedir)/lz4frame_static.h
+-      @echo lz4 libraries successfully uninstalled
++      echo lz4 libraries successfully uninstalled
+ endif
+diff --git a/lib/dll/example/Makefile b/lib/dll/example/Makefile
+index e987956..43aaf17 100644
+--- a/lib/dll/example/Makefile
++++ b/lib/dll/example/Makefile
+@@ -59,5 +59,5 @@ fullbench-dll: fullbench.c xxhash.c
+       $(CC) $(FLAGS) $^ -o $@$(EXT) -DLZ4_DLL_IMPORT=1 $(DLLDIR)/liblz4.dll
+ clean:
+-      @$(RM) fullbench-dll$(EXT) fullbench-lib$(EXT) \
+-      @echo Cleaning completed
++      $(RM) fullbench-dll$(EXT) fullbench-lib$(EXT) \
++      echo Cleaning completed
+diff --git a/programs/Makefile b/programs/Makefile
+index bd33d9b..7c9e359 100644
+--- a/programs/Makefile
++++ b/programs/Makefile
+@@ -100,10 +100,10 @@ preview-man: clean-man man
+       man ./lz4.1
+ clean:
+-      @$(MAKE) -C $(LZ4DIR) $@ > $(VOID)
+-      @$(RM) core *.o *.test tmp* \
++      $(MAKE) -C $(LZ4DIR) $@ > $(VOID)
++      $(RM) core *.o *.test tmp* \
+            lz4$(EXT) lz4c$(EXT) lz4c32$(EXT) unlz4$(EXT) lz4cat$(EXT)
+-      @echo Cleaning completed
++      echo Cleaning completed
+ #-----------------------------------------------------------------------------
+@@ -145,28 +145,28 @@ INSTALL_DATA    ?= $(INSTALL) -m 644
+ install: lz4
+-      @echo Installing binaries
+-      @$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)/ $(DESTDIR)$(man1dir)/
+-      @$(INSTALL_PROGRAM) lz4$(EXT) $(DESTDIR)$(bindir)/lz4$(EXT)
+-      @ln -sf lz4$(EXT) $(DESTDIR)$(bindir)/lz4c$(EXT)
+-      @ln -sf lz4$(EXT) $(DESTDIR)$(bindir)/lz4cat$(EXT)
+-      @ln -sf lz4$(EXT) $(DESTDIR)$(bindir)/unlz4$(EXT)
+-      @echo Installing man pages
+-      @$(INSTALL_DATA) lz4.1 $(DESTDIR)$(man1dir)/lz4.1
+-      @ln -sf lz4.1 $(DESTDIR)$(man1dir)/lz4c.1
+-      @ln -sf lz4.1 $(DESTDIR)$(man1dir)/lz4cat.1
+-      @ln -sf lz4.1 $(DESTDIR)$(man1dir)/unlz4.1
+-      @echo lz4 installation completed
++      echo Installing binaries
++      $(INSTALL) -d -m 755 $(DESTDIR)$(bindir)/ $(DESTDIR)$(man1dir)/
++      $(INSTALL_PROGRAM) lz4$(EXT) $(DESTDIR)$(bindir)/lz4$(EXT)
++      ln -sf lz4$(EXT) $(DESTDIR)$(bindir)/lz4c$(EXT)
++      ln -sf lz4$(EXT) $(DESTDIR)$(bindir)/lz4cat$(EXT)
++      ln -sf lz4$(EXT) $(DESTDIR)$(bindir)/unlz4$(EXT)
++      echo Installing man pages
++      $(INSTALL_DATA) lz4.1 $(DESTDIR)$(man1dir)/lz4.1
++      ln -sf lz4.1 $(DESTDIR)$(man1dir)/lz4c.1
++      ln -sf lz4.1 $(DESTDIR)$(man1dir)/lz4cat.1
++      ln -sf lz4.1 $(DESTDIR)$(man1dir)/unlz4.1
++      echo lz4 installation completed
+ uninstall:
+-      @$(RM) $(DESTDIR)$(bindir)/lz4cat$(EXT)
+-      @$(RM) $(DESTDIR)$(bindir)/unlz4$(EXT)
+-      @$(RM) $(DESTDIR)$(bindir)/lz4$(EXT)
+-      @$(RM) $(DESTDIR)$(bindir)/lz4c$(EXT)
+-      @$(RM) $(DESTDIR)$(man1dir)/lz4.1
+-      @$(RM) $(DESTDIR)$(man1dir)/lz4c.1
+-      @$(RM) $(DESTDIR)$(man1dir)/lz4cat.1
+-      @$(RM) $(DESTDIR)$(man1dir)/unlz4.1
+-      @echo lz4 programs successfully uninstalled
++      $(RM) $(DESTDIR)$(bindir)/lz4cat$(EXT)
++      $(RM) $(DESTDIR)$(bindir)/unlz4$(EXT)
++      $(RM) $(DESTDIR)$(bindir)/lz4$(EXT)
++      $(RM) $(DESTDIR)$(bindir)/lz4c$(EXT)
++      $(RM) $(DESTDIR)$(man1dir)/lz4.1
++      $(RM) $(DESTDIR)$(man1dir)/lz4c.1
++      $(RM) $(DESTDIR)$(man1dir)/lz4cat.1
++      $(RM) $(DESTDIR)$(man1dir)/unlz4.1
++      echo lz4 programs successfully uninstalled
+ endif
+diff --git a/tests/Makefile b/tests/Makefile
+index 3de111b..d67fb9c 100644
+--- a/tests/Makefile
++++ b/tests/Makefile
+@@ -110,17 +110,17 @@ datagen : $(PRGDIR)/datagen.c datagencli.c
+       $(CC) $(FLAGS) -I$(PRGDIR) $^ -o $@$(EXT)
+ clean:
+-      @$(MAKE) -C $(LZ4DIR) $@ > $(VOID)
+-      @$(MAKE) -C $(PRGDIR) $@ > $(VOID)
+-      @$(RM) core *.o *.test tmp* \
++      $(MAKE) -C $(LZ4DIR) $@ > $(VOID)
++      $(MAKE) -C $(PRGDIR) $@ > $(VOID)
++      $(RM) core *.o *.test tmp* \
+         fullbench-dll$(EXT) fullbench-lib$(EXT) \
+         fullbench$(EXT) fullbench32$(EXT) \
+         fuzzer$(EXT) fuzzer32$(EXT) \
+         frametest$(EXT) frametest32$(EXT) \
+         fasttest$(EXT) roundTripTest$(EXT) \
+         datagen$(EXT) checkTag$(EXT)
+-      @rm -fR $(TESTDIR)
+-      @echo Cleaning completed
++      rm -fR $(TESTDIR)
++      echo Cleaning completed
+ .PHONY: versionsTest
+ versionsTest:
+@@ -157,7 +157,7 @@ test-install: lz4 lib liblz4.pc
+       lz4_root=.. ./test_install.sh
+ test-lz4-sparse: lz4 datagen
+-      @echo "\n ---- test sparse file support ----"
++      echo "\n ---- test sparse file support ----"
+       ./datagen -g5M  -P100 > tmplsdg5M
+       $(LZ4) -B4D tmplsdg5M | $(LZ4) -dv --sparse > tmplscB4
+       $(DIFF) -s tmplsdg5M tmplscB4
+@@ -173,12 +173,12 @@ test-lz4-sparse: lz4 datagen
+       ./datagen -s1 -g1200007 -P100 | $(LZ4) | $(LZ4) -dv --sparse > tmplsodd   # Odd size file (to generate non-full last block)
+       ./datagen -s1 -g1200007 -P100 | $(DIFF) -s - tmplsodd
+       ls -ls tmplsodd
+-      @$(RM) tmpls*
+-      @echo "\n Compatibility with Console :"
++      $(RM) tmpls*
++      echo "\n Compatibility with Console :"
+       echo "Hello World 1 !" | $(LZ4) | $(LZ4) -d -c
+       echo "Hello World 2 !" | $(LZ4) | $(LZ4) -d | cat
+       echo "Hello World 3 !" | $(LZ4) --no-frame-crc | $(LZ4) -d -c
+-      @echo "\n Compatibility with Append :"
++      echo "\n Compatibility with Append :"
+       ./datagen -P100 -g1M > tmplsdg1M
+       cat tmplsdg1M tmplsdg1M > tmpls2M
+       $(LZ4) -B5 -v tmplsdg1M tmplsc
+@@ -186,44 +186,44 @@ test-lz4-sparse: lz4 datagen
+       $(LZ4) -d -v tmplsc >> tmplsr
+       ls -ls tmp*
+       $(DIFF) tmpls2M tmplsr
+-      @$(RM) tmpls*
++      $(RM) tmpls*
+ test-lz4-contentSize: lz4 datagen
+-      @echo "\n ---- test original size support ----"
++      echo "\n ---- test original size support ----"
+       ./datagen -g15M > tmplc1
+       $(LZ4) -v tmplc1 | $(LZ4) -t
+       $(LZ4) -v --content-size tmplc1 | $(LZ4) -d > tmplc2
+       $(DIFF) -s tmplc1 tmplc2
+-      @$(RM) tmplc*
++      $(RM) tmplc*
+ test-lz4-frame-concatenation: lz4 datagen
+-      @echo "\n ---- test frame concatenation ----"
+-      @echo -n > tmp-lfc-empty
+-      @echo hi > tmp-lfc-nonempty
++      echo "\n ---- test frame concatenation ----"
++      echo -n > tmp-lfc-empty
++      echo hi > tmp-lfc-nonempty
+       cat tmp-lfc-nonempty tmp-lfc-empty tmp-lfc-nonempty > tmp-lfc-src
+-      @$(LZ4) -zq tmp-lfc-empty > tmp-lfc-empty.lz4
+-      @$(LZ4) -zq tmp-lfc-nonempty > tmp-lfc-nonempty.lz4
++      $(LZ4) -zq tmp-lfc-empty > tmp-lfc-empty.lz4
++      $(LZ4) -zq tmp-lfc-nonempty > tmp-lfc-nonempty.lz4
+       cat tmp-lfc-nonempty.lz4 tmp-lfc-empty.lz4 tmp-lfc-nonempty.lz4 > tmp-lfc-concat.lz4
+       $(LZ4) -d tmp-lfc-concat.lz4 > tmp-lfc-result
+       sdiff tmp-lfc-src tmp-lfc-result
+-      @$(RM) tmp-lfc-*
+-      @echo frame concatenation test completed
++      $(RM) tmp-lfc-*
++      echo frame concatenation test completed
+ test-lz4-multiple: lz4 datagen
+-      @echo "\n ---- test multiple files ----"
+-      @./datagen -s1        > tmp-tlm1 2> $(VOID)
+-      @./datagen -s2 -g100K > tmp-tlm2 2> $(VOID)
+-      @./datagen -s3 -g1M   > tmp-tlm3 2> $(VOID)
++      echo "\n ---- test multiple files ----"
++      ./datagen -s1        > tmp-tlm1 2> $(VOID)
++      ./datagen -s2 -g100K > tmp-tlm2 2> $(VOID)
++      ./datagen -s3 -g1M   > tmp-tlm3 2> $(VOID)
+       $(LZ4) -f -m tmp-tlm*
+       ls -ls tmp-tlm*
+-      @$(RM) tmp-tlm1 tmp-tlm2 tmp-tlm3
++      $(RM) tmp-tlm1 tmp-tlm2 tmp-tlm3
+       $(LZ4) -df -m tmp-tlm*.lz4
+       ls -ls tmp-tlm*
+       $(LZ4) -f -m tmp-tlm1 notHere tmp-tlm2; echo $$?
+-      @$(RM) tmp-tlm*
++      $(RM) tmp-tlm*
+ test-lz4-basic: lz4 datagen unlz4 lz4cat
+-      @echo "\n ---- test lz4 basic compression/decompression ----"
++      echo "\n ---- test lz4 basic compression/decompression ----"
+       ./datagen -g0       | $(LZ4) -v     | $(LZ4) -t
+       ./datagen -g16KB    | $(LZ4) -9     | $(LZ4) -t
+       ./datagen -g20KB > tmp-tlb-dg20k
+@@ -236,7 +236,7 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
+       ./datagen -g17M     | $(LZ4) -9v    | $(LZ4) -qt
+       ./datagen -g33M     | $(LZ4) --no-frame-crc | $(LZ4) -t
+       ./datagen -g256MB   | $(LZ4) -vqB4D | $(LZ4) -t
+-      @echo "hello world" > tmp-tlb-hw
++      echo "hello world" > tmp-tlb-hw
+       $(LZ4) --rm -f tmp-tlb-hw tmp-tlb-hw.lz4
+       test ! -f tmp-tlb-hw                      # must fail (--rm)
+       test   -f tmp-tlb-hw.lz4
+@@ -273,12 +273,12 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
+       test "$(shell ./datagen -g20KB | $(LZ4) -c --fast=1 | wc -c)" -eq "$(shell ./datagen -g20KB| $(LZ4) -c --fast| wc -c)" # checks default fast compression is -1
+       ! $(LZ4) -c --fast=0 tmp-tlb-dg20K # lz4 should fail when fast=0
+       ! $(LZ4) -c --fast=-1 tmp-tlb-dg20K # lz4 should fail when fast=-1
+-      @$(RM) tmp-tlb*
++      $(RM) tmp-tlb*
+ test-lz4-dict: lz4 datagen
+-      @echo "\n ---- test lz4 compression/decompression with dictionary ----"
++      echo "\n ---- test lz4 compression/decompression with dictionary ----"
+       ./datagen -g16KB > tmp-dict
+       ./datagen -g32KB > tmp-dict-sample-32k
+       < tmp-dict-sample-32k $(LZ4) -D tmp-dict | $(LZ4) -dD tmp-dict | diff - tmp-dict-sample-32k
+@@ -290,7 +290,7 @@ test-lz4-dict: lz4 datagen
+       < tmp-dict-sample-32k $(LZ4) -D tmp-dict-sample-0 | $(LZ4) -dD tmp-dict-sample-0 | diff - tmp-dict-sample-32k
+       < tmp-dict-sample-0 $(LZ4) -D tmp-dict-sample-0 | $(LZ4) -dD tmp-dict-sample-0 | diff - tmp-dict-sample-0
+-      @echo "\n ---- test lz4 dictionary loading ----"
++      echo "\n ---- test lz4 dictionary loading ----"
+       ./datagen -g128KB > tmp-dict-data-128KB
+       set -e; \
+       for l in 0 1 4 128 32767 32768 32769 65535 65536 65537 98303 98304 98305 131071 131072 131073; do \
+@@ -300,41 +300,41 @@ test-lz4-dict: lz4 datagen
+               < tmp-dict-$$l-tail $(LZ4) -D stdin tmp-dict-data-128KB | $(LZ4) -dD tmp-dict-$$l      | $(DIFF) - tmp-dict-data-128KB; \
+       done
+-      @$(RM) tmp-dict*
++      $(RM) tmp-dict*
+ test-lz4-hugefile: lz4 datagen
+-      @echo "\n ---- test huge files compression/decompression ----"
++      echo "\n ---- test huge files compression/decompression ----"
+       ./datagen -g6GB   | $(LZ4) -vB5D  | $(LZ4) -qt
+       ./datagen -g6GB   | $(LZ4) -v5BD  | $(LZ4) -qt
+       # test large file size [2-4] GB
+-      @./datagen -g3G -P100 | $(LZ4) -vv | $(LZ4) --decompress --force --sparse - tmphf1
+-      @ls -ls tmphf1
+-      @./datagen -g3G -P100 | $(LZ4) --quiet --content-size | $(LZ4) --verbose --decompress --force --sparse - tmphf2
+-      @ls -ls tmphf2
++      ./datagen -g3G -P100 | $(LZ4) -vv | $(LZ4) --decompress --force --sparse - tmphf1
++      ls -ls tmphf1
++      ./datagen -g3G -P100 | $(LZ4) --quiet --content-size | $(LZ4) --verbose --decompress --force --sparse - tmphf2
++      ls -ls tmphf2
+       $(DIFF) -s tmphf1 tmphf2
+-      @$(RM) tmphf*
++      $(RM) tmphf*
+ test-lz4-testmode: lz4 datagen
+-      @echo "\n ---- bench mode ----"
++      echo "\n ---- bench mode ----"
+       $(LZ4) -bi1
+-      @echo "\n ---- test mode ----"
++      echo "\n ---- test mode ----"
+       ! ./datagen | $(LZ4) -t
+       ! ./datagen | $(LZ4) -tf
+-      @echo "\n ---- pass-through mode ----"
++      echo "\n ---- pass-through mode ----"
+       ! ./datagen | $(LZ4) -d  > $(VOID)
+       ./datagen | $(LZ4) -df > $(VOID)
+-      @echo "Hello World !" > tmp-tlt1
++      echo "Hello World !" > tmp-tlt1
+       $(LZ4) -dcf tmp-tlt1
+-      @echo "from underground..." > tmp-tlt2
++      echo "from underground..." > tmp-tlt2
+       $(LZ4) -dcfm tmp-tlt1 tmp-tlt2
+-      @echo "\n ---- non-existing source ----"
++      echo "\n ---- non-existing source ----"
+       ! $(LZ4)     file-does-not-exist
+       ! $(LZ4) -f  file-does-not-exist
+       ! $(LZ4) -fm file1-dne file2-dne
+-      @$(RM) tmp-tlt
++      $(RM) tmp-tlt
+ test-lz4-opt-parser: lz4 datagen
+-      @echo "\n ---- test opt-parser ----"
++      echo "\n ---- test opt-parser ----"
+       ./datagen -g16KB      | $(LZ4) -12      | $(LZ4) -t
+       ./datagen -P10        | $(LZ4) -12B4    | $(LZ4) -t
+       ./datagen -g256K      | $(LZ4) -12B4D   | $(LZ4) -t
+@@ -349,21 +349,21 @@ test-lz4-opt-parser: lz4 datagen
+ test-lz4-essentials : lz4 datagen test-lz4-basic test-lz4-multiple \
+                       test-lz4-frame-concatenation test-lz4-testmode \
+                       test-lz4-contentSize test-lz4-dict
+-      @$(RM) tmp*
++      $(RM) tmp*
+ test-lz4: lz4 datagen test-lz4-essentials test-lz4-opt-parser \
+           test-lz4-sparse test-lz4-hugefile test-lz4-dict
+-      @$(RM) tmp*
++      $(RM) tmp*
+ test-lz4c: lz4c datagen
+-      @echo "\n ---- test lz4c variant ----"
++      echo "\n ---- test lz4c variant ----"
+       ./datagen -g256MB | $(LZ4)c -l -v    | $(LZ4)c   -t
+ test-lz4c32: CFLAGS+=-m32
+ test-lz4c32: test-lz4
+ test-interop-32-64: lz4 lz4c32 datagen
+-      @echo "\n ---- test interoperability 32-bits -vs- 64 bits ----"
++      echo "\n ---- test interoperability 32-bits -vs- 64 bits ----"
+       ./datagen -g16KB  | $(LZ4)c32 -9     | $(LZ4)    -t
+       ./datagen -P10    | $(LZ4)    -9B4   | $(LZ4)c32 -t
+       ./datagen         | $(LZ4)c32        | $(LZ4)    -t
+@@ -373,14 +373,14 @@ test-interop-32-64: lz4 lz4c32 datagen
+       ./datagen -g6GB   | $(LZ4)c32 -vq9BD | $(LZ4)    -qt
+ test-lz4c32-basic: lz4c32 datagen
+-      @echo "\n ---- test lz4c32 32-bits version ----"
++      echo "\n ---- test lz4c32 32-bits version ----"
+       ./datagen -g16KB  | $(LZ4)c32 -9     | $(LZ4)c32 -t
+       ./datagen         | $(LZ4)c32        | $(LZ4)c32 -t
+       ./datagen -g256MB | $(LZ4)c32 -vqB4D | $(LZ4)c32 -qt
+       ./datagen -g6GB   | $(LZ4)c32 -vqB5D | $(LZ4)c32 -qt
+ test-platform:
+-      @echo "\n ---- test lz4 $(QEMU_SYS) platform ----"
++      echo "\n ---- test lz4 $(QEMU_SYS) platform ----"
+       $(QEMU_SYS) ./datagen -g16KB  | $(QEMU_SYS) $(LZ4) -9     | $(QEMU_SYS) $(LZ4) -t
+       $(QEMU_SYS) ./datagen         | $(QEMU_SYS) $(LZ4)        | $(QEMU_SYS) $(LZ4) -t
+       $(QEMU_SYS) ./datagen -g256MB | $(QEMU_SYS) $(LZ4) -vqB4D | $(QEMU_SYS) $(LZ4) -qt
+@@ -407,7 +407,7 @@ test-frametest32: CFLAGS += -m32
+ test-frametest32: test-frametest
+ test-mem: lz4 datagen fuzzer frametest fullbench
+-      @echo "\n ---- valgrind tests : memory analyzer ----"
++      echo "\n ---- valgrind tests : memory analyzer ----"
+       valgrind --leak-check=yes --error-exitcode=1 ./datagen -g50M > $(VOID)
+       ./datagen -g16KB > ftmdg16K
+       valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -9 -BD -f ftmdg16K $(VOID)
diff --git a/patches/0002-Fix-static-link.patch b/patches/0002-Fix-static-link.patch
new file mode 100644 (file)
index 0000000..f5446b2
--- /dev/null
@@ -0,0 +1,66 @@
+From d4a7927ce764832531f234cfa87f4aa2a3dc6588 Mon Sep 17 00:00:00 2001
+From: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+Date: Tue, 15 May 2018 07:49:35 +0900
+Subject: [PATCH] Fix static link
+
+Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+---
+ programs/Makefile | 6 +++---
+ tests/Makefile    | 3 ++-
+ 2 files changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/programs/Makefile b/programs/Makefile
+index 72bdcaa..0be2214 100644
+--- a/programs/Makefile
++++ b/programs/Makefile
+@@ -41,7 +41,7 @@ LIBVER_MINOR := $(shell echo $(LIBVER_MINOR_SCRIPT))
+ LIBVER_PATCH := $(shell echo $(LIBVER_PATCH_SCRIPT))
+ LIBVER   := $(shell echo $(LIBVER_SCRIPT))
+-SRCFILES := $(sort $(wildcard $(LZ4DIR)/*.c) $(wildcard *.c))
++SRCFILES := $(sort $(wildcard $(LZ4DIR)/xxhash.c) $(wildcard *.c))
+ OBJFILES := $(SRCFILES:.c=.o)
+ CPPFLAGS += -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_
+@@ -76,7 +76,7 @@ all32: CFLAGS+=-m32
+ all32: all
+ lz4: $(OBJFILES)
+-      $(CC) $(FLAGS) $^ -o $@$(EXT)
++      $(CC) $(FLAGS) $^ -o $@$(EXT) -L ../lib -llz4
+ lz4-release: DEBUGFLAGS=
+ lz4-release: lz4
+@@ -86,7 +86,7 @@ lz4c: lz4
+ lz4c32: CFLAGS += -m32
+ lz4c32 : $(SRCFILES)
+-      $(CC) $(FLAGS) $^ -o $@$(EXT)
++      $(CC) $(FLAGS) $^ -o $@$(EXT) -L ../lib -llz4
+ lz4.1: lz4.1.md $(LIBVER_SRC)
+       cat $< | $(MD2ROFF) $(MD2ROFF_FLAGS) | sed -n '/^\.\\\".*/!p' > $@
+diff --git a/tests/Makefile b/tests/Makefile
+index d238561..559d0cd 100644
+--- a/tests/Makefile
++++ b/tests/Makefile
+@@ -43,6 +43,7 @@ CFLAGS  += $(DEBUGFLAGS) $(MOREFLAGS)
+ CPPFLAGS+= -I$(LZ4DIR) -I$(PRGDIR) -DXXH_NAMESPACE=LZ4_
+ FLAGS    = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
++export LD_LIBRARY_PATH += $(LZ4DIR)
+ # Define *.exe as extension for Windows systems
+ ifneq (,$(filter Windows%,$(OS)))
+@@ -69,7 +70,7 @@ all32: CFLAGS+=-m32
+ all32: all
+ lz4:
+-      $(MAKE) -C $(PRGDIR) $@ CFLAGS="$(CFLAGS)"
++      # $(MAKE) -C $(PRGDIR) $@ CFLAGS="$(CFLAGS)"
+ lib liblz4.pc:
+       $(MAKE) -C $(LZ4DIR) $@ CFLAGS="$(CFLAGS)"
+-- 
+2.17.0
+
diff --git a/patches/0003-Ignore-test.patch b/patches/0003-Ignore-test.patch
new file mode 100644 (file)
index 0000000..c7ec57d
--- /dev/null
@@ -0,0 +1,30 @@
+From 146f476fad67f3e458f49d7c424ed2ba19e9479b Mon Sep 17 00:00:00 2001
+From: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+Date: Sun, 6 Jan 2019 06:54:28 +0900
+Subject: [PATCH 3/3] Ignore test
+
+Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
+---
+ tests/Makefile | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tests/Makefile b/tests/Makefile
+index 884624f..7da50df 100644
+--- a/tests/Makefile
++++ b/tests/Makefile
+@@ -269,9 +269,9 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
+       $(LZ4) -BX tmp-tlb-hw -c -q | $(LZ4) -tv  # test block checksum
+       # ./datagen -g20KB generates the same file every single time
+       # cannot save output of ./datagen -g20KB as input file to lz4 because the following shell commands are run before ./datagen -g20KB
+-      test "$(shell ./datagen -g20KB | $(LZ4) -c --fast | wc -c)" -lt "$(shell ./datagen -g20KB | $(LZ4) -c --fast=9 | wc -c)" # -1 vs -9
+-      test "$(shell ./datagen -g20KB | $(LZ4) -c -1 | wc -c)" -lt "$(shell ./datagen -g20KB| $(LZ4) -c --fast=1 | wc -c)" # 1 vs -1
+-      test "$(shell ./datagen -g20KB | $(LZ4) -c --fast=1 | wc -c)" -eq "$(shell ./datagen -g20KB| $(LZ4) -c --fast| wc -c)" # checks default fast compression is -1
++      -test "$(shell ./datagen -g20KB | $(LZ4) -c --fast | wc -c)" -lt "$(shell ./datagen -g20KB | $(LZ4) -c --fast=9 | wc -c)" # -1 vs -9
++      -test "$(shell ./datagen -g20KB | $(LZ4) -c -1 | wc -c)" -lt "$(shell ./datagen -g20KB| $(LZ4) -c --fast=1 | wc -c)" # 1 vs -1
++      -test "$(shell ./datagen -g20KB | $(LZ4) -c --fast=1 | wc -c)" -eq "$(shell ./datagen -g20KB| $(LZ4) -c --fast| wc -c)" # checks default fast compression is -1
+       ! $(LZ4) -c --fast=0 tmp-tlb-dg20K # lz4 should fail when fast=0
+       ! $(LZ4) -c --fast=-1 tmp-tlb-dg20K # lz4 should fail when fast=-1
+       $(RM) tmp-tlb*
+-- 
+2.20.1
+
diff --git a/patches/series b/patches/series
new file mode 100644 (file)
index 0000000..5e3a8d5
--- /dev/null
@@ -0,0 +1,3 @@
+0001-Show-build-info.patch
+0002-Fix-static-link.patch
+0003-Ignore-test.patch
diff --git a/rules b/rules
new file mode 100755 (executable)
index 0000000..6fb48ab
--- /dev/null
+++ b/rules
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CPPFLAGS:= $(shell dpkg-buildflags --get CPPFLAGS) -DLZ4F_PUBLISH_STATIC_FUNCTIONS
+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_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+PREFIX:= /usr
+
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
+
+export CFLAGS
+export CPPFLAGS
+export LDFLAGS
+export PREFIX
+
+disable_test=0
+ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+disable_test=1
+endif
+
+%:
+       dh $@
+
+override_dh_auto_build:
+       dh_auto_build -- CC=$(CC)
+
+override_dh_auto_install:
+       dh_auto_install -- CC=$(CC)
+
+override_dh_install:
+       make install DESTDIR=$$(pwd)/debian/tmp LIBDIR=$(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH) CC=$(CC)
+       dh_install
+
+override_dh_auto_test:
+ifeq "$(disable_test)" "0"
+       make test
+endif
diff --git a/source/format b/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/watch b/watch
new file mode 100644 (file)
index 0000000..e531e3d
--- /dev/null
+++ b/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/lz4-$1.tar.gz/,dversionmangle=s/\+dfsg// \
+  https://github.com/lz4/lz4/tags .*/v?(\d\S*)\.tar\.gz