--- snappy-1.0.5.orig/snappy-stubs-internal.h +++ snappy-1.0.5/snappy-stubs-internal.h @@ -200,6 +200,8 @@ // This is a mess, but there's not much we can do about it. #elif defined(__arm__) && \ + !defined(__ARM_ARCH_4__) && \ + !defined(__ARM_ARCH_4T__) && \ !defined(__ARM_ARCH_5__) && \ !defined(__ARM_ARCH_5T__) && \ !defined(__ARM_ARCH_5TE__) && \ --- snappy-1.0.5.orig/debian/libsnappy-dev.install +++ snappy-1.0.5/debian/libsnappy-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so --- snappy-1.0.5.orig/debian/control +++ snappy-1.0.5/debian/control @@ -0,0 +1,42 @@ +Source: snappy +Priority: extra +Maintainer: Steinar H. Gunderson +Build-Depends: debhelper (>= 7), autotools-dev, dpkg-dev (>= 1.16.1~) +Standards-Version: 3.9.3 +Section: libs +Homepage: http://code.google.com/p/snappy/ + +Package: libsnappy-dev +Section: libdevel +Architecture: any +Depends: libsnappy1 (= ${binary:Version}), ${misc:Depends} +Description: fast compression/decompression library (development files) + Snappy is a compression/decompression library. It does not aim for + maximum compression, or compatibility with any other compression + library; instead, it aims for very high speeds and reasonable + compression. + . + For instance, compared to the fastest mode of zlib, Snappy + is an order of magnitude faster for most inputs, but the resulting + compressed files are anywhere from 20% to 100% bigger. On a single core + of a Core i7 processor in 64-bit mode, Snappy compresses at about 250 + MB/sec or more and decompresses at about 500 MB/sec or more. + . + This package contains the development files required to build programs + against Snappy. + +Package: libsnappy1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: fast compression/decompression library + Snappy is a compression/decompression library. It does not aim for + maximum compression, or compatibility with any other compression + library; instead, it aims for very high speeds and reasonable + compression. + . + For instance, compared to the fastest mode of zlib, Snappy + is an order of magnitude faster for most inputs, but the resulting + compressed files are anywhere from 20% to 100% bigger. On a single core + of a Core i7 processor in 64-bit mode, Snappy compresses at about 250 + MB/sec or more and decompresses at about 500 MB/sec or more. --- snappy-1.0.5.orig/debian/dirs +++ snappy-1.0.5/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- snappy-1.0.5.orig/debian/libsnappy1.install +++ snappy-1.0.5/debian/libsnappy1.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- snappy-1.0.5.orig/debian/copyright +++ snappy-1.0.5/debian/copyright @@ -0,0 +1,56 @@ +This work was packaged for Debian by: + + Steinar H. Gunderson on Thu, 24 Mar 2011 22:55:17 +0100 + +It was downloaded from: + + http://snappy.googlecode.com/files/snappy-1.0.0.tar.gz + +Upstream Author: + + Google, Inc. + +Copyright: + + Copyright 2005 and onwards Google Inc. + Copyright 2005 Google Inc. All Rights Reserved. + Copyright 2008 Google Inc. All Rights Reserved. + Copyright 2011 Google Inc. All Rights Reserved. + Copyright (c) 2011, Google Inc. + +License: + + Copyright 2011, Google Inc. + All rights reserved. + + 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + +The Debian packaging is: + + Copyright (C) 2011 Steinar H. Gunderson + +and is licensed under the same terms as the rest of Snappy. --- snappy-1.0.5.orig/debian/changelog +++ snappy-1.0.5/debian/changelog @@ -0,0 +1,47 @@ +snappy (1.0.5-2) unstable; urgency=low + + * Disable unaligned accesses on ARMv4, not just ARMv5 and ARMv6. + Fixes unit test segfaults and subsequent FTBFS on armel. + (Closes: #679964) + + -- Steinar H. Gunderson Mon, 02 Jul 2012 19:30:10 +0200 + +snappy (1.0.5-1) unstable; urgency=low + + * New upstream release. + * Use standard build flags from dpkg-buildflags, to get hardening etc. + (also, at some point our previous setup started to give no optimization, + which is not very good). + * Build-Depend on dpkg-dev >= 1.61.1~. + * Add dummy build-indep and build-arch targets (both just depend on build). + * Upgrade to Standards-Version 3.9.3 (no changes needed). + * Minor tweak to debian/copyright to make lintian happy. + + -- Steinar H. Gunderson Thu, 29 Mar 2012 14:12:12 +0000 + +snappy (1.0.4-1) unstable; urgency=low + + * New upstream release. + + -- Steinar H. Gunderson Thu, 15 Sep 2011 21:39:31 +0200 + +snappy (1.0.3-1) unstable; urgency=low + + * New upstream release. + * Updated Standards-Version to 3.9.2. (No changes needed.) + + -- Steinar H. Gunderson Fri, 03 Jun 2011 01:08:08 +0200 + +snappy (1.0.2-1) unstable; urgency=low + + * New upstream release. + * Update debian/copyright with new license (upstream changed from + the Apache2 license to a BSD-style license). + + -- Steinar H. Gunderson Fri, 29 Apr 2011 00:13:12 +0200 + +snappy (1.0.1-1) unstable; urgency=low + + * Initial release. + + -- Steinar H. Gunderson Fri, 25 Mar 2011 01:44:25 +0100 --- snappy-1.0.5.orig/debian/compat +++ snappy-1.0.5/debian/compat @@ -0,0 +1 @@ +7 --- snappy-1.0.5.orig/debian/libsnappy-dev.dirs +++ snappy-1.0.5/debian/libsnappy-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- snappy-1.0.5.orig/debian/docs +++ snappy-1.0.5/debian/docs @@ -0,0 +1,2 @@ +NEWS +README --- snappy-1.0.5.orig/debian/rules +++ snappy-1.0.5/debian/rules @@ -0,0 +1,64 @@ +#! /usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Use standard biuld flags, but with assertions disabled (for performance). +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +CXXFLAGS += -DNDEBUG + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + +build-arch: build +build-indep: build +build: + dh_testdir + dh_prep +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + $(MAKE) + $(MAKE) check + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + dh_clean + +binary: binary-arch +binary-indep: +binary-arch: + dh_testdir + dh_testroot + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + dh_install + dh_installchangelogs ChangeLog + dh_installdocs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +.PHONY: build clean binary binary-indep binary-arch --- snappy-1.0.5.orig/debian/libsnappy1.dirs +++ snappy-1.0.5/debian/libsnappy1.dirs @@ -0,0 +1 @@ +usr/lib