--- libwibble-1.1.orig/debian/README.Debian +++ libwibble-1.1/debian/README.Debian @@ -0,0 +1,9 @@ +This package provides only a static library, compiled with -fPIC. + +This is because the library consists mostly of templates, and we are not in a +position of guaranteeing ABI stability over upgrades. + +The library code may, however, be used in code with bindings to various +scripting languages, as is the case with libept or libbuffy. Since most +scripting languages (like Perl or Python) need bindings in form of .so +libraries, we need to compile wibble with -fPIC. --- libwibble-1.1.orig/debian/changelog +++ libwibble-1.1/debian/changelog @@ -0,0 +1,312 @@ +libwibble (1.1-1build1) wily; urgency=medium + + * Build using GCC 5. + + -- Matthias Klose Fri, 10 Jul 2015 17:14:47 +0200 + +libwibble (1.1-1) unstable; urgency=low + + * New upstream version + - Reimplemented Directory so it can be iterated twice + - Added new sys::fs functions + + -- Enrico Zini Wed, 23 Oct 2013 11:55:11 +0200 + +libwibble (1.0-1) unstable; urgency=low + + * New upstream version + - fixed mkdirIfMissing for freebsd + - use proper (insane) struct direct allocation to make it portable + - skip file locking in file logger for hurd, which doesn't support + F_SETLK + - bumped release to 1.0 + + -- Enrico Zini Mon, 21 Oct 2013 17:12:39 +0200 + +libwibble (0.2.3-1) unstable; urgency=low + + * New upstream version + - reverted an accidental API-incompatible change in sys::fs::stat + - use flock instead of flock64, which is missing on hurd and should do + the right thing + + -- Enrico Zini Sun, 20 Oct 2013 23:36:36 +0200 + +libwibble (0.2.2-1) unstable; urgency=low + + * New upstream version + - fixed uninitialized Option::hidden, which caused options to randomly + disappear from command line help + - sys/thread.h: #include so that sleep and usleep are defined + - added new test infrastructure, with backtraces, exception catching and + the possibility of setting context information, for example the + iteration number for tests run in a loop + - parse.h: added a framework for writing backtracking recursive-descent + parsers + - sys/pipe.h: added PipeThrough to run data through a filter child + process + - [c++11-only]: added RAII helpers + - [c++11-only]: added StrongEnumFlags + - [c++11-only]: added a new MMap interface + * Ported to debhelper 7 + + -- Enrico Zini Sun, 20 Oct 2013 20:09:50 +0200 + +libwibble (0.2.0-1) unstable; urgency=low + + * New upstream version + - API has changed! + - API is now independent of _FILE_OFFSET_BITS on 32bit systems + - Removed deprecated functions sys::fs::isDirectory and printf-style + str::fmt + - sys::fs::Directory has been mostly rewritten with a cleaner interface + + -- Enrico Zini Thu, 11 Aug 2011 16:39:14 +0200 + +libwibble (0.1.28-1) unstable; urgency=low + + * New upstream version + - Added a missing include. Thanks Ilya Barygin for the patch. + Closes: #625046 + * Changed maintainer to myself, list has been closed + * Updated standards-version, no changes required + + -- Enrico Zini Wed, 20 Jul 2011 12:59:57 +0200 + +libwibble (0.1.27-1) unstable; urgency=low + + * New upstream version + - Various fixes and several functions added, especially a TCP + server, MIME parsing code and an HTTP server implementation + + -- Enrico Zini Sun, 13 Feb 2011 18:27:27 +0000 + +libwibble (0.1.26-1) unstable; urgency=low + + * Make process::getcwd() work on freebsd. Thanks to Pino Toscano. + + -- Enrico Zini Tue, 11 May 2010 13:41:43 +0100 + +libwibble (0.1.25-1) unstable; urgency=low + + * New upstream version + - Disallow copy of Mutex and Condition objects + + -- Enrico Zini Sun, 28 Feb 2010 13:00:44 +0000 + +libwibble (0.1.24-1) unstable; urgency=low + + * Disabled tests that fail on HPPA until mornfall will manage to + investigate. Closes: #561187. + + -- Enrico Zini Tue, 15 Dec 2009 17:36:34 +0000 + +libwibble (0.1.23-1) unstable; urgency=low + + * New upstream version + + Add wibble::sys + + Improvement in Mutex + + Lockfile support + + Added missing include. Closes: #504896 + + Added today and now to grcal + + Deprecate str::fmt(format, args...) in favour of str::fmtf + * Switch to non-native packaging + * Updated standards-version + * Updated Vcs-Darcs location + * Added Homepage field + + -- Enrico Zini Mon, 14 Dec 2009 13:24:26 +0000 + +libwibble (0.1.22) unstable; urgency=low + + * Avoid double free corruption in cases where wibble is linked into both + executable and a shared library it uses (doubly called static + destructor), + * add sys::ChildProcess::waitForSuccess(), + * fix some compiler warnings. + + -- Petr Rockai Sun, 17 Aug 2008 12:15:51 +0200 + +libwibble (0.1.21) experimental; urgency=low + + * Make list::map work on non-default-constructible functors, + * add list::output( list, output_iterator ), + * change the exception formatting to span multiple lines (more readable + with bigger contexts), + * implement str::fmt for vectors. + + -- Petr Rockai Tue, 05 Aug 2008 19:43:04 +0200 + +libwibble (0.1.20) experimental; urgency=low + + * Add std::string str::fmt(std::string, ...) - asprintf style, + * provide sys::ChildProcess::running() predicate, + * fix a bunch of compiler warnings. + + -- Petr Rockai Thu, 31 Jul 2008 13:45:52 +0200 + +libwibble (0.1.19) unstable; urgency=low + + * Add missing constructors for some core::list classes, + * fix some compiler warnings. + + -- Petr Rockai Tue, 17 Jun 2008 23:05:58 +0200 + +libwibble (0.1.18) unstable; urgency=low + + * Added versioned dependency on CDBS. Closes: #486590. + + -- Enrico Zini Tue, 17 Jun 2008 12:37:08 +0100 + +libwibble (0.1.17) unstable; urgency=low + + [ Enrico Zini ] + * Fixes for OS X, + * simplistic mmap support, + * PosixBuf, + * allow to use Splitter with STL algorithms, + * bugfixes. + + [ Petr Rockai ] + * Get back setValue for options in commandline parser, + * added TPair to wibble/sfinae.h, + * include a generic list utility library, + * implement simple formatting (str::fmt) of sets and lists, + * a new assert implementation, + * fix a bug in build system that caused FTBFS with cmake 2.6 + (closes: #482246). + + -- Petr Rockai Mon, 26 May 2008 23:24:47 +0200 + +libwibble (0.1.16) unstable; urgency=low + + * Added missing commandline::ExistingFile::toString + + -- Enrico Zini Fri, 28 Mar 2008 10:16:57 +0800 + +libwibble (0.1.15) unstable; urgency=low + + * Yaml parsing + * Base64 codec + * Path manipulations including abspath + * Compiles with -Wall -Werror + * Implemented repeatable options that accumulate values in a vector + + -- Enrico Zini Mon, 10 Mar 2008 23:03:19 +0100 + +libwibble (0.1.14) unstable; urgency=low + + * Fixed a C++ error that mysteriously only shows up on ARM. + * Fixed XS-Vcs-Darcs field + + -- Enrico Zini Thu, 07 Feb 2008 10:19:29 +0000 + +libwibble (0.1.13) unstable; urgency=low + + * Builds with GCC 4.3. Closes: #455630 + * Build and install Doxygen documentation. + + -- Enrico Zini Wed, 30 Jan 2008 20:58:09 +0100 + +libwibble (0.1.12) unstable; urgency=low + + [ Enrico Zini ] + * Split the repository in embeddable and standalone + * Allow commandline-using programs to output a manpage just with --manpage + and without needing --manpage=/dev/null + * Added X-Vcs-Darcs: header + * Added missing include. Closes: #455630. + + [ Petr Rockai ] + * Add a new header, wibble/sfinae.h to ease execution of SFINAE + pattern: substitution failure is not an error (consult google), + * change internals of Amorph to not require boost, consequently: + * remove boost build dependency. + * Completely new testing framework is now part of wibble. + + -- Petr Rockai Wed, 23 Jan 2008 00:12:19 +0100 + +libwibble (0.1.11) unstable; urgency=low + + * Added wibble::Splitter, to split strings using regexps + * Added wibble::str::* collection of little useful string operations + * Added missing include. Closes: #441562. + + -- Enrico Zini Mon, 17 Sep 2007 16:37:10 +0200 + +libwibble (0.1.10) unstable; urgency=low + + * Added missing includes, applying tbm's patch. Closes: #417368. + * Added a way to see if an option was set or not. + * Added wibble/text/wordwrap + + -- Enrico Zini Thu, 24 May 2007 11:11:48 +0200 + +libwibble (0.1.9) unstable; urgency=low + + * Added sys/fs.h functions mkpath, mkFilePath, mkdirIfMissing + + -- Enrico Zini Sun, 29 Oct 2006 17:34:27 +0100 + +libwibble (0.1.8) unstable; urgency=low + + * build-depend on libboost-dev + + -- Enrico Zini Wed, 4 Oct 2006 10:01:10 +0200 + +libwibble (0.1.7) unstable; urgency=low + + * empty and singleton iterators now work with STL algorithms + + -- Enrico Zini Sat, 30 Sep 2006 16:27:05 +0200 + +libwibble (0.1.6) unstable; urgency=low + + * Fixed various bugs in wibble::commandline manpage generation + * Return size_t instead of unsigned int for empty and singleton containers, + like the other STL classes do. + + -- Enrico Zini Fri, 29 Sep 2006 22:47:42 +0200 + +libwibble (0.1.5) unstable; urgency=low + + * Fixed the stock commandline parsers to actually honor --help and --version + switches + + -- Enrico Zini Sun, 24 Sep 2006 00:19:00 +0100 + +libwibble (0.1.4) unstable; urgency=low + + * Use more efficient algorithm in wibble::operators + * Some fixes in Mutex.h after guessnet started to use it + + -- Enrico Zini Sat, 23 Sep 2006 17:44:56 +0100 + +libwibble (0.1.3) unstable; urgency=low + + * Allow library users to decide if they want libgc support or not + by providing two different pkg-config files and aclocal macros + + -- Enrico Zini Fri, 25 Aug 2006 12:42:49 +0100 + +libwibble (0.1.2) unstable; urgency=low + + * Applied patch by Andreas Jochens. Closes: #384432. + + -- Enrico Zini Thu, 24 Aug 2006 22:42:16 +0100 + +libwibble (0.1.1) unstable; urgency=low + + * Split tests from the rest of the .cpp code, so that they don't end up + included in the library + * Add linker flags for libgc to pkg-config file if support for gc is enabled + + -- Enrico Zini Wed, 23 Aug 2006 23:51:22 +0100 + +libwibble (0.1) unstable; urgency=low + + * Initial Release. This library is to become a dependency for tagcoll, + apt-front, debtags, buffy, adept and possibly more. + + -- Enrico Zini Wed, 16 Aug 2006 16:53:51 +0100 + --- libwibble-1.1.orig/debian/check_versions +++ libwibble-1.1/debian/check_versions @@ -0,0 +1,24 @@ +#!/bin/sh + +DEB_VERSION=$(head -1 debian/changelog | sed -re 's/[^(]+\(([^)]+)\).+/\1/') +DEB_UPSTREAM_VERSION=$(echo $DEB_VERSION | sed -r 's/-.+//') +AUTOTOOLS_VERSION=$(grep ^AC_INIT configure.ac | sed -r 's/[^[]+\[([^]]+)\].+/\1/') +CMAKE_VERSION=$(grep '^set( *VERSION' CMakeLists.txt |sed -r 's/.+"([^"]+)".+/\1/') + +if [ $CMAKE_VERSION != $AUTOTOOLS_VERSION ] +then + echo "Version mismatch between CMakeLists.txt ($CMAKE_VERSION) and configure.ac ($AUTOTOOLS_VERSION)" + exit 1 +fi + +if [ $DEB_UPSTREAM_VERSION != $AUTOTOOLS_VERSION ] +then + echo "Version mismatch between debian/changelog ($DEB_UPSTREAM_VERSION) and configure.ac ($AUTOTOOLS_VERSION)" >&2 + exit 1 +fi + +#echo $DEB_VERSION +#echo $CMAKE_VERSION +#echo $AUTOTOOLS_VERSION + +exit 0 --- libwibble-1.1.orig/debian/cmake.mk +++ libwibble-1.1/debian/cmake.mk @@ -0,0 +1,72 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2003 Christopher L Cheney +# Description: A class for KDE packages; sets KDE environment variables, etc +# +# 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, 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., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_class_cmake +_cdbs_class_cmake := 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +ifdef _cdbs_tarball_dir +DEB_BUILDDIR = $(_cdbs_tarball_dir)/obj-$(DEB_BUILD_GNU_TYPE) +else +DEB_BUILDDIR = obj-$(DEB_BUILD_GNU_TYPE) +endif + +DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR) +DEB_CMAKE_PREFIX =/usr + +# Overriden from makefile-vars.mk. We pass CFLAGS and friends to ./configure, so +# no need to pass them to make. +DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) -C $(DEB_BUILDDIR) + +include $(_cdbs_class_path)/makefile.mk$(_cdbs_makefile_suffix) + +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +# well, -O0 +endif + +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +# semi-debug +else +# final +endif + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +# debug +endif + +#DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el + +common-configure-arch common-configure-indep:: common-configure-impl +common-configure-impl:: $(DEB_BUILDDIR)/CMakeCache.txt +$(DEB_BUILDDIR)/CMakeCache.txt: + cd $(DEB_BUILDDIR) && cmake $(CURDIR)/$(DEB_SRCDIR) -DCMAKE_INSTALL_PREFIX="$(DEB_CMAKE_PREFIX)" $(DEB_CMAKE_EXTRA_FLAGS) -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_VERBOSE_MAKEFILE=ON + mkdir -p $(DEB_DESTDIR) + +cleanbuilddir:: + -if test "$(DEB_BUILDDIR)" != "$(DEB_SRCDIR)"; then rm -rf $(DEB_BUILDDIR); fi + +endif --- libwibble-1.1.orig/debian/compat +++ libwibble-1.1/debian/compat @@ -0,0 +1 @@ +9 --- libwibble-1.1.orig/debian/control +++ libwibble-1.1/debian/control @@ -0,0 +1,36 @@ +Source: libwibble +Section: libdevel +Priority: optional +Maintainer: Enrico Zini +Uploaders: Petr Rockai +Build-Depends: debhelper (>= 9), dh-buildinfo, doxygen, cmake +Standards-Version: 3.9.4.0 +Vcs-Darcs: http://patch-tag.com/r/wibble-standalone/ +Homepage: http://web.mornfall.net/libwibble.html + +Package: libwibble-dev +Architecture: any +Depends: ${misc:Depends} +Recommends: pkg-config +Description: Library of various useful C++ code + libwibble collects the foundation code that has been used over time + in various C++ projects by Peter Rockai and Enrico Zini, so that it can + be maintained properly and in a single place. + . + The code has minimal dependencies, a test suite, and can be used either as an + external library or embedded in projects based on either cmake or autotools. + . + The library contains: + * an exception hierarchy; + * various useful mixin classes; + * shortcuts for set operations; + * a featureful self-documenting commandline parser that also supports + cvs/svn-style subcommands; + * two different unit-testing system, a tut-based and a custom one; + * a non-intrusive polymorphic envelope; + * a logging system; + * string functions, like splitting, path manipulation, regular + expressions and word wrapping; + * system functions, like directory iteration, file manipulation, process + control, thread functions; + * gregorian calendar operations. --- libwibble-1.1.orig/debian/copyright +++ libwibble-1.1/debian/copyright @@ -0,0 +1,37 @@ +This package was debianized by Enrico Zini on +Sun Apr 30 22:17:29 CEST 2006. + +Upstream Author: Peter Rockai, Enrico Zini + +Copyright (C) 2004-2009 Peter Rockai, Enrico Zini + +License: + +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 [original copyright holder] 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. --- libwibble-1.1.orig/debian/libwibble.dirs +++ libwibble-1.1/debian/libwibble.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- libwibble-1.1.orig/debian/libwibble.install +++ libwibble-1.1/debian/libwibble.install @@ -0,0 +1,8 @@ +debian/tmp/usr/include/* +debian/tmp/usr/lib/*/lib*.a +debian/tmp/usr/lib/*/pkgconfig/* +debian/tmp/usr/share/aclocal/*.m4 +debian/tmp/usr/bin/wibble-test-genrunner +debian/tmp/usr/share/wibble/test.cmake +debian/tmp/usr/share/man/man1 +debian/tmp/usr/share/doc/libwibble-dev/html --- libwibble-1.1.orig/debian/rules +++ libwibble-1.1/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +BUILDDIR = $(CURDIR)/debian/build + +%: + dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) + +override_dh_fixperms: + dh_fixperms + test -e /usr/bin/dh_buildinfo && dh_buildinfo + +override_dh_auto_build: + dh_auto_build + make -C $(BUILDDIR) unit + make -C $(BUILDDIR) doc + +override_dh_auto_install: + dh_auto_install + dh_installdocs -plibwibble-dev -n $(BUILDDIR)/doc/html + +tarball: + if darcs wh -l; then (echo "There are uncommitted changes or spurious files"; /bin/false); fi + sh debian/check_versions + VER=`grep '^set( *VERSION' CMakeLists.txt |sed -r 's/.+"([^"]+)".+/\1/'` && tar --transform "s/^./libwibble-$$VER/" --exclude=_darcs --exclude=debian -zcf ../libwibble-$$VER.tar.gz . && ln -f ../libwibble-$$VER.tar.gz ../libwibble_$$VER.orig.tar.gz + +debsrc: tarball + debuild -us -uc -S -i_darcs -I_darcs