[memtailor] 01/01: Initial attempt at Debian package.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Mar 19 16:28:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository memtailor.

commit 37933ff029b84aff0a9e700631274b82b38eb2b3
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Wed Mar 18 22:14:28 2015 -0500

    Initial attempt at Debian package.
---
 debian/changelog                  |  5 ++++
 debian/compat                     |  1 +
 debian/control                    | 30 +++++++++++++++++++++
 debian/copyright                  | 56 +++++++++++++++++++++++++++++++++++++++
 debian/docs                       |  1 +
 debian/libmemtailor-dev.install   |  4 +++
 debian/libmemtailor0.install      |  1 +
 debian/libmemtailor0.symbols      | 26 ++++++++++++++++++
 debian/patches/find_gtest.patch   | 37 ++++++++++++++++++++++++++
 debian/patches/link_pthread.patch | 15 +++++++++++
 debian/patches/series             |  2 ++
 debian/rules                      | 21 +++++++++++++++
 debian/source/format              |  1 +
 debian/watch                      |  5 ++++
 14 files changed, 205 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8040f62
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+memtailor (1.0~git20130809-1) unstable; urgency=low
+
+  * Initial release (Closes: #780766).
+
+ -- Doug Torrance <dtorrance at monmouthcollege.edu>  Wed, 18 Mar 2015 01:03:13 -0500
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..fa256a3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,30 @@
+Source: memtailor
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Doug Torrance <dtorrance at monmouthcollege.edu>
+Build-Depends: debhelper (>= 9), dh-autoreconf, libgtest-dev
+Standards-Version: 3.9.6
+Section: libs
+Homepage: https://github.com/broune/memtailor
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/memtailor.git
+Vcs-Browser: http://anonscm.debian.org/cgit/debian-science/packages/memtailor.git
+
+Package: libmemtailor-dev
+Section: libdevel
+Architecture: any
+Depends: libmemtailor0 (= ${binary:Version}), ${misc:Depends}
+Description: C++ library of special purpose memory allocators (developer tools)
+ Memtailor is a C++ library of special purpose memory allocators. It currently
+ offers an arena allocator and a memory pool.
+ .
+ This package contains the developer tools.
+
+Package: libmemtailor0
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Description: C++ library of special purpose memory allocators (shared library)
+ Memtailor is a C++ library of special purpose memory allocators. It currently
+ offers an arena allocator and a memory pool.
+ .
+ This package contains the shared library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a858cac
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,56 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: memtailor
+Source: https://github.com/broune/memtailor
+
+Files: *
+Copyright: 2011 Bjarke Hammersholt Roune <bjarke.roune at gmail.com>
+License: BSD-3-clause
+
+Files: src/test/BufferPoolTest.cpp src/test/ArenaTest.cpp
+ src/test/MemoryBlocksTest.cpp
+Copyright: 2011 University of Aarhus
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2015 Doug Torrance <dtorrance at monmouthcollege.edu>
+License: BSD-3-clause
+
+License: BSD-3-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.
+    * Neither the name of the University of Cornell 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 <COPYRIGHT HOLDER> 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 package 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 package 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, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/libmemtailor-dev.install b/debian/libmemtailor-dev.install
new file mode 100644
index 0000000..44f1309
--- /dev/null
+++ b/debian/libmemtailor-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/libmemtailor.a
+usr/lib/*/libmemtailor.so
+usr/lib/*/pkgconfig/memtailor.pc
diff --git a/debian/libmemtailor0.install b/debian/libmemtailor0.install
new file mode 100644
index 0000000..784241a
--- /dev/null
+++ b/debian/libmemtailor0.install
@@ -0,0 +1 @@
+usr/lib/*/libmemtailor.so.*
diff --git a/debian/libmemtailor0.symbols b/debian/libmemtailor0.symbols
new file mode 100644
index 0000000..f3125d3
--- /dev/null
+++ b/debian/libmemtailor0.symbols
@@ -0,0 +1,26 @@
+libmemtailor.so.0 libmemtailor0 #MINVER#
+ _ZN4memt10BufferPool12growCapacityEv at Base 1.0~git20130809
+ _ZN4memt10BufferPool14freeAllBuffersEv at Base 1.0~git20130809
+ _ZN4memt10BufferPool30freeAllBuffersAndBackingMemoryEv at Base 1.0~git20130809
+ _ZN4memt10BufferPoolC1Em at Base 1.0~git20130809
+ _ZN4memt10BufferPoolC2Em at Base 1.0~git20130809
+ _ZN4memt12MemoryBlocks13freeAllBlocksEv at Base 1.0~git20130809
+ _ZN4memt12MemoryBlocks21freeAllPreviousBlocksEv at Base 1.0~git20130809
+ _ZN4memt12MemoryBlocks5Block12freePreviousEv at Base 1.0~git20130809
+ _ZN4memt12MemoryBlocks5Block8newBlockEm at Base 1.0~git20130809
+ _ZN4memt12MemoryBlocks7blockOfEPKv at Base 1.0~git20130809
+ _ZN4memt5Arena12growCapacityEm at Base 1.0~git20130809
+ _ZN4memt5Arena13_scratchArenaE at Base 1.0~git20130809
+ _ZN4memt5Arena13freeAllAllocsEv at Base 1.0~git20130809
+ _ZN4memt5Arena19freeTopFromOldBlockEPv at Base 1.0~git20130809
+ _ZN4memt5Arena27freeAndAllAfterFromOldBlockEPv at Base 1.0~git20130809
+ _ZN4memt5Arena29freeAllAllocsAndBackingMemoryEv at Base 1.0~git20130809
+ _ZN4memt5Arena9fromArenaEPKv at Base 1.0~git20130809
+ _ZN4memt5ArenaC1Ev at Base 1.0~git20130809
+ _ZN4memt5ArenaC2Ev at Base 1.0~git20130809
+ _ZN4memt5ArenaD1Ev at Base 1.0~git20130809
+ _ZN4memt5ArenaD2Ev at Base 1.0~git20130809
+ _ZNK4memt10BufferPool8fromPoolEPKv at Base 1.0~git20130809
+ _ZNK4memt12MemoryBlocks12getMemoryUseEv at Base 1.0~git20130809
+ _ZNK4memt12MemoryBlocks18getMemoryUseToLeftEv at Base 1.0~git20130809
+ libmemtailorIsPresent at Base 1.0~git20130809
diff --git a/debian/patches/find_gtest.patch b/debian/patches/find_gtest.patch
new file mode 100644
index 0000000..eacdc14
--- /dev/null
+++ b/debian/patches/find_gtest.patch
@@ -0,0 +1,37 @@
+Description: Find gtest source files.
+ Upstream defaults to downloading a gtest tarball and using that for build.
+ Instead, we use the libgtest-dev package.  We need to tell the build system
+ how to find these files.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-03-18
+
+--- a/src/test/gtestInclude.cpp
++++ b/src/test/gtestInclude.cpp
+@@ -7,4 +7,4 @@
+ 
+ // the .. goes back from the include/ directory of gtest so we can
+ // enter the src directory.
+-#include <../src/gtest-all.cc>
++#include <src/gtest-all.cc>
+--- a/configure.ac
++++ b/configure.ac
+@@ -57,7 +57,7 @@
+   [AC_MSG_ERROR([invalid value $with_gtest for with_gtest.])]
+ )
+ AS_IF([test "x$with_gtest" == "xyes"],
+-  [GTEST_CFLAGS="-I`cd $GTEST_PATH/gtest/include; echo $PWD` -I`cd $GTEST_PATH/gtest/; echo $PWD`"]);
++  [GTEST_CFLAGS="-I/usr/include/gtest -I`cd $GTEST_PATH/gtest/; echo $PWD`"]);
+ AM_CONDITIONAL(with_gtest, test "x$with_gtest" == "xyes")
+ 
+ DEPS_CFLAGS="$GTEST_CFLAGS"
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -3,7 +3,7 @@
+ ACLOCAL_AMFLAGS = -I build/autotools/m4
+ 
+ # Options passed to the C PreProcessor (CPP), NOT the C Plus Plus compiler.
+-AM_CPPFLAGS = -I${top_srcdir}/
++AM_CPPFLAGS = -I${top_srcdir}/  $(DEPS_CFLAGS)
+ 
+ # tell Libtool what the name of the library is.
+ lib_LTLIBRARIES = libmemtailor.la
diff --git a/debian/patches/link_pthread.patch b/debian/patches/link_pthread.patch
new file mode 100644
index 0000000..69e4928
--- /dev/null
+++ b/debian/patches/link_pthread.patch
@@ -0,0 +1,15 @@
+Description: Link against pthread.
+ Avoid FTBFS due to several "undefined reference to `pthread_*' errors.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-0318
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -47,6 +47,7 @@
+ unittest_SOURCES=src/test/ArenaTest.cpp src/test/BufferPoolTest.cpp	\
+   src/test/MemoryBlocksTest.cpp src/test/testMain.cpp				\
+   src/test/gtestInclude.cpp
++unittest_LDADD = -lpthread
+ 
+ else
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..834899f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+find_gtest.patch
+link_pthread.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a6ae1fb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+%:
+	dh $@ --with autoreconf
+
+override_dh_auto_configure:
+	dh_auto_configure -- GTEST_PATH=/usr/src
+
+get-orig-source:
+	wget https://github.com/broune/memtailor/archive/master.tar.gz
+	git checkout upstream
+	git pull https://github.com/broune/memtailor
+	grep -Po '(?<=AC_INIT\(\[memtailor\], \[).*(?=\]\))' configure.ac \
+		> version
+	git show HEAD^:configure.ac | \
+		grep -Po '(?<=AC_INIT\(\[memtailor\], \[).*(?=\]\))' > oldversion
+	if test `cat oldversion` = `cat version` ; then \
+		echo "`cat version`~git`date -d @\`git log -1 --pretty=format:%ct\` +%Y%m%d`" > version; \
+	fi
+	git checkout master
+	mv -v master.tar.gz ../memtailor_`cat version`.orig.tar.gz
+	rm version oldversion
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)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..7465dd4
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+# Upstream does not currently tag their releases.  However, if they do in the
+# future, something similar to the following should work.
+# version=3
+# https://github.com/broune/memtailor/tags \
+# /broune/memtailor/archive/memtailor-(.+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/memtailor.git



More information about the debian-science-commits mailing list