--- libdevel-gdb-perl-2.02.orig/debian/control +++ libdevel-gdb-perl-2.02/debian/control @@ -0,0 +1,35 @@ +Source: libdevel-gdb-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 6), quilt +Build-Depends-Indep: perl (>= 5.8.8-7), libtest-pod-perl, libtest-pod-coverage-perl, gdb, libexpect-perl +Maintainer: Debian Perl Group +Uploaders: Deepak Tripathi , + gregor herrmann +Standards-Version: 3.7.3 +Homepage: http://search.cpan.org/dist/Devel-GDB/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libdevel-gdb-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libdevel-gdb-perl/ + +Package: libdevel-gdb-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, +Description: Open and communicate a gdb session + The Devel::GDB package provides an interface for communicating + with GDB. Internally, it uses the GDB/MI interpreter + (see http://sourceware.org/gdb/current/onlinedocs/gdb_25.html), + which accurately informs the caller of the program state and, + through the use of tokens, guarantees that the results returned + actually correspond to the request sent. + By contrast, GDB's console interpreter returns all responses on + STDOUT, and thus there is no way to ensure that a particular response + corresponds to a particular request. + . + Therefore, it is obviously preferable to use GDB/MI when programmatically + interacting with GDB. This can be done via the send_cmd family of functions + (send_cmd, send_cmd_excl, and send_cmd_async). There are, however, + some cases when there is no GDB/MI command corresponding to a particular + console command, or it has not yet been implemented (for example, -symbol-type, + corresponding to the console command ptype, is not yet implemented as of GDB + 6.6). In this case, the get function provides a workaround by capturing all + output sent to the console stream. --- libdevel-gdb-perl-2.02.orig/debian/patches/series +++ libdevel-gdb-perl-2.02/debian/patches/series @@ -0,0 +1 @@ +stdin.patch --- libdevel-gdb-perl-2.02.orig/debian/patches/stdin.patch +++ libdevel-gdb-perl-2.02/debian/patches/stdin.patch @@ -0,0 +1,22 @@ +--- libdevel-gdb-perl.orig/t/with-threads.t ++++ libdevel-gdb-perl/t/with-threads.t +@@ -9,7 +9,7 @@ + plan tests => 4 ; + + use_ok('Devel::GDB') ; +-my $gdb = new Devel::GDB ( '-params' => '-q' ) ; ++my $gdb = new Devel::GDB ( '-params' => '-q', '-use-tty' => '/dev/pts/123' ) ; + ok($gdb) ; + ok($gdb->{'-use-threads'}) ; + ok($gdb -> get( 'help')) ; +--- libdevel-gdb-perl.orig/t/without-threads.t ++++ libdevel-gdb-perl/t/without-threads.t +@@ -6,7 +6,7 @@ + plan tests => 4 ; + + use_ok('Devel::GDB') ; +-my $gdb = new Devel::GDB ( '-params' => '-q' ) ; ++my $gdb = new Devel::GDB ( '-params' => '-q', '-use-tty' => '/dev/pts/123' ) ; + ok($gdb) ; + ok(!$gdb->{'-use-threads'}) ; + ok($gdb -> get( 'help')) ; --- libdevel-gdb-perl-2.02.orig/debian/rules +++ libdevel-gdb-perl-2.02/debian/rules @@ -0,0 +1,80 @@ +#!/usr/bin/make -f +# This debian/rules file is provided as a template for normal perl +# packages. It was created by Marc Brockschmidt for +# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may +# be used freely wherever it is useful. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +# If set to a true value then MakeMaker's prompt function will +# always return the default without waiting for user input. +export PERL_MM_USE_DEFAULT=1 + +PACKAGE=$(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +TMP =$(CURDIR)/debian/$(PACKAGE) + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + + # Add commands to compile the package here + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + $(MAKE) test + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + + dh_clean build-stamp install-stamp + + # Add commands to clean up after the build process here + [ ! -f Makefile ] || $(MAKE) realclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + + # Add commands to install the package into debian/$PACKAGE_NAME here + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + + # As this is a architecture independent package, we are not + # supposed to install stuff to /usr/lib. MakeMaker creates + # the dirs, we delete them from the deb: + [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5 + + touch install-stamp + +binary-arch: +# We have nothing to do by default. + +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs README + dh_installchangelogs Changes + dh_perl + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- libdevel-gdb-perl-2.02.orig/debian/watch +++ libdevel-gdb-perl-2.02/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/Devel-GDB/ .*/Devel-GDB-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) --- libdevel-gdb-perl-2.02.orig/debian/copyright +++ libdevel-gdb-perl-2.02/debian/copyright @@ -0,0 +1,19 @@ +This is the debian package for the Devel-GDB module. +It was created by Deepak Tripathi using dh-make-perl. + +Upstream source location: http://search.cpan.org/dist/Devel-GDB/ + +The upstream author is: Antal Novak , Josef Ezra . + +Copyright (C) 2007 by Antal Novak & Josef Ezra. +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + +Perl is distributed under your choice of the GNU General Public License or +the Artistic License. On Debian GNU/Linux systems, the complete text of the +GNU General Public License can be found in `/usr/share/common-licenses/GPL' +and the Artistic Licence in `/usr/share/common-licenses/Artistic'. + +-- +The Debian packaging is (C) 2007, Deepak Tripathi and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- libdevel-gdb-perl-2.02.orig/debian/compat +++ libdevel-gdb-perl-2.02/debian/compat @@ -0,0 +1 @@ +6 --- libdevel-gdb-perl-2.02.orig/debian/changelog +++ libdevel-gdb-perl-2.02/debian/changelog @@ -0,0 +1,37 @@ +libdevel-gdb-perl (2.02-1) unstable; urgency=low + + * New upstream release. + * debian/copyright: use generic upstream URL. + * Add Deepak Tripathi and /me to Uploaders. + + -- gregor herrmann Sat, 02 Feb 2008 19:12:16 +0100 + +libdevel-gdb-perl (2.01-1) unstable; urgency=low + + [ gregor herrmann ] + * New upstream release. + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza); Homepage field (source stanza). Removed: + Homepage pseudo-field (Description); XS-Vcs-Svn fields. + * Add gdb and libexpect-perl to Build-Depends-Indep (used in tests), + caught by Lucas' Build Daemon from Hell. Create patch stdin.patch (to + make tests work without a STDIN), add quilt framework. + * Set Standards-Version to 3.7.3 (no changes needed). + * Set debhelper compatibility level to 6. + * debian/rules: + - delete /usr/lib/perl5 only if it exists. + - move tests to build-stamp target + - remove OPTIMIZE, we don't compile anything + - move dh_clean before make realclean + - let install-stamp target depend on build-stamp + - remove call to dh_link + * debian/watch: use dist-based URL. + * debian/copyright: remove reference to LICENSE file. + + -- Roberto C. Sanchez Fri, 25 Jan 2008 15:48:28 -0500 + +libdevel-gdb-perl (2.0-1) unstable; urgency=low + + * Initial Release (Closes: #436800) + + -- Deepak Tripathi Sun, 12 Aug 2007 02:41:39 +0530