--- dehydra-0.9.hg20120525.orig/dehydra.c +++ dehydra-0.9.hg20120525/dehydra.c @@ -77,7 +77,7 @@ static const char *STATIC = "isStatic"; static const char *VIRTUAL = "isVirtual"; static const char *INCLUDE_PATH = "include_path"; -static const char *STD_INCLUDE = "libs"; +static const char *STD_INCLUDE = "/usr/share/dehydra/libs"; static const char *VERSION_STRING = "gcc_version"; static const char *FRONTEND = "frontend"; static const char *EXTERN = "isExtern"; @@ -173,9 +173,10 @@ char *filename_copy = xstrdup(file); char *dir = my_dirname(filename_copy); - char *libdir = xmalloc(strlen(dir) + strlen(STD_INCLUDE) + 2); - sprintf(libdir, "%s/%s", dir, STD_INCLUDE); + char *libdir = xmalloc(strlen(dir) + 6); + sprintf(libdir, "%s/libs", dir); dehydra_appendToPath(this, libdir); + dehydra_appendToPath(this, STD_INCLUDE); free(libdir); free(filename_copy); --- dehydra-0.9.hg20120525.orig/debian/copyright +++ dehydra-0.9.hg20120525/debian/copyright @@ -0,0 +1,13 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Name: dehydra +Source: http://hg.mozilla.org/rewriting-and-analysis/dehydra + +Copyright: 2007-2010, The Mozilla Foundation +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: debian/* +Copyright: 2010, Mike Hommey +License: GPL-2+ --- dehydra-0.9.hg20120525.orig/debian/changelog +++ dehydra-0.9.hg20120525/debian/changelog @@ -0,0 +1,78 @@ +dehydra (0.9.hg20120525-1build1) raring; urgency=low + + * No change rebuild for GCC 4.6.4. + + -- Matthias Klose Sun, 21 Apr 2013 20:04:44 +0200 + +dehydra (0.9.hg20120525-1) unstable; urgency=low + + * New upstream snapshot. + * debian/control, debian/rules: Build against libmozjs185-dev. + Closes: #655779. Thanks Christian Engwer. + * debian/control: Bumped Standards-Version. No changes needed. + * debian/rules: Treehydra is always enabled now (and works), so build and + install it. + * debian/rules: Remove gcc plugin directory detection. Use whatever configure + found. + * debian/rules: Remove additional cleanup, upstream Makefile does it. + * debian/rules: No override is necessary for build, test and clean anymore. + + -- Mike Hommey Sat, 02 Jun 2012 10:09:37 +0200 + +dehydra (0.9.hg20110609-2) unstable; urgency=low + + * Upload to unstable. + * debian/rules: Remove workaround for bug #631082. + * debian/control: Build depend on gcc-4.6-plugin-dev >= 4.6.1-1, which + fixes that bug. + + -- Mike Hommey Fri, 15 Jul 2011 23:22:04 +0200 + +dehydra (0.9.hg20110609-1) experimental; urgency=low + + * New upstream snapshot. + * debian/control: Build depend on libmozjs-dev >= 2.0. + * Bump dependencies and build deps to gcc-4.6. + * debian/rules: Work around bug #631082. + * dehydra_builtins.hc Replace poisoned strerror with xstrerror. + * test/test_static_func.js: Fix failure with gcc 4.6. + + -- Mike Hommey Mon, 20 Jun 2011 10:58:06 +0900 + +dehydra (0.9.hg20100827-1) experimental; urgency=low + + * New upstream snapshot + * Install the plugin in the gcc-specific directory. Closes: #594576. + * Depend on gcc-4.5 and Recommend g++-4.5. Closes: #594577. + * dehydra.c: Allow to load dehydra js libraries from + /usr/share/dehydra/libs. + * debian/links: Remove the /usr/lib/dehydra/libs symbolic link. + + -- Mike Hommey Fri, 19 Nov 2010 18:04:26 +0100 + +dehydra (0.9.hg20100701-1) experimental; urgency=low + + * New upstream snapshot + * debian/rules: + - Use absolute paths for CC/CXX. + - Enable C support. + * debian/control: + - Bump Standards-Version to 3.9.0. No changes required. + - Adjust package description for C support. + * test/test_typedef_aligned.js: fix/workaround to pass the suite. + * test/unit_test_harness.py: Properly call gcc-x.y for C test cases. + bz#578012. + + -- Mike Hommey Mon, 12 Jul 2010 14:25:55 +0200 + +dehydra (0.9.hg20100407-2) experimental; urgency=low + + * debian/install, debian/links: Install dehydra javascript libraries. + + -- Mike Hommey Thu, 08 Apr 2010 12:55:38 +0200 + +dehydra (0.9.hg20100407-1) experimental; urgency=low + + * Initial release. (Closes: #566378) + + -- Mike Hommey Thu, 08 Apr 2010 09:48:13 +0200 --- dehydra-0.9.hg20120525.orig/debian/install +++ dehydra-0.9.hg20120525/debian/install @@ -0,0 +1 @@ +libs usr/share/dehydra --- dehydra-0.9.hg20120525.orig/debian/compat +++ dehydra-0.9.hg20120525/debian/compat @@ -0,0 +1 @@ +7 --- dehydra-0.9.hg20120525.orig/debian/control +++ dehydra-0.9.hg20120525/debian/control @@ -0,0 +1,21 @@ +Source: dehydra +Priority: extra +Section: devel +Maintainer: Mike Hommey +Build-Depends: debhelper (>= 7.0.50~), gcc-4.6-plugin-dev (>= 4.6.1-1), g++-4.6, python, libmozjs185-dev +Standards-Version: 3.9.3.0 + +Package: dehydra +Architecture: any +Depends: gcc-4.6, ${shlibs:Depends}, ${misc:Depends} +Recommends: g++-4.6 +Description: Scriptable static analysis tool for C and C++ + Dehydra is a lightweight, scriptable, general purpose static analysis tool + capable of application-specific analyses of C and C++ code. In the simplest + sense, Dehydra can be thought of as a semantic grep tool. It presents a + wealth of semantic information that can be queried with concise + JavaScripts. It is also useful to find bugs in source code as it allows + for much more error checking than C or C++ are capable of by themselves. + . + Dehydra is built as a GCC plugin, thus it is easy to use for projects that + already support GCC. --- dehydra-0.9.hg20120525.orig/debian/rules +++ dehydra-0.9.hg20120525/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +export CC=/usr/bin/gcc-4.6 +export CXX=/usr/bin/g++-4.6 + +override_dh_auto_configure: + ./configure --enable-C --js-name=mozjs185 --js-headers=/usr/include/js --js-libs=/usr/lib + +-include $(CURDIR)/config.mk + +do_install: + install -m 755 -d debian/dehydra/$(GCC_PLUGIN_HEADERS:-I%=%) + install -m 644 gcc_dehydra.so gcc_treehydra.so debian/dehydra/$(GCC_PLUGIN_HEADERS:-I%=%) + +override_dh_auto_install: + $(MAKE) -f debian/rules do_install + +binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep: + dh $@