From f56efaec5e5dcb1282509a4cc23cfd374eb3654a Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Sun, 25 May 2014 13:54:49 +0000 Subject: [PATCH] Added initial debian folder. --- debian/changelog | 5 ++ debian/compat | 1 + debian/control | 45 ++++++++++++ debian/copyright | 44 +++++++++++ debian/gbp.conf | 8 ++ debian/libgf-complete-dev.install | 4 + debian/libgf-complete1.install | 1 + debian/libgf-complete1.symbols | 85 ++++++++++++++++++++++ debian/patches/do-not-use-sse-ac-ext.patch | 20 +++++ debian/patches/series | 1 + debian/rules | 24 ++++++ debian/source/format | 1 + 12 files changed, 239 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/libgf-complete-dev.install create mode 100644 debian/libgf-complete1.install create mode 100644 debian/libgf-complete1.symbols create mode 100644 debian/patches/do-not-use-sse-ac-ext.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e73757a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +gf-complete (1.02~0+2014.05.git259d53ea590b-1) unstable; urgency=low + + * Initial release (Closes: #750713). + + -- Thomas Goirand Sun, 25 May 2014 16:35:49 +0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..63292b7 --- /dev/null +++ b/debian/control @@ -0,0 +1,45 @@ +Source: gf-complete +Section: libs +Priority: extra +Maintainer: Thomas Goirand +Build-Depends: autotools-dev, debhelper (>= 9), dh-autoreconf, autoconf-archive +Standards-Version: 3.9.5 +Homepage: https://bitbucket.org/jimplank/gf-complete +Vcs-Git: git://anonscm.debian.org/openstack/gf-complete.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/gf-complete.git;a=summary + +Package: libgf-complete-dev +Section: libdevel +Architecture: any +Depends: libgf-complete1 (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends} +Description: Galois Field Arithmetic - development files + Galois Field arithmetic forms the backbone of erasure-coded storage systems, + most famously the Reed-Solomon erasure code. A Galois Field is defined over + w-bit words and is termed GF(2w). As such, the elements of a Galois Field are + the integers 0, 1, . . ., 2^w − 1. Galois Field arithmetic defines addition + and multiplication over these closed sets of integers in such a way that they + work as you would hope they would work. Specifically, every number has a + unique multiplicative inverse. Moreover, there is a value, typically the value + 2, which has the property that you can enumerate all of the non-zero elements + of the field by taking that value to successively higher powers. + . + This package contains the development files needed to build against the shared + library. + +Package: libgf-complete1 +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Galois Field Arithmetic - shared library + Galois Field arithmetic forms the backbone of erasure-coded storage systems, + most famously the Reed-Solomon erasure code. A Galois Field is defined over + w-bit words and is termed GF(2w). As such, the elements of a Galois Field are + the integers 0, 1, . . ., 2^w − 1. Galois Field arithmetic defines addition + and multiplication over these closed sets of integers in such a way that they + work as you would hope they would work. Specifically, every number has a + unique multiplicative inverse. Moreover, there is a value, typically the value + 2, which has the property that you can enumerate all of the non-zero elements + of the field by taking that value to successively higher powers. + . + This package contains the shared library. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e83aa9a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,44 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: gf-complete +Source: https://bitbucket.org/jimplank/gf-complete + +Files: debian/* +Copyright: (c) 2014, Thomas Goirand +License: BSD + +Files: * +Copyright: (c) 2013, James S. Plank + (c) 2013, Ethan L. Miller + (c) 2013, Kevin M. Greenan + (c) 2013, Benjamin A. Arnold + (c) 2013, John A. Burnum + (c) 2013, Adam W. Disney + (c) 2013, Allen C. McBride +License: BSD + +License: BSD + 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 the University of Tennessee 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 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/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..a80d315 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,8 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/unstable +upstream-tag = v%(version)s +compression = xz + +[git-buildpackage] +export-dir = ../build-area/ diff --git a/debian/libgf-complete-dev.install b/debian/libgf-complete-dev.install new file mode 100644 index 0000000..72ea263 --- /dev/null +++ b/debian/libgf-complete-dev.install @@ -0,0 +1,4 @@ +#usr/lib/pkgconfig/* +#usr/share/pkgconfig/* +usr/include/* +usr/lib/*/lib*.so diff --git a/debian/libgf-complete1.install b/debian/libgf-complete1.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/debian/libgf-complete1.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/debian/libgf-complete1.symbols b/debian/libgf-complete1.symbols new file mode 100644 index 0000000..4fc066b --- /dev/null +++ b/debian/libgf-complete1.symbols @@ -0,0 +1,85 @@ +libgf_complete.so.1 libgf-complete1 #MINVER# + MOA_Fill_Random_Region@Base 1.02~0+2014.05.git259d53ea590b + MOA_Random_128@Base 1.02~0+2014.05.git259d53ea590b + MOA_Random_32@Base 1.02~0+2014.05.git259d53ea590b + MOA_Random_64@Base 1.02~0+2014.05.git259d53ea590b + MOA_Random_W@Base 1.02~0+2014.05.git259d53ea590b + MOA_Seed@Base 1.02~0+2014.05.git259d53ea590b + _gf_errno@Base 1.02~0+2014.05.git259d53ea590b + bits@Base 1.02~0+2014.05.git259d53ea590b + bits_56@Base 1.02~0+2014.05.git259d53ea590b + create_gf_from_argv@Base 1.02~0+2014.05.git259d53ea590b + gf_alignment_error@Base 1.02~0+2014.05.git259d53ea590b + gf_bitmatrix_inverse@Base 1.02~0+2014.05.git259d53ea590b + gf_composite_get_default_poly@Base 1.02~0+2014.05.git259d53ea590b + gf_do_final_region_alignment@Base 1.02~0+2014.05.git259d53ea590b + gf_do_initial_region_alignment@Base 1.02~0+2014.05.git259d53ea590b + gf_error@Base 1.02~0+2014.05.git259d53ea590b + gf_error_check@Base 1.02~0+2014.05.git259d53ea590b + gf_free@Base 1.02~0+2014.05.git259d53ea590b + gf_general_add@Base 1.02~0+2014.05.git259d53ea590b + gf_general_are_equal@Base 1.02~0+2014.05.git259d53ea590b + gf_general_divide@Base 1.02~0+2014.05.git259d53ea590b + gf_general_do_region_check@Base 1.02~0+2014.05.git259d53ea590b + gf_general_do_region_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_general_do_single_timing_test@Base 1.02~0+2014.05.git259d53ea590b + gf_general_inverse@Base 1.02~0+2014.05.git259d53ea590b + gf_general_is_one@Base 1.02~0+2014.05.git259d53ea590b + gf_general_is_zero@Base 1.02~0+2014.05.git259d53ea590b + gf_general_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_general_s_to_val@Base 1.02~0+2014.05.git259d53ea590b + gf_general_set_one@Base 1.02~0+2014.05.git259d53ea590b + gf_general_set_random@Base 1.02~0+2014.05.git259d53ea590b + gf_general_set_two@Base 1.02~0+2014.05.git259d53ea590b + gf_general_set_up_single_timing_test@Base 1.02~0+2014.05.git259d53ea590b + gf_general_set_zero@Base 1.02~0+2014.05.git259d53ea590b + gf_general_val_to_s@Base 1.02~0+2014.05.git259d53ea590b + gf_init_easy@Base 1.02~0+2014.05.git259d53ea590b + gf_init_hard@Base 1.02~0+2014.05.git259d53ea590b + gf_multby_one@Base 1.02~0+2014.05.git259d53ea590b + gf_multby_zero@Base 1.02~0+2014.05.git259d53ea590b + gf_scratch_size@Base 1.02~0+2014.05.git259d53ea590b + gf_set_region_data@Base 1.02~0+2014.05.git259d53ea590b + gf_size@Base 1.02~0+2014.05.git259d53ea590b + gf_two_byte_region_table_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_bytwo_b_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_bytwo_b_multiply_region@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_bytwo_p_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_clm_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_divide_from_inverse@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_euclid@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_extract_word@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_group_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_init@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_inverse_from_divide@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_scratch_size@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_shift_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_sse_bytwo_b_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_w128_sse_bytwo_p_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_w16_get_div_alog_table@Base 1.02~0+2014.05.git259d53ea590b + gf_w16_get_log_table@Base 1.02~0+2014.05.git259d53ea590b + gf_w16_get_mult_alog_table@Base 1.02~0+2014.05.git259d53ea590b + gf_w16_init@Base 1.02~0+2014.05.git259d53ea590b + gf_w16_scratch_size@Base 1.02~0+2014.05.git259d53ea590b + gf_w16_split_8_8_multiply@Base 1.02~0+2014.05.git259d53ea590b + gf_w32_init@Base 1.02~0+2014.05.git259d53ea590b + gf_w32_scratch_size@Base 1.02~0+2014.05.git259d53ea590b + gf_w4_get_div_table@Base 1.02~0+2014.05.git259d53ea590b + gf_w4_get_mult_table@Base 1.02~0+2014.05.git259d53ea590b + gf_w4_init@Base 1.02~0+2014.05.git259d53ea590b + gf_w4_scratch_size@Base 1.02~0+2014.05.git259d53ea590b + gf_w64_bytwo_p_sse_multiply_region@Base 1.02~0+2014.05.git259d53ea590b + gf_w64_clm_multiply_region@Base 1.02~0+2014.05.git259d53ea590b + gf_w64_init@Base 1.02~0+2014.05.git259d53ea590b + gf_w64_scratch_size@Base 1.02~0+2014.05.git259d53ea590b + gf_w64_split_16_64_lazy_multiply_region@Base 1.02~0+2014.05.git259d53ea590b + gf_w64_split_4_64_lazy_multiply_region@Base 1.02~0+2014.05.git259d53ea590b + gf_w64_split_8_64_lazy_multiply_region@Base 1.02~0+2014.05.git259d53ea590b + gf_w8_get_div_table@Base 1.02~0+2014.05.git259d53ea590b + gf_w8_get_mult_table@Base 1.02~0+2014.05.git259d53ea590b + gf_w8_init@Base 1.02~0+2014.05.git259d53ea590b + gf_w8_scratch_size@Base 1.02~0+2014.05.git259d53ea590b + gf_wgen_cauchy_region@Base 1.02~0+2014.05.git259d53ea590b + gf_wgen_extract_word@Base 1.02~0+2014.05.git259d53ea590b + gf_wgen_init@Base 1.02~0+2014.05.git259d53ea590b + gf_wgen_scratch_size@Base 1.02~0+2014.05.git259d53ea590b diff --git a/debian/patches/do-not-use-sse-ac-ext.patch b/debian/patches/do-not-use-sse-ac-ext.patch new file mode 100644 index 0000000..d1a090e --- /dev/null +++ b/debian/patches/do-not-use-sse-ac-ext.patch @@ -0,0 +1,20 @@ +Description: Do not use ax-ext macros + This disables the AX_EXT macros from the m4 folder, so that it disables + the SSE extensions (otherwise the lib wont work on all CPU). + . + Thanks to pabs for his help here! +Author: Thomas Goirand +Forwarded: no +Last-Update: 2014-06-06 + +--- gf-complete-1.02~0+2014.05.git259d53ea590b.orig/configure.ac ++++ gf-complete-1.02~0+2014.05.git259d53ea590b/configure.ac +@@ -22,7 +22,7 @@ CFLAGS="-Wall -Wpointer-arith -O3 -g" + dnl Compiling with per-target flags requires AM_PROG_CC_C_O. + AC_PROG_CC + +-AX_EXT() ++#AX_EXT() + + AC_CONFIG_FILES([Makefile src/Makefile tools/Makefile test/Makefile examples/Makefile]) + AC_OUTPUT diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..c85ad29 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +do-not-use-sse-ac-ext.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f5a6216 --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +UPSTREAM_GIT ?= https://bitbucket.org/jimplank/gf-complete.git + +DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') +VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//') +DEBFLAVOR ?= $(shell dpkg-parsechangelog | grep -E ^Distribution: | cut -d" " -f2) +DEBPKGNAME ?= $(shell dpkg-parsechangelog | grep -E ^Source: | cut -d" " -f2) +GIT_TAG ?= $(shell echo '$(VERSION)' | sed -e 's/~/_/') + +%: + dh $@ --with autoreconf + +override_dh_auto_test: + #make check + echo "Not doing anything for now" + +gen-orig-xz: + git tag -v $(GIT_TAG) || true + if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] ; then \ + git archive --prefix=$(DEBPKGNAME)-$(VERSION)/ $(GIT_TAG) | xz >../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ; \ + fi + [ ! -e ../build-area ] && mkdir ../build-area || true + [ ! -e ../build-area/$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] && cp ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ../build-area diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)