From 171a40907fe8d3469fc88845b6c8199c159da37b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 11 Jan 2021 12:57:57 +0000 Subject: [PATCH 1/1] Import xxhash_0.8.0-2.debian.tar.xz [dgit import tarball xxhash 0.8.0-2 xxhash_0.8.0-2.debian.tar.xz] --- changelog | 97 +++++++++++++++++++ control | 44 +++++++++ copyright | 58 +++++++++++ libxxhash-dev.install | 5 + libxxhash0.install | 2 + libxxhash0.symbols | 53 ++++++++++ patches/reproducible-build.patch | 21 ++++ patches/series | 2 + ...dbf5fefc37b8a-fix-empty-version-in-pc-file | 15 +++ rules | 19 ++++ source/format | 1 + upstream/metadata | 4 + watch | 3 + xxhash.install | 8 ++ 14 files changed, 332 insertions(+) create mode 100644 changelog create mode 100644 control create mode 100644 copyright create mode 100644 libxxhash-dev.install create mode 100644 libxxhash0.install create mode 100644 libxxhash0.symbols create mode 100644 patches/reproducible-build.patch create mode 100644 patches/series create mode 100644 patches/upstream-b4dbf5fefc37b8a-fix-empty-version-in-pc-file create mode 100755 rules create mode 100644 source/format create mode 100644 upstream/metadata create mode 100644 watch create mode 100644 xxhash.install diff --git a/changelog b/changelog new file mode 100644 index 0000000..f307d6d --- /dev/null +++ b/changelog @@ -0,0 +1,97 @@ +xxhash (0.8.0-2) unstable; urgency=medium + + * Use hardware-accelerated XXH3 computation on x86 architecture, and + install the hardware-accelerating header file. + Thanks to Julian Andres Klode. (Closes: #977345) + * Cherry-pick upstream: Fix empty version in .pc file (Closes: #979758) + + -- Norbert Preining Mon, 11 Jan 2021 21:57:57 +0900 + +xxhash (0.8.0-1) unstable; urgency=medium + + * New upstream version 0.8.0 + * update patch + * bump standards version, no changes necessary + + -- Norbert Preining Mon, 10 Aug 2020 01:02:50 +0900 + +xxhash (0.7.4-1) unstable; urgency=medium + + [ Debian Janitor ] + * Set upstream metadata fields: Bug-Submit. + + [ Norbert Preining ] + * New upstream version 0.7.4 + * Update symbols file + + -- Norbert Preining Tue, 30 Jun 2020 17:10:59 +0900 + +xxhash (0.7.3-2) unstable; urgency=medium + + [ Chris Lamb ] + * Make the build reproducible (Closes: #956583) + + -- Norbert Preining Mon, 13 Apr 2020 19:00:33 +0900 + +xxhash (0.7.3-1) unstable; urgency=medium + + [ Debian Janitor ] + * Trim trailing whitespace. + * Bump debhelper from old 11 to 12. + * Set debhelper-compat version in Build-Depends. + * Set upstream metadata fields: Bug-Database, Repository, Repository- + Browse. + + [ Norbert Preining ] + * New upstream version 0.7.3 + * Install new files (pkg-config, header, new tool xxh128sum plus man) + + -- Norbert Preining Fri, 13 Mar 2020 03:32:28 +0900 + +xxhash (0.7.2-1) unstable; urgency=medium + + * New upstream version 0.7.2 + + -- Norbert Preining Sat, 12 Oct 2019 23:39:04 +0900 + +xxhash (0.7.1-1) unstable; urgency=medium + + * New upstream version 0.7.1 + * Update symbols file + + -- Norbert Preining Tue, 03 Sep 2019 10:36:52 +0900 + +xxhash (0.7.0-2) unstable; urgency=medium + + * Upload to unstable + + -- Norbert Preining Wed, 10 Jul 2019 17:37:07 +0900 + +xxhash (0.7.0-1) experimental; urgency=medium + + * New upstream version 0.7.0 + * Update symbols file + + -- Norbert Preining Tue, 23 Apr 2019 20:09:44 +0900 + +xxhash (0.6.5-3) unstable; urgency=medium + + * update VCS and email + + -- Norbert Preining Sun, 03 Mar 2019 09:19:39 +0900 + +xxhash (0.6.5-2) unstable; urgency=medium + + [ Matthias Klose ] + * Add a symbols file. (Closes: #913873) + + [ Norbert Preining ] + * Bump standards version, no changes necessary + + -- Norbert Preining Sat, 17 Nov 2018 01:17:27 +0900 + +xxhash (0.6.5-1) unstable; urgency=low + + * Initial release (Closes: #908175) + + -- Norbert Preining Fri, 07 Sep 2018 12:10:46 +0900 diff --git a/control b/control new file mode 100644 index 0000000..787279e --- /dev/null +++ b/control @@ -0,0 +1,44 @@ +Source: xxhash +Section: utils +Priority: optional +Maintainer: Norbert Preining +Build-Depends: debhelper-compat (= 12), dpkg-dev (>= 1.16.2) +Standards-Version: 4.5.0 +Homepage: https://cyan4973.github.io/xxHash +Vcs-Git: https://github.com/norbusan/debian-xxhash.git +Vcs-Browser: https://github.com/norbusan/debian-xxhash + +Package: xxhash +Architecture: any +Depends: libxxhash0 (>= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Extremely fast hash algorithm + xxHash is an Extremely fast Hash algorithm, running at RAM speed limits. + It successfully completes the SMHasher test suite which evaluates collision, + dispersion and randomness qualities of hash functions. Code is highly portable, + and hashes are identical on all platforms (little / big endian). + +Package: libxxhash0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Multi-Arch: same +Description: shared library for xxhash + xxHash is an Extremely fast Hash algorithm, running at RAM speed limits. + It successfully completes the SMHasher test suite which evaluates collision, + dispersion and randomness qualities of hash functions. Code is highly portable, + and hashes are identical on all platforms (little / big endian). + . + This package contains the shared library. + +Package: libxxhash-dev +Architecture: any +Section: libdevel +Depends: libxxhash0 (= ${binary:Version}), ${misc:Depends} +Multi-Arch: same +Description: header files and a static library for libxxhash + xxHash is an Extremely fast Hash algorithm, running at RAM speed limits. + It successfully completes the SMHasher test suite which evaluates collision, + dispersion and randomness qualities of hash functions. Code is highly portable, + and hashes are identical on all platforms (little / big endian). + . + This package contains xxHash static library and header files. diff --git a/copyright b/copyright new file mode 100644 index 0000000..aba3822 --- /dev/null +++ b/copyright @@ -0,0 +1,58 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: xxhash +Source: https://github.com/Cyan4973/xxHash +Comment: The library files `xxhash.c` and `xxhash.h` are BSD licensed. + The utility `xxhsum` is GPL licensed. + +Files: * +Copyright: 2012-2014 Yann Collet +License: BSD-2-clause + +Files: xxhsum.c +Copyright: 2012-2014 Yann Collet +License: GPL-2 + +Files: debian/* +Copyright: 2018 Norbert Preining +License: 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. + +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; either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + . + The full text of the GPLv can be found in + /usr/share/common-licenses/GPL-2 + diff --git a/libxxhash-dev.install b/libxxhash-dev.install new file mode 100644 index 0000000..a578b78 --- /dev/null +++ b/libxxhash-dev.install @@ -0,0 +1,5 @@ +usr/lib/*/libxxhash.a +usr/lib/*/libxxhash.so +usr/include/xxh* +usr/lib/*/pkgconfig/libxxhash.pc +doc/xxhash_spec.md usr/share/doc/libxxhash-dev diff --git a/libxxhash0.install b/libxxhash0.install new file mode 100644 index 0000000..c1cd949 --- /dev/null +++ b/libxxhash0.install @@ -0,0 +1,2 @@ +usr/lib/*/libxxhash.so.0.*.* +usr/lib/*/libxxhash.so.0 diff --git a/libxxhash0.symbols b/libxxhash0.symbols new file mode 100644 index 0000000..69ffcd8 --- /dev/null +++ b/libxxhash0.symbols @@ -0,0 +1,53 @@ +libxxhash.so.0 libxxhash0 #MINVER# + XXH128@Base 0.7.0 + XXH128_canonicalFromHash@Base 0.7.1 + XXH128_cmp@Base 0.7.1 + XXH128_hashFromCanonical@Base 0.7.1 + XXH128_isEqual@Base 0.7.1 + XXH32@Base 0.6.5 + XXH32_canonicalFromHash@Base 0.6.5 + XXH32_copyState@Base 0.6.5 + XXH32_createState@Base 0.6.5 + XXH32_digest@Base 0.6.5 + XXH32_freeState@Base 0.6.5 + XXH32_hashFromCanonical@Base 0.6.5 + XXH32_reset@Base 0.6.5 + XXH32_update@Base 0.6.5 + XXH3_128bits@Base 0.7.0 + XXH3_128bits_digest@Base 0.7.1 + (arch=any-i386 any-amd64)XXH3_128bits_dispatch@Base 0.8.0-2~ + XXH3_128bits_reset@Base 0.7.1 + XXH3_128bits_reset_withSecret@Base 0.7.1 + XXH3_128bits_reset_withSeed@Base 0.7.1 + XXH3_128bits_update@Base 0.7.1 + (arch=any-i386 any-amd64)XXH3_128bits_update_dispatch@Base 0.8.0-2~ + XXH3_128bits_withSecret@Base 0.7.1 + (arch=any-i386 any-amd64)XXH3_128bits_withSecret_dispatch@Base 0.8.0-2~ + XXH3_128bits_withSeed@Base 0.7.0 + (arch=any-i386 any-amd64)XXH3_128bits_withSeed_dispatch@Base 0.8.0-2~ + XXH3_64bits@Base 0.7.0 + XXH3_64bits_digest@Base 0.7.1 + (arch=any-i386 any-amd64)XXH3_64bits_dispatch@Base 0.8.0-2~ + XXH3_64bits_reset@Base 0.7.1 + XXH3_64bits_reset_withSecret@Base 0.7.1 + XXH3_64bits_reset_withSeed@Base 0.7.1 + XXH3_64bits_update@Base 0.7.1 + (arch=any-i386 any-amd64)XXH3_64bits_update_dispatch@Base 0.8.0-2~ + XXH3_64bits_withSecret@Base 0.7.1 + (arch=any-i386 any-amd64)XXH3_64bits_withSecret_dispatch@Base 0.8.0-2~ + XXH3_64bits_withSeed@Base 0.7.0 + (arch=any-i386 any-amd64)XXH3_64bits_withSeed_dispatch@Base 0.8.0-2~ + XXH3_copyState@Base 0.7.1 + XXH3_createState@Base 0.7.1 + XXH3_freeState@Base 0.7.1 + XXH3_generateSecret@Base 0.7.4 + XXH64@Base 0.6.5 + XXH64_canonicalFromHash@Base 0.6.5 + XXH64_copyState@Base 0.6.5 + XXH64_createState@Base 0.6.5 + XXH64_digest@Base 0.6.5 + XXH64_freeState@Base 0.6.5 + XXH64_hashFromCanonical@Base 0.6.5 + XXH64_reset@Base 0.6.5 + XXH64_update@Base 0.6.5 + XXH_versionNumber@Base 0.6.5 diff --git a/patches/reproducible-build.patch b/patches/reproducible-build.patch new file mode 100644 index 0000000..38fa9aa --- /dev/null +++ b/patches/reproducible-build.patch @@ -0,0 +1,21 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2020-04-13 + +--- + libxxhash.pc.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/libxxhash.pc.in ++++ b/libxxhash.pc.in +@@ -2,8 +2,8 @@ + # Copyright (C) 2012-2020, Yann Collet, Facebook + # BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) + +-prefix=@PREFIX@ +-exec_prefix=@EXECPREFIX@ ++prefix=/usr ++exec_prefix=${prefix} + includedir=${prefix}/@INCLUDEDIR@ + libdir=${exec_prefix}/@LIBDIR@ + diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..6a43f11 --- /dev/null +++ b/patches/series @@ -0,0 +1,2 @@ +reproducible-build.patch +upstream-b4dbf5fefc37b8a-fix-empty-version-in-pc-file diff --git a/patches/upstream-b4dbf5fefc37b8a-fix-empty-version-in-pc-file b/patches/upstream-b4dbf5fefc37b8a-fix-empty-version-in-pc-file new file mode 100644 index 0000000..d100bc2 --- /dev/null +++ b/patches/upstream-b4dbf5fefc37b8a-fix-empty-version-in-pc-file @@ -0,0 +1,15 @@ +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/Makefile ++++ b/Makefile +@@ -437,7 +437,7 @@ libxxhash.pc: libxxhash.pc.in + -e 's|@EXECPREFIX@|$(PCEXECDIR)|' \ + -e 's|@LIBDIR@|$(PCLIBDIR)|' \ + -e 's|@INCLUDEDIR@|$(PCINCDIR)|' \ +- -e 's|@VERSION@|$(VERSION)|' \ ++ -e 's|@VERSION@|$(LIBVER)|' \ + $< > $@ + + diff --git a/rules b/rules new file mode 100755 index 0000000..27b0819 --- /dev/null +++ b/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +include /usr/share/dpkg/architecture.mk + +ifneq (,$(filter $(DEB_HOST_ARCH_CPU),i386 amd64)) + export DISPATCH=1 +endif + +%: + dh $@ + +override_dh_auto_install: + $(MAKE) PREFIX=$(CURDIR)/debian/tmp/usr LIBDIR=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) install + dh_install + +# not to be run, removes compiled files +override_dh_auto_test: diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/upstream/metadata b/upstream/metadata new file mode 100644 index 0000000..61efb01 --- /dev/null +++ b/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/Cyan4973/xxHash/issues +Bug-Submit: https://github.com/Cyan4973/xxHash/issues/new +Repository: https://github.com/Cyan4973/xxHash.git +Repository-Browse: https://github.com/Cyan4973/xxHash diff --git a/watch b/watch new file mode 100644 index 0000000..2d3805a --- /dev/null +++ b/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/xxhash-$1\.tar\.gz/ \ + https://github.com/Cyan4973/xxHash/releases/latest .*/v?(\d\S*)\.tar\.gz diff --git a/xxhash.install b/xxhash.install new file mode 100644 index 0000000..8870eb0 --- /dev/null +++ b/xxhash.install @@ -0,0 +1,8 @@ +usr/bin/xxhsum +usr/bin/xxh32sum +usr/bin/xxh64sum +usr/bin/xxh128sum +usr/share/man/man1/xxhsum.1 +usr/share/man/man1/xxh32sum.1 +usr/share/man/man1/xxh64sum.1 +usr/share/man/man1/xxh128sum.1 -- 2.30.2