debian/0000775000000000000000000000000012263124030007161 5ustar debian/rules0000775000000000000000000000003512263123656010254 0ustar #!/usr/bin/make -f %: dh $@ debian/watch0000664000000000000000000000007512263123656010231 0ustar version=3 http://radare.org/get/valabind-([0-9\.]+)\.tar\.gz debian/changelog0000664000000000000000000000721312263124002011035 0ustar valabind (0.7.4-4ubuntu1) trusty; urgency=medium * Merge from Debian unstable. Remaining changes: - debian/control: Build-depend on libvala-0.22-dev instead of libvala-0.20-dev to fix FTBFS. -- Logan Rosen Tue, 07 Jan 2014 20:20:50 -0500 valabind (0.7.4-4) unstable; urgency=medium * debian/control: Switched Sebastian and myself as Maintainer/Uploader. -- David Martínez Moreno Fri, 03 Jan 2014 22:41:59 -0800 valabind (0.7.4-3ubuntu1) trusty; urgency=medium * Merge from Debian unstable. Remaining changes: - debian/control: Build-depend on libvala-0.22-dev instead of libvala-0.20-dev to fix FTBFS. -- Logan Rosen Thu, 02 Jan 2014 16:44:37 -0500 valabind (0.7.4-3) unstable; urgency=low * debian/patches: - 07_add_nolibpython: Add a --nolibpython option to valabind to be able to comply with Debian Python Policy 2.1 (no linking binaries with libpython). -- David Martínez Moreno Wed, 25 Dec 2013 03:01:19 -0800 valabind (0.7.4-2) unstable; urgency=medium * debian/patches: - 06_fix_ldflags_python_php5: Fix LDFLAGS propagation in valabind-cc for Python and PHP bindings. -- David Martínez Moreno Fri, 20 Dec 2013 23:56:16 -0800 valabind (0.7.4-1ubuntu1) trusty; urgency=low * Add missing build dependency, resolving FTBFS. -- Daniel T Chen Fri, 20 Dec 2013 13:44:18 -0500 valabind (0.7.4-1) unstable; urgency=low * New upstream release: - Support for cTypes. - Support for D bindings. - Other fixes. * debian/control: - Add myself to Uploaders. - Convert valac-0.20 dependency to valac (>= 0.20). - Add Homepage and converted old Vcs links to the new URL format. - Upgrade Standards-Version to 3.9.5. - Build-Depends on quilt and libvala-0.20-dev. * debian/patches: - 01_add_uint_swigwriter: Add support for uint types (backported from d2a4162a47). - 02_manpage_typo: Added a fix for an invalid keyword. - 03_fix_make_clean: Fix leftover generated .c files. - 04_proper_version: Bump version from git to 0.7.4. - 05_c-cpp-ldflags_support: Honor CFLAGS, CPPFLAGS and LDFLAGS. This has the amazing side effect of allowing fortified builds (e.g. -D FORTIFY_SOURCE=2) and binaries with the read-only relocation flag. Lintian is happy again. -- David Martínez Moreno Mon, 16 Dec 2013 00:39:22 -0800 valabind (0.7.2-2) unstable; urgency=low * build depend on vala 0.20 (Closes: #709704) * bump Debian Standards Version to 3.9.4 -- Sebastian Reichel Fri, 07 Jun 2013 20:51:33 +0200 valabind (0.7.2-1) unstable; urgency=low * new upstream release * build depend on vala 0.16 (Closes: #675671) * bump compat level -- Sebastian Reichel Thu, 25 Oct 2012 01:05:39 +0200 valabind (0.6.4-1) unstable; urgency=low * new upstream release -- Sebastian Reichel Sat, 03 Dec 2011 15:32:14 +0100 valabind (0.6-1) unstable; urgency=low * new upstream release -- Sebastian Reichel Tue, 01 Nov 2011 13:24:29 +0100 valabind (0.5.2-1) unstable; urgency=low * new upstream release - c files were removed upstream - fixed lintian typo warning -- Sebastian Reichel Thu, 13 Oct 2011 02:06:20 +0200 valabind (0.5.1-1) unstable; urgency=low * new upstream release * uses vala 0.14 -- Sebastian Reichel Thu, 13 Oct 2011 01:47:04 +0200 valabind (0.5-1) unstable; urgency=low * initial release (Closes: #573501) -- Sebastian Reichel Wed, 12 Oct 2011 21:52:58 +0200 debian/compat0000664000000000000000000000000212263123656010374 0ustar 9 debian/copyright0000664000000000000000000000210012263123656011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://hg.youterm.com/valabind/ Files: * Copyright: 2009-2012, pancake License: GPL-3 On Debian systems, the complete text of the GPL-3 can be found in /usr/share/common-licenses/GPL-3. Files: debian/* Copyright: 2011-2012, Sebastian Reichel License: ISC Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. . THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. debian/source/0000775000000000000000000000000012263124030010461 5ustar debian/source/format0000664000000000000000000000001412263123656011704 0ustar 3.0 (quilt) debian/control0000664000000000000000000000165712263124004010576 0ustar Source: valabind Section: devel Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: David Martínez Moreno Uploaders: Sebastian Reichel Build-Depends: debhelper (>= 9), libvala-0.22-dev, valac (>= 0.20), quilt Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-vala/valabind.git Vcs-Git: git://anonscm.debian.org/pkg-vala/valabind.git Homepage: http://radare.org Package: valabind Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: gobject-introspection, swig, valac Description: converts vapi files to SWIG, C++, GIR or GEAR files Valabind is a tool to parse vala or vapi files and transform them into SWIG interface files, C++ source files, GIR or GEAR. . It allows easy, fully automatic generation of language bindings for vala code. debian/patches/0000775000000000000000000000000012263124030010610 5ustar debian/patches/04_proper_version0000664000000000000000000000064612263123656014135 0ustar Description: Fix leftover version from git. Sergi forgot to bump the version number. Author: David Martínez Moreno Forwarded: not-needed Last-Update: 2013-12-15 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -_VERSION=0.7.3git +_VERSION=0.7.4 #GIT_TIP=$(shell [ -d .git ] && git log HEAD^..HEAD 2>/dev/null |head -n1|cut -d ' ' -f2) GIT_TIP=$(shell git describe --tags) CONTACT=pancake@nopcode.org debian/patches/06_fix_ldflags_python_php50000664000000000000000000000170612263123656015700 0ustar Description: Fix LDFLAGS propagation in valabind-cc. LDFLAGS are not properly propagated in valabind-cc for python and php5 bindings. Author: David Martínez Moreno Forwarded: https://github.com/Jo-Con-El/valabind/commit/e2b8d4ffed2033dc1758f107cb6d3df41b70bdd5 Last-Update: 2013-12-20 --- valabind-0.7.4.orig/valabind-cc +++ valabind-0.7.4/valabind-cc @@ -104,7 +104,7 @@ guile) ;; python) use_cxx - LDFLAGS="-L/usr/local/lib -L/usr/pkg/lib" + LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/usr/pkg/lib" if [ -n "`echo ${CXX} | grep mingw`" ]; then CFLAGS="${CFLAGS} -I${HOME}/.wine/drive_c/Python27/include" LDFLAGS="${LDFLAGS} -L${HOME}/.wine/drive_c/Python27/libs -lpython27" @@ -152,7 +152,7 @@ java) ;; php5) CFLAGS="`php-config --includes 2>/dev/null` `pkg-config --libs libpng 2>/dev/null`" - LDFLAGS=`php-config --libs 2>/dev/null` + LDFLAGS="${LDFLAGS} `php-config --libs 2>/dev/null`" ;; lua) SOEXT=so debian/patches/series0000664000000000000000000000023012263123656012035 0ustar 01_add_uint_swigwriter 02_manpage_typo 03_fix_make_clean 04_proper_version 05_c-cpp-ldflags_support 06_fix_ldflags_python_php5 07_add_nolibpython.patch debian/patches/07_add_nolibpython.patch0000664000000000000000000000574312263123656015342 0ustar Description: Add a --nolibpython option to valabind-cc. From Debian's Python Policy, Chapter 2.1: . Some distributions link extensions to libpython, but this is not the case in Debian as symbols might as well be resolved by /usr/bin/pythonX.Y which is not linked to libpython. . This patch adds a new option to valabind-cc to strip the -lpythonX.X from the output of pythonX.Y-config --ldflags. It also makes the matching of arguments more strict to prevent '-n' being matched with --nolibpython. Author: David Martínez Moreno Forwarded: no Last-Update: 2013-12-25 --- a/valabind-cc +++ b/valabind-cc @@ -23,6 +23,7 @@ echo " -n do not generate .i/.c/.cxx code, but compile it" echo " -N[nspace] include namespace in the output" echo " -D[SYMBOL] define vala symbol Symbol" + echo " --nolibpython do not include libpython in Python flags" echo " Environment:" echo " VALABIND_DEBUG if not empty show stderr of commands" echo " PYTHON_CONFIG path to python-config program (select py2 or py3)" @@ -171,36 +172,38 @@ while : ; do [ -z "$1" ] && break - if [ "`echo $1 | grep -- '-I'`" ]; then + if [ "`echo $1 | grep -- '^-I'`" ]; then CFLAGS="${CFLAGS} $1" SWIGFLAGS="$1 ${SWIGFLAGS}" VALABINDFLAGS="`echo $1|sed -e 's,^-I,-I ,'` ${VALABINDFLAGS}" - elif [ "`echo $1 | grep -- '-V'`" ]; then + elif [ "`echo $1 | grep -- '^-V'`" ]; then CFLAGS="${CFLAGS} $1" VALABINDFLAGS="`echo $1|sed -e 's,^-V,-V ,'` ${VALABINDFLAGS}" elif [ "`echo $1 | grep -- '--vapidir'`" ]; then ARG_VAPIDIR="`echo $1|sed -e 's,=, ,'`" - elif [ "`echo $1 | grep -- '-x'`" ]; then + elif [ "`echo $1 | grep -- '^-x'`" ]; then use_cxx - elif [ "`echo $1 | grep -- '-n'`" ]; then + elif [ "`echo $1 | grep -- '^-n'`" ]; then NOGEN=1 - elif [ "`echo $1 | grep -- '-N'`" ]; then + elif [ "`echo $1 | grep -- '^-N'`" ]; then VALABINDFLAGS="`echo $1|sed -e 's,^-N,-N ,'` ${VALABINDFLAGS}" - elif [ "`echo $1 | grep -- '-X'`" ]; then + elif [ "`echo $1 | grep -- '^-X'`" ]; then EXT="cxx" CXXOUT=1 - elif [ "`echo $1 | grep -- '-l'`" ]; then + elif [ "`echo $1 | grep -- '^-l'`" ]; then LDFLAGS="$1 ${LDFLAGS}" - elif [ "`echo $1 | grep -- '--glib'`" ]; then + elif [ "`echo $1 | grep -- '^--glib'`" ]; then SWIGFLAGS="$1 ${SWIGFLAGS}" - elif [ "`echo $1 | grep -- '-L'`" ]; then + elif [ "`echo $1 | grep -- '^-L'`" ]; then LDFLAGS="$1 ${LDFLAGS}" - elif [ "`echo $1 | grep -- '-C'`" ]; then + elif [ "`echo $1 | grep -- '^-C'`" ]; then COMPILE="" - elif [ "`echo $1 | grep -- '-pthread'`" ]; then + elif [ "`echo $1 | grep -- '^-pthread'`" ]; then echo ignored $1 - elif [ "`echo $1 | grep -- '-D'`" ]; then + elif [ "`echo $1 | grep -- '^-D'`" ]; then VALABINDFLAGS="`echo $1|sed -e 's,^-D,-D ,'` ${VALABINDFLAGS}" + elif [ "`echo $1 | grep -- '^--nolibpython'`" ]; then + LDFLAGS="$(echo ${LDFLAGS} | sed -r 's,-lpython[0-9.]+,,g')" else FILES="$1 ${FILES}" fi debian/patches/01_add_uint_swigwriter0000664000000000000000000000100412263123656015120 0ustar Description: Add uint type to swigwriter. This patch backports d2a4162a47 to have support for uint, just in case it's needed. Author: pancake@nopcode.org Origin: upstream, https://github.com/radare/valabind/commit/d2a4162a4747f62d1c658f1d1823fd36c75f89f9 Reviewed-By: pancake@radare.org Last-Update: 2013-11-13 --- a/swigwriter.vala +++ b/swigwriter.vala @@ -121,6 +121,7 @@ return "char"; case "gint": return "int"; + case "uint": case "guint": return "unsigned int"; case "glong": debian/patches/02_manpage_typo0000664000000000000000000000106612263123656013537 0ustar Description: Invalid keyword in manpage due to a typo. Lintian was reporting a typo in one of the manpages. Author: David Martínez Moreno Forwarded: https://github.com/radare/valabind/pull/14 Last-Update: 2013-12-12 --- valabind-0.7.4.orig/valabind.1 +++ valabind-0.7.4/valabind.1 @@ -27,7 +27,7 @@ Valabind is a program written in Vala th .Pp SWIG opens the door to create bindings for Python, Perl, ruby, lua, and many other scripting languages. .Pp -.Bl -tag -wdith Fl +.Bl -tag -width Fl .It Fl h show help message .It Fl o Ar OUTPUT debian/patches/05_c-cpp-ldflags_support0000664000000000000000000000151212263123656015263 0ustar Description: Support C/CPP/LDFLAGS in Makefile. This is needed to have fortified/hardened binaries . Author: David Martínez Moreno Forwarded: https://github.com/radare/valabind/pull/14 Last-Update: 2013-12-15 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ PREFIX?=/usr MANDIR?=$(PREFIX)/share/man CC?=gcc -VALAC?=valac -g --cc="$(CC)" +VALAFLAGS:=$(foreach w,$(CPPFLAGS) $(CFLAGS) $(LDFLAGS),-X $(w)) +VALAC?=valac -g --cc="$(CC)" $(VALAFLAGS) RTLIBS=gobject-2.0 glib-2.0 VALAPKG:=$(shell ./getvv) BUILD?=build @@ -32,7 +33,7 @@ $(BIN): $(SRC) | $(VAPIS) @echo 'Compiling $(VALA_FILTER) -> $@' - @$(VALAC) -o $@ --pkg posix --pkg $(VALAPKG) --save-temps ${TEMPS} + $(VALAC) -o $@ --pkg posix --pkg $(VALAPKG) --save-temps ${TEMPS} @mv $(VALA_FILTER:%.vala=%.c) $(BUILD) $(BUILD)/%.vapi: %.vala | $(BUILD) debian/patches/03_fix_make_clean0000664000000000000000000000063712263123656014005 0ustar Description: Leftover .c files in make clean. make clean forgets to remove the generated .c files. Author: David Martínez Moreno Forwarded: https://github.com/radare/valabind/pull/14 Last-Update: 2013-12-15 --- valabind-0.7.4.orig/Makefile +++ valabind-0.7.4/Makefile @@ -73,6 +73,7 @@ dist: mrproper clean: rm -f config.vala rm -rf $(BUILD) $(BIN) + rm -rf *.c deinstall: uninstall