debian/0000755000000000000000000000000012643264235007175 5ustar debian/changelog0000644000000000000000000000570712643264235011060 0ustar socket-wrapper (1.1.5-1) unstable; urgency=low * New upstream release. * Remove reproducible-manpage.diff as applied upstream. * Update patches. -- Laszlo Boszormenyi (GCS) Wed, 06 Jan 2016 20:03:08 +0100 socket-wrapper (1.1.3-2) unstable; urgency=low * Define PATH_MAX on Hurd. * Wait more for test_srv during tests (closes: #787572). * Make watch file more generic. * Update debhelper level to 9 . * Upload to unstable. * New maintainer (closes: #770374). [ Jakub Wilk ] * Add patch (reproducible-manpage.diff) to make the builds reproducible (closes: #782863). Thanks to Jelmer Vernooij for the bug report and the patch. -- Laszlo Boszormenyi (GCS) Thu, 04 Jun 2015 20:02:03 +0000 socket-wrapper (1.1.3-1) experimental; urgency=low * New upstream release: + Add support for address sanitizer. + Fix leaking of memory and fds of stale sockets. -- Jakub Wilk Tue, 24 Feb 2015 22:31:00 +0100 socket-wrapper (1.1.2-1) experimental; urgency=low * New upstream release: + Add support for fnctl(F_DUPFD). + Add support for glibc 2.20.90. * Rebuild the nss_wrapper manpage from source: + Add asciidoc, libxml2-utils, xsltproc, docbook-xml, docbook-xsl to Build-Depends. + Add the manpage to extend-diff-ignore in debian/source/options. + Run a2x in debian/rules. * Bump standards version to 3.9.6 (no changes needed). -- Jakub Wilk Wed, 29 Oct 2014 22:54:38 +0100 socket-wrapper (1.1.1-1) experimental; urgency=low * New upstream release: + Disable incomplete address in use check in bind(). + Add support for IP_PKTINFO in recvmsg(). + Add support for IPV6_PKTINFO in recvmsg(). + Add support for IP_RECVDSTADDR in recvmsg() on BSD. + Add support for more socket options in getsockopt(). + Add support for bindresvport(). + Fix rebinding on connect(). + Fix sockaddr buffer truncation in getsockname() and getpeername(). + Fix special cases in bind(). * Drop libc-so.diff, applied upstream. * Refresh no-soname.diff. * Bump minimum required version of libcmocka-dev to 0.4.1. * Update debian/copyright. * Enable parallel compilation. -- Jakub Wilk Mon, 16 Jun 2014 10:54:45 +0200 socket-wrapper (1.0.2-1) experimental; urgency=low * New upstream release. * Refresh patches. * Add patch (libc-so.diff) to use the LIBC_SO macro to discover libc SONAME. Thanks to Pino Toscano. -- Jakub Wilk Sun, 01 Jun 2014 00:05:00 +0200 socket-wrapper (1.0.1-1) experimental; urgency=low * Initial release (closes: #746240). * libsocket_wrapper is a preloadable library. We do not support directly linking to it, so it doesn't need the SONAME. Add patch (no-soname.diff) to remove it. * Add Lintian override for sharedobject-in-library-directory-missing-soname. -- Jakub Wilk Thu, 01 May 2014 19:05:38 +0200 debian/compat0000644000000000000000000000000212534127401010363 0ustar 9 debian/control0000644000000000000000000000137112534127373010602 0ustar Source: socket-wrapper Homepage: http://cwrap.org/socket_wrapper.html Section: devel Priority: optional Maintainer: Laszlo Boszormenyi (GCS) Build-Depends: debhelper (>= 9), dh-buildinfo, cmake (>= 2.8.8-3~), libcmocka-dev (>= 0.4.1), asciidoc, libxml2-utils, xsltproc, docbook-xml, docbook-xsl XS-Testsuite: autopkgtest Standards-Version: 3.9.6 Package: libsocket-wrapper Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: socket wrapper library socket_wrapper is a preload library that makes possible to run several instances of the full software stack on the same machine and perform locally functional testing of complex network configurations. It passes all socket communication over unix domain sockets. debian/copyright0000644000000000000000000000440312534144024011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: socket_wrapper Source: https://ftp.samba.org/pub/cwrap/ Files: * Copyright: 2005, 2008, Jelmer Vernooij 2006-2009, Stefan Metzmacher 2013, Andreas Schneider License: BSD-3-clauses Files: cmake/Modules/CheckCCompilerFlagSSP.cmake cmake/Modules/MacroEnsureOutOfSourceBuild.cmake Copyright: 2006, Alexander Neundorf 2006, Alexander Neundorf License: BSD-3-clauses Files: cmake/Modules/AddCMockaTest.cmake Copyright: 2007, Daniel Gollub 2007-2010, Andreas Schneider License: BSD-3-clauses Files: debian/* Copyright: 2015, Laszlo Boszormenyi (GCS) , 2014, Jakub Wilk License: BSD-3-clauses License: BSD-3-clauses Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. 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. . 3. Neither the name of the author 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 AUTHOR 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 AUTHOR 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. debian/libsocket-wrapper.lintian-overrides0000644000000000000000000000033212330475025016202 0ustar # libsocket_wrapper is a preloadable library. # We do not support directly linking to it, so it doesn't need the SONAME. libsocket-wrapper: sharedobject-in-library-directory-missing-soname usr/lib/libsocket_wrapper.so debian/patches/0000755000000000000000000000000012643264610010621 5ustar debian/patches/Hurd_PATH_MAX.patch0000644000000000000000000000061412643263363014072 0ustar Description: add conditional PATH_MAX for Hurd Author: Laszlo Boszormenyi (GCS) Last-Update: 2016-01-06 --- --- socket-wrapper-1.1.3.orig/tests/test_ioctl.c +++ socket-wrapper-1.1.3/tests/test_ioctl.c @@ -14,6 +14,10 @@ #include #include +#ifndef PATH_MAX + #define PATH_MAX 4096 +#endif + static int setup(void **state) { char test_tmpdir[256]; debian/patches/no-soname.diff0000644000000000000000000000234612643264575013366 0ustar Description: remove SONAME libsocket_wrapper is a preloadable library. We do not support directly linking to it, so it doesn't need the SONAME. Let's remove it. Author: Jakub Wilk Last-Update: 2016-01-06 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,10 +17,7 @@ set_target_properties( socket_wrapper PROPERTIES - VERSION - ${LIBRARY_VERSION} - SOVERSION - ${LIBRARY_SOVERSION} + NO_SONAME ON ) # This needs to be at the end --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,16 +12,6 @@ set(APPLICATION_VERSION_PATCH "5") set(APPLICATION_VERSION "${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}") -# SOVERSION scheme: CURRENT.AGE.REVISION -# If there was an incompatible interface change: -# Increment CURRENT. Set AGE and REVISION to 0 -# If there was a compatible interface change: -# Increment AGE. Set REVISION to 0 -# If the source code was changed, but there were no interface changes: -# Increment REVISION. -set(LIBRARY_VERSION "0.1.5") -set(LIBRARY_SOVERSION "0") - # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules debian/patches/series0000644000000000000000000000007612643264530012042 0ustar no-soname.diff Hurd_PATH_MAX.patch wait_more_for_server.patch debian/patches/wait_more_for_server.patch0000644000000000000000000000104112643264552016065 0ustar Description: . Author: Laszlo Boszormenyi (GCS) Forwarded: no Bug-Debian: https://bugs.debian.org/787572 Last-Update: 2016-01-06 --- --- socket-wrapper-1.1.3.orig/tests/torture.c +++ socket-wrapper-1.1.3/tests/torture.c @@ -183,12 +183,12 @@ static void torture_setup_echo_srv_ip(vo struct stat sb; count++; - if (count > 100) { + if (count > 1000) { break; } rc = stat(s->srv_pidfile, &sb); - usleep(200); + usleep(500); } while (rc != 0); assert_int_equal(rc, 0); debian/rules0000755000000000000000000000253112424256710010252 0ustar #!/usr/bin/make -f cflags = $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) ldflags = $(shell dpkg-buildflags --get LDFLAGS) cmake_options = \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_C_FLAGS="$(cflags)" \ -DCMAKE_SHARED_LINKER_FLAGS="$(ldflags)" \ -DCMAKE_EXE_LINKER_FLAGS="$(ldflags)" \ ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" "" cmake_options += \ -DUNIT_TESTING=1 endif parallel = -j$(or $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))),1) .PHONY: clean clean: debian/control dh_clean rm -rf obj .PHONY: build build-arch build-indep build: build-arch build-arch: obj/stamp obj/stamp: CMakeLists.txt mkdir -p obj cd obj && cmake $(cmake_options) .. $(MAKE) $(parallel) -C obj/ ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" "" $(MAKE) -C obj/ test endif a2x --doctype manpage --format manpage doc/socket_wrapper.1.txt touch $(@) .PHONY: binary binary-arch binary-indep binary: binary-arch binary-arch: obj/stamp dh_testroot dh_prep $(MAKE) -C obj/ install DESTDIR=../debian/libsocket-wrapper/ dh_lintian dh_installchangelogs dh_installdocs AUTHORS README TODO dh_installexamples example/* dh_buildinfo dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # vim:ts=4 sw=4 noet debian/source/0000755000000000000000000000000012424256634010476 5ustar debian/source/format0000644000000000000000000000001412327266223011701 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000010312424256634012106 0ustar compression = gzip extend-diff-ignore = "^doc/socket_wrapper[.]1$" debian/tests/0000755000000000000000000000000012347530261010333 5ustar debian/tests/adequate0000755000000000000000000000005612327524214012052 0ustar #!/bin/sh exec adequate libsocket-wrapper >&2 debian/tests/control0000644000000000000000000000027512347530261011742 0ustar Tests: tests Depends: libsocket-wrapper, build-essential, cmake (>= 2.8.8-3~), libcmocka-dev (>= 0.4.1), Restrictions: allow-stderr Tests: adequate Depends: libsocket-wrapper, adequate debian/tests/tests0000755000000000000000000000033012327526270011422 0ustar #!/bin/sh set -e -u cp -a . "$ADTTMP" cd "$ADTTMP" rm -rf obj debian mkdir obj cd obj cmake .. -DUNIT_TESTING=1 make -C tests/ cd tests export LD_PRELOAD=libsocket_wrapper.so ls ./test_* \ | xargs -t -d '\n' -n1 env debian/watch0000644000000000000000000000016012534132161010212 0ustar version=3 https://ftp.samba.org/pub/cwrap/ socket_wrapper-v?([\d.]+)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)