--- geanygdb-0.0.2.orig/debian/rules +++ geanygdb-0.0.2/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +export LDFLAGS += -Wl,-z,defs -Wl,--as-needed + +# hook up patch rule +override_dh_auto_configure: patch + dh_auto_configure + +# hook up unpatch rule +override_dh_auto_clean: unpatch + dh_auto_clean + +%: + dh $@ --- geanygdb-0.0.2.orig/debian/README.source +++ geanygdb-0.0.2/debian/README.source @@ -0,0 +1,57 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- geanygdb-0.0.2.orig/debian/copyright +++ geanygdb-0.0.2/debian/copyright @@ -0,0 +1,35 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=454 +Upstream-Name: geanygdb +Upstream-Maintainer: Dominic Hopf +Upstream-Source: http://plugins.geany.org/geanygdb/ + +Files: * +Copyright: Jeff Pohlmeyer +Copyright: Salvador E. Tropea +Copyright: Enrico Tröger +Copyright: Nick Treleaven +Copyright: Yura Siamaska +License: GPL-2+ + +Files: debian/* +Copyright: 2009 Chow Loong Jin +License: GPL-2+ + +License: GPL-2+ + 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 of the License, 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + . + On Debian systems, a full copy of this license can be found in + /usr/share/common-licenses/GPL-2 + --- geanygdb-0.0.2.orig/debian/watch +++ geanygdb-0.0.2/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://plugins.geany.org/geanygdb/ http.*geanygdb-(.*)\.tar\.gz --- geanygdb-0.0.2.orig/debian/docs +++ geanygdb-0.0.2/debian/docs @@ -0,0 +1 @@ +README --- geanygdb-0.0.2.orig/debian/changelog +++ geanygdb-0.0.2/debian/changelog @@ -0,0 +1,21 @@ +geanygdb (0.0.2-0ubuntu1~hyper1+jaunty1) jaunty; urgency=low + + * Backport to Jaunty + + -- Chow Loong Jin Fri, 22 May 2009 02:15:33 +0800 + +geanygdb (0.0.2-0ubuntu2) karmic; urgency=low + + * debian/control: + + Drop version from libgtk2.0-dev build dependency. This will be + automatically satisfied by Geany's dependency on libgtk2.0-0, determined + during Geany's build time. + + -- Chow Loong Jin Fri, 22 May 2009 02:17:12 +0800 + +geanygdb (0.0.2-0ubuntu1) karmic; urgency=low + + * Initial release (LP: #370964) + + -- Chow Loong Jin Sat, 14 Mar 2009 23:42:00 +0800 + --- geanygdb-0.0.2.orig/debian/control +++ geanygdb-0.0.2/debian/control @@ -0,0 +1,30 @@ +Source: geanygdb +Section: devel +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Chow Loong Jin +Build-Depends: debhelper (>= 7.0.50), + quilt, + autotools-dev, + geany (>= 0.15), + libgtk2.0-dev, + pkg-config, + intltool +Standards-Version: 3.8.1 +Homepage: http://plugins.geany.org/gdb/ + +Package: geany-plugin-gdb +Architecture: any +Depends: geany (>= 0.15), + gdb (>= 6.7.50), + ${shlibs:Depends}, + ${misc:Depends} +Description: gdb plugin for geany + GeanyGDB is a plugin for Geany which provides integrated debugging support + within Geany via the GNU Debugger (gdb). + . + Geany is a small and lightweight integrated development environment using the + GTK2 toolkit. + . + The GNU Debugger is a source-level debugger for C, C++, Fortran, Modula 2 and + Java programs. --- geanygdb-0.0.2.orig/debian/compat +++ geanygdb-0.0.2/debian/compat @@ -0,0 +1 @@ +7 --- geanygdb-0.0.2.orig/debian/patches/01_move-binary-to-lib.patch +++ geanygdb-0.0.2/debian/patches/01_move-binary-to-lib.patch @@ -0,0 +1,220 @@ +Move /usr/bin/geanygdb_ttyhelper which is a private binary to /usr/lib/geanygdb instead. +Index: geanygdb/src/Makefile.am +=================================================================== +--- geanygdb.orig/src/Makefile.am 2009-05-03 05:12:05.000000000 +0800 ++++ geanygdb/src/Makefile.am 2009-05-03 05:13:03.000000000 +0800 +@@ -21,8 +21,9 @@ + geanygdb_la_LDFLAGS = -module -avoid-version + geanygdb_la_LIBADD = @GEANY_LIBS@ $(INTLLIBS) + +-bin_PROGRAMS = geanygdb_ttyhelper +-geanygdb_ttyhelper_SOURCES = ttyhelper.c ++geanygdbdir = $(libdir)/geanygdb/ ++geanygdb_PROGRAMS = ttyhelper ++ttyhelper_SOURCES = ttyhelper.c + +-AM_CFLAGS = @GEANY_CFLAGS@ -DLOCALEDIR=\""$(localedir)"\" -DPREFIX=\""$(prefix)"\" ++AM_CFLAGS = @GEANY_CFLAGS@ -DLOCALEDIR=\""$(localedir)"\" -DLIBDIR=\""$(libdir)"\" + +Index: geanygdb/src/geanydebug.c +=================================================================== +--- geanygdb.orig/src/geanydebug.c 2009-05-03 05:12:05.000000000 +0800 ++++ geanygdb/src/geanydebug.c 2009-05-03 05:13:03.000000000 +0800 +@@ -354,7 +354,7 @@ + gdbio_setup.temp_dir = g_build_filename(geany->app->configdir, "plugins", unix_name, NULL); + /*gdbio_setup.tty_helper = g_build_filename(gdbio_setup.temp_dir, "geanygdb_ttyhelper", NULL);*/ + /* the tty helper binary is installed in $prefix/bin, so use this path */ +- gdbio_setup.tty_helper = g_build_filename(PREFIX, "bin", "geanygdb_ttyhelper", NULL); ++ gdbio_setup.tty_helper = g_build_filename(LIBDIR, "geanygdb", "ttyhelper", NULL); + config_file = g_build_filename(gdbio_setup.temp_dir, "debugger.cfg", NULL); + gdbui_opts_init(); + if (g_key_file_load_from_file(kf, config_file, G_KEY_FILE_NONE, NULL)) +Index: geanygdb/src/Makefile.in +=================================================================== +--- geanygdb.orig/src/Makefile.in 2009-05-03 05:12:05.000000000 +0800 ++++ geanygdb/src/Makefile.in 2009-05-03 05:13:03.000000000 +0800 +@@ -33,7 +33,7 @@ + POST_UNINSTALL = : + build_triplet = @build@ + host_triplet = @host@ +-bin_PROGRAMS = geanygdb_ttyhelper$(EXEEXT) ++geanygdb_PROGRAMS = ttyhelper$(EXEEXT) + subdir = src + DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +@@ -49,7 +49,7 @@ + *) f=$$p;; \ + esac; + am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" ++am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(geanygdbdir)" + libLTLIBRARIES_INSTALL = $(INSTALL) + LTLIBRARIES = $(lib_LTLIBRARIES) + am__DEPENDENCIES_1 = +@@ -62,11 +62,11 @@ + geanygdb_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(geanygdb_la_LDFLAGS) $(LDFLAGS) -o $@ +-binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +-PROGRAMS = $(bin_PROGRAMS) +-am_geanygdb_ttyhelper_OBJECTS = ttyhelper.$(OBJEXT) +-geanygdb_ttyhelper_OBJECTS = $(am_geanygdb_ttyhelper_OBJECTS) +-geanygdb_ttyhelper_LDADD = $(LDADD) ++geanygdbPROGRAMS_INSTALL = $(INSTALL_PROGRAM) ++PROGRAMS = $(geanygdb_PROGRAMS) ++am_ttyhelper_OBJECTS = ttyhelper.$(OBJEXT) ++ttyhelper_OBJECTS = $(am_ttyhelper_OBJECTS) ++ttyhelper_LDADD = $(LDADD) + DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) + depcomp = $(SHELL) $(top_srcdir)/depcomp + am__depfiles_maybe = depfiles +@@ -79,8 +79,8 @@ + LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +-SOURCES = $(geanygdb_la_SOURCES) $(geanygdb_ttyhelper_SOURCES) +-DIST_SOURCES = $(geanygdb_la_SOURCES) $(geanygdb_ttyhelper_SOURCES) ++SOURCES = $(geanygdb_la_SOURCES) $(ttyhelper_SOURCES) ++DIST_SOURCES = $(geanygdb_la_SOURCES) $(ttyhelper_SOURCES) + ETAGS = etags + CTAGS = ctags + DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +@@ -263,8 +263,9 @@ + + geanygdb_la_LDFLAGS = -module -avoid-version + geanygdb_la_LIBADD = @GEANY_LIBS@ $(INTLLIBS) +-geanygdb_ttyhelper_SOURCES = ttyhelper.c +-AM_CFLAGS = @GEANY_CFLAGS@ -DLOCALEDIR=\""$(localedir)"\" -DPREFIX=\""$(prefix)"\" ++geanygdbdir = $(libdir)/geanygdb/ ++ttyhelper_SOURCES = ttyhelper.c ++AM_CFLAGS = @GEANY_CFLAGS@ -DLOCALEDIR=\""$(localedir)"\" -DLIBDIR=\""$(libdir)"\" + all: all-am + + .SUFFIXES: +@@ -327,37 +328,37 @@ + done + geanygdb.la: $(geanygdb_la_OBJECTS) $(geanygdb_la_DEPENDENCIES) + $(geanygdb_la_LINK) -rpath $(libdir) $(geanygdb_la_OBJECTS) $(geanygdb_la_LIBADD) $(LIBS) +-install-binPROGRAMS: $(bin_PROGRAMS) ++install-geanygdbPROGRAMS: $(geanygdb_PROGRAMS) + @$(NORMAL_INSTALL) +- test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" +- @list='$(bin_PROGRAMS)'; for p in $$list; do \ ++ test -z "$(geanygdbdir)" || $(MKDIR_P) "$(DESTDIR)$(geanygdbdir)" ++ @list='$(geanygdb_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ +- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ +- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ ++ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(geanygdbPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(geanygdbdir)/$$f'"; \ ++ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(geanygdbPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(geanygdbdir)/$$f" || exit 1; \ + else :; fi; \ + done + +-uninstall-binPROGRAMS: ++uninstall-geanygdbPROGRAMS: + @$(NORMAL_UNINSTALL) +- @list='$(bin_PROGRAMS)'; for p in $$list; do \ ++ @list='$(geanygdb_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ +- echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ +- rm -f "$(DESTDIR)$(bindir)/$$f"; \ ++ echo " rm -f '$(DESTDIR)$(geanygdbdir)/$$f'"; \ ++ rm -f "$(DESTDIR)$(geanygdbdir)/$$f"; \ + done + +-clean-binPROGRAMS: +- @list='$(bin_PROGRAMS)'; for p in $$list; do \ ++clean-geanygdbPROGRAMS: ++ @list='$(geanygdb_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done +-geanygdb_ttyhelper$(EXEEXT): $(geanygdb_ttyhelper_OBJECTS) $(geanygdb_ttyhelper_DEPENDENCIES) +- @rm -f geanygdb_ttyhelper$(EXEEXT) +- $(LINK) $(geanygdb_ttyhelper_OBJECTS) $(geanygdb_ttyhelper_LDADD) $(LIBS) ++ttyhelper$(EXEEXT): $(ttyhelper_OBJECTS) $(ttyhelper_DEPENDENCIES) ++ @rm -f ttyhelper$(EXEEXT) ++ $(LINK) $(ttyhelper_OBJECTS) $(ttyhelper_LDADD) $(LIBS) + + mostlyclean-compile: + -rm -f *.$(OBJEXT) +@@ -483,10 +484,8 @@ + check-am: all-am + check: check-am + all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) +-install-binPROGRAMS: install-libLTLIBRARIES +- + installdirs: +- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)"; do \ ++ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(geanygdbdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done + install: install-am +@@ -515,7 +514,7 @@ + @echo "it deletes files that may require special tools to rebuild." + clean: clean-am + +-clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ ++clean-am: clean-geanygdbPROGRAMS clean-generic clean-libLTLIBRARIES \ + clean-libtool mostlyclean-am + + distclean: distclean-am +@@ -534,11 +533,11 @@ + + info-am: + +-install-data-am: ++install-data-am: install-geanygdbPROGRAMS + + install-dvi: install-dvi-am + +-install-exec-am: install-binPROGRAMS install-libLTLIBRARIES ++install-exec-am: install-libLTLIBRARIES + + install-html: install-html-am + +@@ -570,24 +569,25 @@ + + ps-am: + +-uninstall-am: uninstall-binPROGRAMS uninstall-libLTLIBRARIES ++uninstall-am: uninstall-geanygdbPROGRAMS uninstall-libLTLIBRARIES + + .MAKE: install-am install-strip + +-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ +- clean-generic clean-libLTLIBRARIES clean-libtool ctags \ +- distclean distclean-compile distclean-generic \ +- distclean-libtool distclean-tags distdir dvi dvi-am html \ +- html-am info info-am install install-am install-binPROGRAMS \ ++.PHONY: CTAGS GTAGS all all-am check check-am clean \ ++ clean-geanygdbPROGRAMS clean-generic clean-libLTLIBRARIES \ ++ clean-libtool ctags distclean distclean-compile \ ++ distclean-generic distclean-libtool distclean-tags distdir dvi \ ++ dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ +- install-exec install-exec-am install-html install-html-am \ +- install-info install-info-am install-libLTLIBRARIES \ +- install-man install-pdf install-pdf-am install-ps \ +- install-ps-am install-strip installcheck installcheck-am \ +- installdirs maintainer-clean maintainer-clean-generic \ +- mostlyclean mostlyclean-compile mostlyclean-generic \ +- mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ +- uninstall-am uninstall-binPROGRAMS uninstall-libLTLIBRARIES ++ install-exec install-exec-am install-geanygdbPROGRAMS \ ++ install-html install-html-am install-info install-info-am \ ++ install-libLTLIBRARIES install-man install-pdf install-pdf-am \ ++ install-ps install-ps-am install-strip installcheck \ ++ installcheck-am installdirs maintainer-clean \ ++ maintainer-clean-generic mostlyclean mostlyclean-compile \ ++ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ ++ tags uninstall uninstall-am uninstall-geanygdbPROGRAMS \ ++ uninstall-libLTLIBRARIES + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. --- geanygdb-0.0.2.orig/debian/patches/99_ltmain_as-needed.patch +++ geanygdb-0.0.2/debian/patches/99_ltmain_as-needed.patch @@ -0,0 +1,33 @@ +Patch to add support for --as-needed flag to drop unnecessary deps +Index: geanyvc-0.4/ltmain.sh +=================================================================== +--- geanyvc-0.4.orig/ltmain.sh 2008-10-23 05:11:06.000000000 +0800 ++++ geanyvc-0.4/ltmain.sh 2009-01-31 01:59:00.000000000 +0800 +@@ -4189,6 +4189,11 @@ + arg=$func_stripname_result + ;; + ++ -Wl,--as-needed) ++ deplibs="$deplibs $arg" ++ continue ++ ;; ++ + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result +@@ -4540,6 +4545,15 @@ + lib= + found=no + case $deplib in ++ -Wl,--as-needed) ++ if test "$linkmode,$pass" = "prog,link"; then ++ compile_deplibs="$deplib $compile_deplibs" ++ finalize_deplibs="$deplib $finalize_deplibs" ++ else ++ deplibs="$deplib $deplibs" ++ fi ++ continue ++ ;; + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" --- geanygdb-0.0.2.orig/debian/patches/02_quilt-intltool.patch +++ geanygdb-0.0.2/debian/patches/02_quilt-intltool.patch @@ -0,0 +1,9 @@ +Workaround issue where intltool-update -m looks in .pc (quilt's temporary +folder) and thinks that files were forgotten from POTFILES.{in,skip} +Index: geanygdb/po/POTFILES.skip +=================================================================== +--- geanygdb.orig/po/POTFILES.skip 2009-05-03 05:59:58.000000000 +0800 ++++ geanygdb/po/POTFILES.skip 2009-05-03 06:00:46.000000000 +0800 +@@ -1 +1,2 @@ + # List of source files containing translatable strings but should be ignored. ++.pc --- geanygdb-0.0.2.orig/debian/patches/series +++ geanygdb-0.0.2/debian/patches/series @@ -0,0 +1,3 @@ +01_move-binary-to-lib.patch +02_quilt-intltool.patch +99_ltmain_as-needed.patch