pkg-create-dbgsym-0.64/0000775000000000000000000000000012306367743011653 5ustar pkg-create-dbgsym-0.64/debian/0000775000000000000000000000000012306367744013076 5ustar pkg-create-dbgsym-0.64/debian/pkg-create-dbgsym.install0000664000000000000000000000010011426557573017765 0ustar dh_strip usr/bin pkg_create_dbgsym usr/bin pkg-create-dbgsym-0.64/debian/preinst0000664000000000000000000000047312306367664014512 0ustar #! /bin/sh set -e case "$1" in install|upgrade) dpkg-divert --add --rename --package pkg-create-dbgsym --divert /usr/bin/dh_strip.pkg-create-dbgsym /usr/bin/dh_strip > /dev/null ;; abort-upgrade) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac #DEBHELPER# exit 0 pkg-create-dbgsym-0.64/debian/pkg-create-dbgsym.lintian-overrides0000664000000000000000000000007311426557573021766 0ustar pkg-create-dbgsym: binary-without-manpage usr/bin/dh_strip pkg-create-dbgsym-0.64/debian/compat0000664000000000000000000000000211426557573014277 0ustar 7 pkg-create-dbgsym-0.64/debian/rules0000775000000000000000000000044311426557573014162 0ustar #!/usr/bin/make -f override_dh_auto_clean: if [ -d testsuite.tmp ] || [ -d tests/testsuite.tmp ]; then \ echo "testsuite.tmp or tests/testsuite.tmp still exists, please clean up and check test suite"; \ exit 1; \ fi dh_auto_clean override_dh_auto_test: tests/run %: dh $* pkg-create-dbgsym-0.64/debian/source/0000775000000000000000000000000012306367743014375 5ustar pkg-create-dbgsym-0.64/debian/source/format0000664000000000000000000000001511507362645015602 0ustar 3.0 (native) pkg-create-dbgsym-0.64/debian/control0000664000000000000000000000142612144437020014465 0ustar Source: pkg-create-dbgsym Section: devel Priority: extra # cdbs is used in the testsuite Build-Depends: debhelper (>= 7.0.50~), gdb, cdbs Maintainer: Martin Pitt Standards-Version: 3.9.4 Build-Conflicts: pkgbinarymangler (<< 66~) Package: pkg-create-dbgsym Architecture: all Depends: ${misc:Depends} Description: automatically build debug symbol ddeb packages pkg_create_dbgsym builds a debug symbol ddeb for a given package in a built source tree and adds it to debian/files. . This package diverts and wraps debhelper's dh_strip. It automatically calls pkg_create_dbgsym for all packages dh_strip is asked to act on. As a result, by merely installing this package on buildds, all packages will automatically get ddebs built. pkg-create-dbgsym-0.64/debian/postrm0000664000000000000000000000057512306367677014361 0ustar #! /bin/sh set -e case "$1" in remove|purge) # Remove our diversion dpkg-divert --remove --rename --package pkg-create-dbgsym --divert /usr/bin/dh_strip.pkg-create-dbgsym /usr/bin/dh_strip > /dev/null ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 0 esac #DEBHELPER# exit 0 pkg-create-dbgsym-0.64/debian/copyright0000664000000000000000000000203311426557573015032 0ustar pkg-create-dbgsym is written and maintained by Martin Pitt . The original source can always be found at: http://archive.ubuntu.com/ubuntu/pool/main/p/pkg-create-dbgsym/ Copyright (C) 2006 Canonical Ltd. 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 St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. pkg-create-dbgsym-0.64/debian/changelog0000664000000000000000000006451712306367734014764 0ustar pkg-create-dbgsym (0.64) trusty; urgency=medium * Read the substvars file when we generate DEBIAN/control. * Add a test for the description field. * Use `set -e' in maintainer scripts. -- Iain Lane Fri, 07 Mar 2014 16:12:12 +0000 pkg-create-dbgsym (0.63) trusty; urgency=medium * Add some debug messages, thanks to Simon McVittie! -- Martin Pitt Wed, 12 Feb 2014 11:41:16 +0100 pkg-create-dbgsym (0.62) saucy; urgency=low * If an ELF file has multiple build IDs, only consider the first one. (LP: #1189342) -- Martin Pitt Mon, 02 Sep 2013 10:37:05 +0200 pkg-create-dbgsym (0.61) saucy; urgency=low * Add tests/dhtest.dbg.empty with a transitional -dbg package that is empty, mimicking unity-2d-dbg and reproducing LP #1196995. * pkg_create_dbgsym: Heuristically ignore -dbg packages which have "transitional" in them, to get proper -dbgsym packages for those sources. (LP: #1196995) -- Martin Pitt Fri, 05 Jul 2013 11:13:20 +0200 pkg-create-dbgsym (0.60) saucy; urgency=low * Add dhtest.pydbg test case which builds a python module and corresponding python-dhtest-dbg. (Reproduces LP #1192111) * pkg_create_dbgsym: Ignore python* packages when searching for existing -dbg packages, as these are something completely different. We still want to build -dbgsym packages for the non-python bits. -- Martin Pitt Wed, 19 Jun 2013 09:25:48 +0200 pkg-create-dbgsym (0.59) saucy; urgency=low * Guard pkg_create_dbgsym debian/compat check, to avoid unsightly build log spew on packages that still don't have a compat file. -- Adam Conrad Tue, 11 Jun 2013 22:06:20 -0600 pkg-create-dbgsym (0.58) saucy; urgency=low * pkg_create_dbgsym: Remove leftover special-casing of python*-dbg packages; we now want these be empty as well. (LP: #1186617) -- Martin Pitt Mon, 03 Jun 2013 14:17:08 +0200 pkg-create-dbgsym (0.57) saucy; urgency=low * For sources that build one (or more) -dbg packages, create empty dbgsyms which depend on those, instead of duplicating the symbols and conflicting with -dbg. This should provide quite a lot of space saving. (LP: #1003234) * tests/run: Show name of current test, for easier visual separation of the output. * Bump Standards-Version to 3.9.4 (no changes necessary). -- Martin Pitt Tue, 14 May 2013 15:40:48 +0200 pkg-create-dbgsym (0.56) raring; urgency=low * Drop the -z9 from the dpkg-deb call, defaulting to -z6. -- Adam Conrad Tue, 04 Dec 2012 05:54:05 -0700 pkg-create-dbgsym (0.55) raring; urgency=low * Use -Zxz -z9 compression options. * Bump standards version to 3.9.3 (no changes). -- Dmitrijs Ledkovs Tue, 04 Dec 2012 12:15:40 +0000 pkg-create-dbgsym (0.54) quantal; urgency=low * pkg_create_dbgsym: Do not conflict with python3-*-dbg packages, to match existing handling of python-*-dbg. -- Colin Watson Fri, 28 Sep 2012 11:28:54 +0100 pkg-create-dbgsym (0.53) quantal; urgency=low * tests/: Add Enhances: field to dhtest test case, and ensure that ddebs do not have an Enhances: field. Reproduces LP #1049324. * pkg_create_dbgsym: Filter out Enhances: (LP: #1049324) * pkg_create_dbgsym: Call readelf with C locale to avoid output parsing errors due to translations. -- Martin Pitt Wed, 12 Sep 2012 09:56:16 +0200 pkg-create-dbgsym (0.52) quantal; urgency=low * pkg_create_dbgsym: Fix invocation of substr() to also work with mawk. -- Martin Pitt Fri, 24 Aug 2012 17:25:32 +0200 pkg-create-dbgsym (0.51) quantal; urgency=low * tests/run: Do not explicitly set the symbols-file path, but let gdb find it by itself using the debuglink or buildid. * Add tests/dhtest.dbg.buildid to check a dh compat 9 build using buildids for debug symbols. Reproduces LP #1040645. * pkg_create_dbgsym: When building with dh compat level >= 9 and the ELF has a buildid, use that for the debug symbols. (LP: #1040645) -- Martin Pitt Fri, 24 Aug 2012 15:30:05 +0200 pkg-create-dbgsym (0.50) precise; urgency=low * debian/control: Drop Vcs-Bzr:, we are using the standard ubuntu:pkg-create-dbgsym branch now. * debian/control: Bump Standards-Version to 3.9.2, no changes necessary. * tests: Verify that package and corresponding ddeb have an identical Multi-Arch field. -- Martin Pitt Fri, 25 Nov 2011 14:58:13 +0100 pkg-create-dbgsym (0.49) oneiric; urgency=low * tests/cdbstest: Rename binary packages to cdbstest++*. This reproduces the failure of not building packages with '+' in the name for source packages which call dh_strip with -p. * dh_strip, in_list(): Use grep instead of egrep, to also work for packages with '+' in the name. (LP: #784029) * tests/run: Latest debhelper leaves behind debian/debhelper.log after cleaning in compat level 1. Remove this manually to avoid an unexpected before/after build diff. -- Martin Pitt Fri, 20 May 2011 08:46:38 +0200 pkg-create-dbgsym (0.48) natty; urgency=low * dh_strip: Check host arch, not build arch for determining which binary packages to look at. Fixes cross building, thanks to Marcin Juszkiewicz for pointing this out. -- Martin Pitt Mon, 28 Mar 2011 15:36:20 +0200 pkg-create-dbgsym (0.47) natty; urgency=low * Add test for linux-any architecture. * Check for linux-any architecture when finding binary packages. LP: #725274. -- Chase Douglas Sun, 27 Feb 2011 13:04:23 +0100 pkg-create-dbgsym (0.46) natty; urgency=low * tests/dhtest.whitespace: Add a comment line in the middle of the Depends: field. This reproduces the failure in LP #669430. * tests/run: Check that ddebs have a correct Section: field. This catches above bug. * pkg_create_dbgsym: Filter out comment lines from debian/control before processing. (LP: #669430) * Use 3.0 (native) source format. * debian/control: Bump Standards-Version to 3.9.1. -- Martin Pitt Fri, 31 Dec 2010 15:20:49 +0100 pkg-create-dbgsym (0.45) maverick; urgency=low [ Loïc Minier ] * dh_strip: replace grep + shell + sed with just sed. [ Steve Langasek ] * pkg-create-dbgsym: when cross-building as identified by dpkg-architecture, use the cross binutils instead of the native ones to ensure the tools understand how to act on the binaries. LP: #626468. -- Steve Langasek Wed, 08 Sep 2010 05:57:03 +0000 pkg-create-dbgsym (0.44) maverick; urgency=low * dh_strip: debian/control fields aren't required to have a space after the field name; fix the parsing code to still be able to detect package/architecture fields correctly in this case. Thanks to Wookey for the initial patch. LP: #627122. * tests/dhtest.whitespace: extend test case with more interesting whitespace usage for Package/Architecture fields, to match. -- Steve Langasek Thu, 02 Sep 2010 16:01:02 +0000 pkg-create-dbgsym (0.43) lucid-proposed; urgency=low * pkg_create_dbgsym: Do not check debian/files for whether we already processed a .ddeb, since Launchpad Soyuz disables dpkg-distaddfile for ddebs still. Instead, skip the run if we do not find any unstripped binary in the current package. (LP: #562418) -- Martin Pitt Mon, 26 Apr 2010 14:00:38 +0200 pkg-create-dbgsym (0.42) lucid; urgency=low * Add tests/dhtest.doublestrip/: Call dh_strip twice, to check whether this keeps the debug symbols intact. This reproduces LP #562418, where debug symbols and CRC checksums were damaged due to double-stripping. * pkg_create_dbgsym: Do nothing if we already have built a .ddeb during this package build, i. e. it is in debian/files already. This fixes overwriting good .ddebs and debug links in case dh_strip gets called twice. Thanks to Tormod Volden for investigating this! (LP: #562418) * debian/control: Bump Standards-Version to 3.8.4 (no changes necessary). -- Martin Pitt Thu, 22 Apr 2010 10:36:38 +0200 pkg-create-dbgsym (0.41) lucid; urgency=low * tests/dhtest.dbg2: Add a new package dhtest2-extra which we exclude from dh_strip with -N. This causes dhtest2-dbgsym to not be generated and thus reproduces LP #566602. * dh_strip: Fix the "is this package in this list" grep to only match on whitespace separation, not on e. g. dashes (which grep -w does). This caused some ddebs like "libglib2.0-0-dbgsym" not to be built if dh_strip was called with ignoring a similar package name (-Nlibglib2.0-0-refdbg). To make this more robust, define a new shell function in_list() for this and just implement it once. (LP: #566602) -- Martin Pitt Tue, 20 Apr 2010 11:01:37 +0200 pkg-create-dbgsym (0.40) lucid; urgency=low * Strip -O from options passed from dh not only for comparison but also for processing them. (LP: #520767) -- Michael Bienia Thu, 08 Apr 2010 10:35:01 +0200 pkg-create-dbgsym (0.39) lucid; urgency=low * Strip -O from options passed from dh (LP: #520767). -- Michael Bienia Mon, 15 Feb 2010 12:22:05 +0100 pkg-create-dbgsym (0.38) lucid; urgency=low * tests/run: set the new var PKG_IGNORE_CURRENTLY_BUILDING=1 instead of NO_PKG_MANGLE=1 since pkg-create-dbgsym also disables itself when setting NO_PKG_MANGLE=1 and this breaks the testsuite; build-conflict with pkgbinarymangler << 66~. Also, unset NO_PKG_MANGLE as it's set by buildds and will cause the same issue. * dh_strip: if PKG_IGNORE_CURRENTLY_BUILDING is set to 1 don't read /CurrentlyBuilding to decided whether or not to build -dbgsym packages but build them unconditionally. * Build-depend on gdb for the testsuite and on cdbs for the cdbstest package. -- Loïc Minier Sat, 16 Jan 2010 18:34:20 +0100 pkg-create-dbgsym (0.37) lucid; urgency=low * tests/run: set NO_PKG_MANGLE=1 in the env when calling dpkg-buildpackage to build test packages as to avoid pkgbinarymangler's pkgsanitychecks to fail the build when it notices another package than the /CurrentlyBuilding one is being built. Ideally, we'd also hook into dpkg-buildpackage or some other place to detect what is being built. -- Loïc Minier Fri, 15 Jan 2010 01:44:56 +0100 pkg-create-dbgsym (0.36) lucid; urgency=low * Drop XB-Python-Version from the headers we copy over from debian/control for -dbgsym packages: it's usually set to ${python:Versions} -- but the -dbgsym package has no such substvar -- and the -dbgsym isn't a python- lib anyway. * Add ${misc:Depends}. * Bump debhelper build-dep to >= 7 for dh_prep. * Rewrite rules using "dh" since we need debhelper 7 anyway. * Also test for presence of tests/testsuite.tmp to fail clean:. * Adapt dh_strip to test whether it's looping trying to run itself and also to try running /usr/bin/dh_strip in the case where pkg-create-dbgsym is not installed in the build environment (but debhelper is); this allows running the testsuite during build, so do that. * Bump debhelper build-dep to >= 7.0.50~ for overrides. -- Loïc Minier Thu, 14 Jan 2010 18:09:17 +0100 pkg-create-dbgsym (0.35) lucid; urgency=low * Add -k as an alias option name for --keep-debug. Thanks to Michael Bienia! -- Martin Pitt Mon, 30 Nov 2009 22:15:43 +0100 pkg-create-dbgsym (0.34) lucid; urgency=low * Also skip over XB-Python-Version header when generating the new control file; this avoids the "unknown substitution variable ${python:Versions}" warning when generating the -dbgsym packages; thanks Michael Bienia. -- Loïc Minier Sat, 28 Nov 2009 18:10:52 +0100 pkg-create-dbgsym (0.33) lucid; urgency=low * Invert the logic which dh_strip used to pass the "don't add ddebs to .changes" down to pkg_create_dbgsym. This prevents packages which don't use debhelper, but call pkg_create_dbgsym directly from suddenly adding ddebs to .changes (which makes Soyuz unhappy). -- Martin Pitt Wed, 18 Nov 2009 19:21:54 -0600 pkg-create-dbgsym (0.32) lucid; urgency=low [ Loïc Minier ] * Fix Vcs-Bzr, it's /ubuntu, not /trunk [ Martin Pitt ] * Add Source: field to ddebs whose original name had the same name as the source. Soyuz does not like those. Thanks to William Grant for the patch! (LP: #429782) * Add ddebs to .changes file now, since Soyuz will support that soon. Check /CurrentlyBuilding for the Build-Debug-Symbols flag, and fall back to the old logic if it does not exist. Thanks to William Grant! (LP: #429796, #429793) -- Martin Pitt Sun, 15 Nov 2009 06:36:58 -0600 pkg-create-dbgsym (0.31) karmic; urgency=low [ Loïc Minier ] * Add lintian override for lack of dh_strip manpage (dh_strip is diverted); bump debhelper build-dep to >= 6.0.7~ for dh_lintian. * Move debhelper to build-deps instead of build-deps-indep for clean:. * Bump debhelper compat level to 5. * Bump up Standards-Version to 3.8.3; no change needed. * Use dh_prep instead of dh_clean -k; update debhelper build-dep to >= 6.0.13~. * Pass -i to dh_* in binary-indep. * Use dh_install to install the binaries, dh_fixperms will set them +x. [ Martin Pitt ] * dhtest.archspecific: Add a package with "Architecture: kfreebsd-i386 kfreebsd-amd64". This reproduces the current glib2.0 FTBFS on i386/amd64. * dh_clean: Fix grepping of Architecture field to only match space separated words, instead of using -w; the latter matches e. g. kfreebsd-i386 on i386. -- Martin Pitt Thu, 24 Sep 2009 20:09:36 +0200 pkg-create-dbgsym (0.30) karmic; urgency=low * Add Vcs-Bzr in control. * Set NO_PKG_MANGLE when building the -dbgsym .debs as running pkgstriptranslations etc. when -dbgsyms are created results in nasty side effects; use dpkg-deb --build instead of dpkg --build for clarity. * Add README mentionning how to run the tests before upload. -- Loïc Minier Tue, 15 Sep 2009 12:54:24 +0200 pkg-create-dbgsym (0.29) karmic; urgency=low * Add tests/dhtest.whitespace: Test odd whitespace in debian/control: - Using tabs instead of spaces for multi-line dependency fields. This replicates the mplayer issue (LP #384597). - Putting Description: in the middle and ending the package record with a dependency field. This replicates the new dictd FTBFS. * tests/run: Ensure that all other dependency fields get stripped. * pkg_create_dbgsym: Unbreak fix from 0.28: Only look ahead for space and tab, not for all whitespace; \s also catches \n. This caused the dictd FTBFS. * Bump Standards-Version to 3.8.1 (no changes necessary). -- Martin Pitt Thu, 11 Jun 2009 11:13:07 +0200 pkg-create-dbgsym (0.28) karmic; urgency=low * Fix multi-line depends parsing if one field evaluates to be empty. Thanks to Michael Biena! (LP: #384597) -- Martin Pitt Mon, 08 Jun 2009 07:57:42 +0200 pkg-create-dbgsym (0.27) karmic; urgency=low * Make dh_strip actually abort correctly if debhelper isn't installed. -- Adam Conrad Tue, 05 May 2009 16:27:55 -0600 pkg-create-dbgsym (0.26) intrepid; urgency=low * dh_strip: Recognize "export DH_COMPAT := x" syntax, too. Thanks, Michael Biena! -- Martin Pitt Tue, 03 Jun 2008 12:41:58 +0200 pkg-create-dbgsym (0.25) hardy; urgency=low * tests/dhtest.nostrip: Add another test case for dh_strip blacklisting with a space between -X and the argument. This reproduces the followup problem in LP #180364. * dh_strip: Fix option parsing to get along with spaces between -X and the argument. (LP: #180364) -- Martin Pitt Tue, 26 Feb 2008 16:05:28 +0100 pkg-create-dbgsym (0.24) hardy; urgency=low * Add tests/dhtest.nostrip: Ignore crash2 for dh_strip, and add an assertion that the file isn't touched by dh_strip. This reproduces LP #180364. * Parse dh_strip's -X options in the wrapper and pass them to pkg_create_dbgsym. Do not touch any files which match these patterns. This avoids adding GNU debuglinks to ELF binaries which must not be touched at all, like Ocaml bytecode. (LP: #180364) * tests/run: Do not expect a dbgsym package for test .debs with 'nostrip' in the name (as used by the tests/dhtest.nostrip test case). -- Martin Pitt Thu, 21 Feb 2008 17:55:07 +0100 pkg-create-dbgsym (0.23) hardy; urgency=low * Also disable pkg-create-dbgsym if Archive Purpose is PPA. -- Adam Conrad Tue, 18 Dec 2007 16:01:24 -0700 pkg-create-dbgsym (0.22) hardy; urgency=low * Disable symbol extraction if *-autotest is found in Suite in the buildd's /CurrentlyBuilding file; requires a modified sbuild. -- Adam Conrad Fri, 14 Dec 2007 15:18:37 -0700 pkg-create-dbgsym (0.21) hardy; urgency=low * Add tests/dhtest.compat1override/: Declare debian/compat '4', but override it in debian/rules with DH_COMPAT=1. Reproduces the FTBFS of dvi2tty, flexml, and gtk-engines-mono. * dh_strip: Fix debhelper compatibility level detection so that DH_COMPAT overrides debian/compat. (LP: #173631) -- Martin Pitt Tue, 04 Dec 2007 11:58:19 +0100 pkg-create-dbgsym (0.20) feisty; urgency=low * Move test suite into tests/ to unclutter source root directory. * Add tests/dhtest.versionoverride: Test case for overriding the version of a particular binary. This replicates LP #92747. However, since this is unfixable without major changes (dh_strip is called before dh_gencontrol usually), we do not run the test case for now. * pkg_create_dbgsym: Do not generate conflicts to python dbg packages. (LP: #88695) -- Martin Pitt Tue, 3 Apr 2007 10:58:17 +0200 pkg-create-dbgsym (0.19) feisty; urgency=low * dh_strip: Explicitly unset $pkg before parsing debian/control. Packages with a debian/rules that happen to set this variable FTBFS otherwise (like sim). -- Martin Pitt Fri, 2 Feb 2007 13:07:34 +0100 pkg-create-dbgsym (0.18) feisty; urgency=low * testsuite: Check that all ddebs conflict to all built -dbg packages. * pkg_create_dbgsym: Determine set of -dbg packages and add Conflicts: to them. Closes: LP#68268 -- Martin Pitt Fri, 15 Dec 2006 11:15:33 +0100 pkg-create-dbgsym (0.17) feisty; urgency=low * Revert Debian #386246 workaround of 0.16 again, we should now fix the actually broken packages. -- Martin Pitt Thu, 14 Dec 2006 08:35:25 +0100 pkg-create-dbgsym (0.16) edgy; urgency=low * pkg_create_dbgsym: If package build directory does not exist, only whine and exit successfully instead of failing. This makes us bug-compatible to Debian #386246, right before Edgy release it is impractical to fix all broken packages for that. This will be reverted early in Edgy+1. -- Martin Pitt Thu, 12 Oct 2006 14:01:58 +0200 pkg-create-dbgsym (0.15) edgy; urgency=low * Fix (harmless) find error message on arch-specific packages without any ELF files at all. * Add dhtest.dbg3: Call dh_strip with --dbg-package dhtest (without the '=' in between, as prescribed by the manpage). This reproduces the current libtasn-1-3 FTBFS. * dh_strip: Relax --dbg-package parameter parsing a bit to accept '--dbg-package pkgname' syntax. -- Martin Pitt Thu, 12 Oct 2006 11:55:35 +0200 pkg-create-dbgsym (0.14) edgy; urgency=low * Use more elaborate test crash programs with a three-function deep stack, so that gdb's current 'Could not find the frame base' failure in the topmost function does not completely break the test suite. * Add dhtest.dbg2 test case: Use dh_strip --keep-debug and manually move around the debug symbols to dhtest1-dbg. This replicates the current FTBFS of opal. * dh_strip: Handle --keep-debug option gracefully to err on the safe side. Fixes current opal FTBFS. -- Martin Pitt Thu, 21 Sep 2006 20:51:28 +0200 pkg-create-dbgsym (0.13) edgy; urgency=low * *test/crash2.c: Test for isinf() and explicitly raise a SIGFPE, to get a crash on powerpc, too. * dhtest.archspecific: Add powerpc package so that the package builds at all on powerpc. * cdbstest/debian/rules: Explicitly set CFLAGS to -O0 to avoid optimizing out function arguments and thus failing the test suite. * dhtest.noargs/debian/control: Add Pre-Depends field and multiline dependency field to reproduce current dpkg FTBFS. * pkg_create_dbgsym: - Properly handle continuation lines in Dependency fields. - Also filter out Pre-Depends:. -- Martin Pitt Sun, 20 Aug 2006 17:19:46 +0200 pkg-create-dbgsym (0.12) edgy; urgency=low * Add dhtest.tmpdirarg/: Test suite check for a source package which uses the -P/--tmpdir= debhelper option. This recreates the current cdrtools FTBFS. * dh_strip: Respect -P/--tmpdir arguments. * pkg_create_dbgsym: Do not assume that the temporary package build directory is directly below debian/. -- Martin Pitt Thu, 17 Aug 2006 12:47:13 +0200 pkg-create-dbgsym (0.11) edgy; urgency=low * dhtest/debian/control: Add Suggests: to ${bar}-core to recreate current FTBFS of caudium. * pkg-create-dbgsym: Filter out dependency fields before passing them to dpkg-gencontrol. Doing it afterwards is too late since dpkg-gencontrol does not have variable substitutions at that point, which can mess up the dependencies to become unparseable. -- Martin Pitt Wed, 16 Aug 2006 09:40:57 +0200 pkg-create-dbgsym (0.10) edgy; urgency=low * Add dhtest.archspecific/: Test suite check for a source package with architecture specific binaries. * dh_strip: Evaluate DEB_BUILD_ARCH and ignore architecture specific packages which are not built on the current platform. * testsuite: If we encounter a -dbg package, check that it produces a good backtrace with the corresponding deb, in order to verify that the -dbgsym package did not break the debug link. -- Martin Pitt Tue, 15 Aug 2006 18:51:35 +0200 pkg-create-dbgsym (0.9) edgy; urgency=low * Ignore *.o files, too. Through some mysterious chain of events, adding GNU debuglinks to libc6-dev's /usr/lib/*crt*.o files causes unwanted debuglinks in gcc-produced binaries. This breaks dh_strip for all source packages which build a -dbg binary. Closes: LP#55880 -- Martin Pitt Thu, 10 Aug 2006 19:37:05 +0200 pkg-create-dbgsym (0.8) edgy; urgency=low * Remove the Essential: flag for -dbgsym package control records and fix Priority: to extra. * dhtest.noargs/Makefile: Add GNU debuglink to generated crash file; it's not entirely unreasonable for upstream or package build systems to do this without using dh_strip --dbg-package. * pkg_create_dbgsym: Remove GNU debuglink before adding our own, to not break if the binary already has its own. Remove the 'more than one hardlink' special case again, since it is now obsolete. -- Martin Pitt Thu, 10 Aug 2006 16:07:32 +0200 pkg-create-dbgsym (0.7) edgy; urgency=low * dh_strip: Call the real dh_strip if NO_PKG_MANGLE is given. -- Martin Pitt Mon, 7 Aug 2006 10:34:55 +0200 pkg-create-dbgsym (0.6) edgy; urgency=low * dhtest/debian/control: Add Replaces: and Breaks: fields with substitution variable as well. * Filter out Replaces: from original package's control record. * debian/copyright: Update FSF address. -- Martin Pitt Tue, 1 Aug 2006 11:03:03 +0200 pkg-create-dbgsym (0.5) edgy; urgency=low * dhtest: Add Depends/Recommends/Suggests/Conflicts with a substitution variable, to recreate the current openoffice.org FTBFS. * Filter out Recommends:, Suggests:, Conflicts:, Provides:, and Breaks: from original package's control record, since they are not necessary and just potentially break the build. -- Martin Pitt Mon, 31 Jul 2006 22:01:34 +0200 pkg-create-dbgsym (0.4) edgy; urgency=low * Do not add .ddebs to the .changes file until Soyuz is able to process them. With that, we can already install this package into the buildd chroots to fix remaining FTBFSes induced by this package, and it even opens up the possibility to put the resulting .ddebs to some inofficial place. -- Martin Pitt Mon, 31 Jul 2006 11:22:06 +0200 pkg-create-dbgsym (0.3) edgy; urgency=low * debian/copyright: Fix copy & paste leftovers. * Add dhtest.compatenvvar/: Test suite check for debhelper packages using $DH_COMPAT instead of debian/compat. * Respect DH_COMPAT setting in debian/rules (fixes build of unifdef). * dhtest.compatenvvar/: Install a hardlink to an existing binary to check whether this is handled correctly (since objcopy --add-gnu-debuglink is not idempotent). * Ignore objcopy --add-gnu-debuglink failures if target file's hard link count is not 1 (fixes build of sudo). -- Martin Pitt Tue, 18 Jul 2006 15:30:18 +0200 pkg-create-dbgsym (0.2) edgy; urgency=low * Add debug output if objcopy --only-keep-debug or --add-gnu-debuglink fails. * Do not generate debug symbols for *.a (static libraries), since they sometimes break objcopy and are not generally useful. -- Martin Pitt Thu, 6 Jul 2006 13:47:20 +0200 pkg-create-dbgsym (0.1) edgy; urgency=low * Initial release: - pkg_create_dbgsym: build a debug symbol ddeb for a given package in a built source tree - dh_strip: Divert and wrap debhelper's dh_strip which automatically calls pkg_create_dbgsym for all packages dh_strip is asked to act on. - Implements distro side of https://wiki.ubuntu.com/AptElfDebugSymbols. -- Martin Pitt Fri, 23 Jun 2006 12:46:24 +0200 pkg-create-dbgsym-0.64/dh_strip0000775000000000000000000001415212276647075013425 0ustar #!/bin/sh -e # wrapper around dh_strip that generates packages with external debug symbols # # Author: Martin Pitt # (C) 2006 Canonical Ltd. # # # 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 St, Fifth Floor, Boston, MA 02110-1301 USA DEBUG=1 if [ -x /usr/bin/dh_strip.pkg-create-dbgsym ]; then REAL_DHSTRIP=/usr/bin/dh_strip.pkg-create-dbgsym elif [ "$0" != /usr/bin/dh_strip ]; then # called as "dh_strip" somewhere before /usr/bin in the PATH, e.g. from the # testsuite during package build REAL_DHSTRIP=/usr/bin/dh_strip if ! [ -x "$REAL_DHSTRIP" ]; then echo "FATAL: Can't run /usr/bin/dh_strip; is debhelper installed?" >&2 exit 1 fi else echo "FATAL: Can't find the diverted original dh_strip and /usr/bin/dh_strip loops back to myself!" >&2 exit 1 fi HOSTARCH=`dpkg-architecture -qDEB_HOST_ARCH` # print debug message dbg() { [ -n "$DEBUG" ] || return 0 echo "dh_strip debug symbol extraction: $@" } # return 0 if $1 is in the string list $2, otherwise return 1 in_list() { echo "$2" | grep -q "\(^\|[[:space:]]\)$1\(\$\|[[:space:]]\)" } if [ "$PKG_IGNORE_CURRENTLY_BUILDING" = 1 ]; then addtofiles="-a" dbg "enabling -a due to PKG_IGNORE_CURRENTLY_BUILDING = 1" elif grep -qs '^Build-Debug-Symbols: yes$' /CurrentlyBuilding; then addtofiles="-a" dbg "enabling -a due to Build-Debug-Symbols: yes in /CurrentlyBuilding" else # If sbuild hasn't explicitly told us to build debug symbols, we will # avoid doing so if this is a rebuild or PPA build. if grep -qs '^Suite: [a-z]*-autotest' /CurrentlyBuilding; then NO_PKG_MANGLE=1 dbg "disabling for archive rebuild test" fi if grep -qs '^Purpose: PPA' /CurrentlyBuilding; then NO_PKG_MANGLE=1 dbg "disabling for PPA build" fi # If /CurrentlyBuilding exists but Build-Debug-Symbols isn't set, # we don't know if Soyuz can handle ddebs yet. We don't want to # upload ddebs unless we really know that Soyuz can handle them, so # we tell pkg_create_dbgsym to avoid adding them to the changes # file. if [ -f /CurrentlyBuilding ]; then dbg "not enabling -a because /CurrentlyBuilding exists" else addtofiles="-a" dbg "enabling -a because /CurrentlyBuilding doesn't exist" fi fi if [ -n "$NO_PKG_MANGLE" ]; then dbg "not doing anything since NO_PKG_MANGLE is given" exec $REAL_DHSTRIP "$@" exit 0 fi # get set of all architecture dependent packages from debian/control packages=$( unset pkg sed -n 's/[[:space:]]*$//; s/^\(Package\|Architecture\):[[:space:]]*\(.\+\)/\1 \2/p' debian/control | while read key val; do if [ "$key" = Package ]; then [ -z "$pkg" ] || { echo "Error: Package: and Architecture: do not alternate in debian/control" >&2 exit 1 } pkg="$val" fi if [ "$key" = Architecture ]; then [ -n "$pkg" ] || { echo "Error: Package: and Architecture: do not alternate in debian/control" >&2 exit 1 } if [ "$val" = any ] || [ "$val" = linux-any ] || echo "$val" | grep -qE "([[:space:]]|^)$HOSTARCH([[:space:]]|\$)"; then printf "$pkg " fi unset pkg fi done ) dbg "all non-arch-all packages for this build platform $HOSTARCH: $packages" # parse command line to determine set of packages to act on for p in $DH_OPTIONS $@; do if [ -n "$next_arg_is_xopt" ]; then xopts="$xopts -X$p" unset next_arg_is_xopt continue fi p=${p#-O} case "$p" in -i|--indep) unset actpkgs optsel=1 ;; -a|--arch|-s|--same-arch) actpkgs="$packages" optsel=1 ;; -p*|--package=*) pkg=${p#--package=} pkg=${pkg#-p} if ! in_list "$pkg" "$actpkgs" && in_list "$pkg" "$packages"; then actpkgs="$pkg $actpkgs" fi optsel=1 ;; -N*|--no-package=*) pkg=${p#--no-package=} pkg=${pkg#-N} if ! in_list "$pkg" "$ignorepkgs"; then ignorepkgs="$pkg $ignorepkgs" fi ;; --dbg-package*) dbg "not adding gnu debuglinks since --dbg-package is given" nodebuglink=1 ;; -k|--keep-debug) dbg "not adding gnu debuglinks since --keep-debug is given" nodebuglink=1 ;; -P*|--tmpdir=*) pkgdirarg=${p#--tmpdir=} pkgdirarg=${pkgdirarg#-P} dbg "-P/--tmpdir option: setting temporary package dir to $pkgdirarg" ;; -X) next_arg_is_xopt=1 ;; -X*) xopts="$xopts $p" ;; esac done [ -n "$optsel" ] || actpkgs="$packages" dbg "packages to act on: $actpkgs" dbg "ignored packages: $ignorepkgs" # check for debhelper compat level 1 dhcompat1=1 if [ -e debian/compat ]; then if [ "`cat debian/compat`" != 1 ]; then unset dhcompat1 fi fi if grep -q '^[[:space:]]*\(export[[:space:]]*\)\?DH_COMPAT[[:space:]]*:\?=[[:space:]]*[2-9]\>' debian/rules; then unset dhcompat1 elif grep -q '^[[:space:]]*\(export[[:space:]]*\)\?DH_COMPAT[[:space:]]*:\?=[[:space:]]*1\>' debian/rules; then dhcompat1=1 fi if [ -n "$dhcompat1" ]; then first_control_pkg="`grep -m 1 ^Package debian/control | cut -f2- -d\ `" dbg "using obsolete debhelper compat mode 1" fi # process all packages for p in $actpkgs; do if in_list "$p" "$ignorepkgs" || echo $p | grep -q -- '-dbg$' ; then continue fi if [ -n "$pkgdirarg" ]; then pkgdir="$pkgdirarg" elif [ -n "$dhcompat1" -a $p = "$first_control_pkg" ]; then pkgdir=debian/tmp else pkgdir=debian/$p fi pkg_create_dbgsym $addtofiles $xopts $p $pkgdir "$nodebuglink" done exec $REAL_DHSTRIP "$@" pkg-create-dbgsym-0.64/pkg_create_dbgsym0000775000000000000000000001522012306346546015250 0ustar #!/bin/sh -e # generate debug symbol package for a given binary package within a built # debian source tree. # # Author: Martin Pitt # (C) 2006 Canonical Ltd. # # # 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 St, Fifth Floor, Boston, MA 02110-1301 USA # evaluate options blacklist="" add_to_files=0 DEB_HOST_GNU_TYPE=$(dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE=$(dpkg-architecture -qDEB_BUILD_GNU_TYPE) if [ "$DEB_HOST_GNU_TYPE" = "$DEB_BUILD_GNU_TYPE" ]; then READELF=readelf OBJCOPY=objcopy else READELF=${DEB_HOST_GNU_TYPE}-readelf OBJCOPY=${DEB_HOST_GNU_TYPE}-objcopy fi dbg() { echo "$0: $*" } for p; do case $p in -X*) blacklist=`/bin/echo -e "${p#-X}\n$blacklist"` shift ;; -a) add_to_files=1 shift ;; *) break ;; esac done pkgname="$1" pkgpath="$2" nodebuglink="$3" [ -n "$pkgpath" ] || pkgpath="debian/$pkgname" [ -d "$pkgpath" ] || { if [ -z "$pkgname" ]; then echo "Usage: $0 [-Xitem] [-n] [] [nodebuglink]" else echo "Directory $pkgpath does not exist, aborting" >&2 fi exit 1 } # determine set of -dbg packages; if there are any, we just build dummy dbgsyms # that depend on -dbg, otherwise we depend on the actual package; but ignore # python-*-dbg, these are quite different dbgdepends= for p in `grep '^Package:.*-dbg' debian/control | cut -f 2 -d\ `; do if [ "$p" != "${p#python}" ]; then dbg "ignoring python* package: $p" continue fi # heuristic to avoid considering transitional -dbg packages which are going # to be empty if [ -n "`perl -n000 -e 'print if m/Package: $p/ && m/transitional/' debian/control`" ]; then dbg "ignoring transitional package $p" continue fi [ -z "$dbgdepends" ] || dbgdepends="$dbgdepends, " dbgdepends="$dbgdepends$p (= \1)" done if [ -n "$dbgdepends" ]; then depends="$dbgdepends" else depends="$pkgname (= \1)" fi p=`readlink -f "$pkgpath"` # original package path dp="debian/${pkgname}-dbgsym" # debug package path dp=`readlink -f "$dp"` # debug package path if [ -e "debian/compat" ] && [ "`cat debian/compat`" -ge 9 ]; then use_buildid="1" echo "Using buildid for compat level >= 9" fi # find all ELF files and extract their debug symbols; also add debug links # to original files; if we do not find any unstripped files, then a likely # cause is that we already ran this program on the current package, in which # case we must not run it again to not destroy debug link CRC sums and produce # empty ddebs unset any_unstripped origdir=`pwd` cd $p find -type f | ( while read f; do # ignore static libraries if echo "$f" | grep -q '\.[ao]$'; then continue; fi # ignore non-ELF files $READELF -h "$f" > /dev/null 2>&1 || continue # check blacklist if [ -n "$blacklist" ]; then if echo "$f" | fgrep -q "$blacklist"; then continue; fi fi if ! $READELF -S "$f" | grep -q ' .debug_'; then # no debug information continue fi any_unstripped=1 if [ -n "$dbgdepends" ]; then echo "we have -dbg package(s), not installing anything into ddeb" >&2 exit 0 fi # use buildid for compat >= 9, and when present dest=`LANGUAGE= LC_ALL=C readelf -n "$f" | awk '/Build.ID:/ { print ".build-id/" substr($3, 1,2) "/" substr($3,3) ".debug" }' | head -n1` if [ -z "$use_buildid" -o -z "$dest" ]; then #echo "using debuglink for $f: $dest" dest="$f" fi mkdir -p $dp/usr/lib/debug/`dirname "$dest"` $OBJCOPY --only-keep-debug "$f" "$dp/usr/lib/debug/$dest" || { echo "objcopy --only-keep-debug failed on `readlink -f $f`" >&2 exit 1 } [ -n "$nodebuglink" ] || $OBJCOPY -R .gnu_debuglink --add-gnu-debuglink="$dp/usr/lib/debug/$dest" "$f" || { echo "objcopy --add-gnu-debuglink failed on `readlink -f $f`" >&2 exit 1 } done if [ -z "$any_unstripped" ]; then echo "$pkgname has no unstripped objects, ignoring" >&2 rm -rf $dp exit 0 fi ) cd $origdir if [ ! -d "$dp" -o -z "`find $dp -type f`" ] && [ -z "$dbgdepends" ]; then dbg "nothing in $dp and no dbgdepends, ignoring" rm -rf $dp exit 0 fi mkdir -p $dp/DEBIAN # generate a control file for current package (since it is usually not yet # existing) and adapt it to be suitable for the dbgsym package perl -p000 -e 's/^#.*?\n//msg; s/^(?:Pre-Depends|Depends|Recommends|Suggests|Conflicts|Provides|Replaces|Breaks|Enhances|Essential):.*?\n(?![ \t])//msg' debian/control | dpkg-gencontrol -c- -fdhstrip-dummy-debian-files -p$pkgname -is -ip -Pdebian/$pkgname-dbgsym -Tdebian/$pkgname.substvars -O | sed "s/^Priority:.*$/Priority: extra/; s/^Version: \(.*\)$/&\nDepends: $depends/; s/^Package:.*$/&-dbgsym/; s/^Description:.*$/Description: debug symbols for package $pkgname/" \ > $dp/DEBIAN/control rm -f dhstrip-dummy-debian-files # binaries named the same as the source will lack a Source field. # since we are renaming binaries, we might need to add one. if [ -z "`grep ^Source: $dp/DEBIAN/control`" ]; then sed -i "s/^Package:.*$/&\nSource: $pkgname/" $dp/DEBIAN/control fi # extract package name, version, architecture ddebname=${pkgname}-dbgsym ddebversion=`grep '^Version:' $dp/DEBIAN/control | cut -f2- -d\ ` ddebversion=${ddebversion#*:} # strip off epoch ddebarch=`grep '^Architecture:' $dp/DEBIAN/control | cut -f2- -d\ ` ddebsection=`grep '^Section:' $dp/DEBIAN/control | cut -f2- -d\ ` ddebpriority=`grep '^Priority:' $dp/DEBIAN/control | cut -f2- -d\ ` [ -n "$ddebsection" -a -n "$ddebpriority" ] || { echo "Error: parsed ddeb section or priority is empty" >&2 exit 1 } ddeb="${ddebname}_${ddebversion}_${ddebarch}.ddeb" # build .ddeb and add it to debian/files dbg "building ddeb package" NO_PKG_MANGLE=1 dpkg-deb -Zxz --build $dp ../$ddeb if [ "$add_to_files" = "1" ]; then dbg "dpkg-distaddfile $ddeb $ddebsection $ddebpriority" dpkg-distaddfile "$ddeb" "$ddebsection" "$ddebpriority" fi # clean up, since this package does not appear in debian/control rm -rf $dp pkg-create-dbgsym-0.64/tests/0000775000000000000000000000000012306367743013015 5ustar pkg-create-dbgsym-0.64/tests/dhtest.samename/0000775000000000000000000000000012306367743016075 5ustar pkg-create-dbgsym-0.64/tests/dhtest.samename/Makefile0000664000000000000000000000036512015654756017541 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.samename/crash.c0000664000000000000000000000063112015654756017341 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.samename/debian/0000775000000000000000000000000012306367743017317 5ustar pkg-create-dbgsym-0.64/tests/dhtest.samename/debian/compat0000664000000000000000000000000212015654756020515 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.samename/debian/rules0000775000000000000000000000305512015654756020402 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.samename/debian/dhtest1.install0000664000000000000000000000001712015654756022261 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.samename/debian/control0000664000000000000000000000130712015654756020723 0ustar Source: dhtest.samename Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest Architecture: any Depends: ${shlibs:Depends}, coreutils (>> ${foo}) Recommends: dhtest.samename (>> ${foo}) Suggests: dhtestall (>= ${foo}), ${bar}-core Conflicts: dhtestall (<< ${foo}) Replaces: dhtestall (<< ${foo}) Breaks: dhtestall (<< ${foo}) Description: crash with a SIGSEGV Test package Package: dhtest.samename Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest.samename/debian/copyright0000664000000000000000000000000412015654756021244 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.samename/debian/changelog0000664000000000000000000000021412015654756021166 0ustar dhtest.samename (1:2.3-1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.samename/debian/dhtest.samename.install0000664000000000000000000000002012015654756023757 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.samename/crash2.c0000664000000000000000000000074012015654756017424 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.archspecific/0000775000000000000000000000000012306367743016732 5ustar pkg-create-dbgsym-0.64/tests/dhtest.archspecific/Makefile0000664000000000000000000000036512015654756020376 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.archspecific/crash.c0000664000000000000000000000063112015654756020176 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/0000775000000000000000000000000012306367743020154 5ustar pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/dhtest-linux-any.install0000664000000000000000000000001712015654756024757 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/compat0000664000000000000000000000000212015654756021352 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/rules0000775000000000000000000000302712015654756021236 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/dhtest-ppc.install0000664000000000000000000000001712015654756023615 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/control0000664000000000000000000000142612015654756021562 0ustar Source: dhtest.archspecific Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest-i386 Architecture: i386 Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest64 Architecture: amd64 sparc64 Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtest-ppc Architecture: powerpc Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest-bsd Architecture: kfreebsd-i386 kfreebsd-amd64 Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest-linux-any Architecture: linux-any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/dhtest-i386.install0000664000000000000000000000001712015654756023524 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/copyright0000664000000000000000000000000412015654756022101 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/changelog0000664000000000000000000000021212015654756022021 0ustar dhtest.archspecific (1) foo; urgency=low * Initial release. -- Martin Pitt Tue, 15 Aug 2006 17:14:42 +0200 pkg-create-dbgsym-0.64/tests/dhtest.archspecific/debian/dhtest64.install0000664000000000000000000000002012015654756023201 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.archspecific/crash2.c0000664000000000000000000000074012015654756020261 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/0000775000000000000000000000000012306367743016200 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/Makefile0000664000000000000000000000036512165470215017634 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/crash.c0000664000000000000000000000063112165470215017434 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/debian/0000775000000000000000000000000012306367743017422 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/debian/compat0000664000000000000000000000000212165470215020610 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/debian/rules0000775000000000000000000000323412165470347020502 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: # Build architecture independant packages using the common target. binary-indep: build-indep install-indep dh_testdir -i dh_testroot -i dh_installchangelogs -i dh_installdocs -i dh_strip -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_shlibdeps -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir -a dh_testroot -a dh_installchangelogs -a dh_installdocs -a dh_strip dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/debian/dhtest1.install0000664000000000000000000000001712165470215022354 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/debian/control0000664000000000000000000000071212165470273021021 0ustar Source: dhtest.dbg.empty Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest1-dbg Architecture: any Depends: dhtest1 (= ${Source-Version}) Description: crash with a SIGSEGV (transitional package) Transitional package for dhtest1-dbg, empty pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/debian/copyright0000664000000000000000000000000412165470215021337 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/debian/changelog0000664000000000000000000000020712165470315021264 0ustar dhtest.dbg.empty (2) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.dbg.empty/crash2.c0000664000000000000000000000074012165470215017517 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.noargs/0000775000000000000000000000000012306367743015600 5ustar pkg-create-dbgsym-0.64/tests/dhtest.noargs/Makefile0000664000000000000000000000043012015654756017235 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ objcopy --add-gnu-debuglink=$@ $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.noargs/crash.c0000664000000000000000000000063112015654756017044 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.noargs/debian/0000775000000000000000000000000012306367743017022 5ustar pkg-create-dbgsym-0.64/tests/dhtest.noargs/debian/compat0000664000000000000000000000000212015654756020220 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.noargs/debian/rules0000775000000000000000000000245712015654756020112 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Build architecture independant packages using the common target. binary-indep: build-indep install-indep # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.noargs/debian/dhtest1.install0000664000000000000000000000001712015654756021764 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.noargs/debian/control0000664000000000000000000000107712015654756020432 0ustar Source: dhtest.noargs Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Pre-Depends: coreutils (>= 1) Depends: ${shlibs:Depends} Suggests: foo (<< 1), bar (>= 0), baz, zip Description: crash with a SIGSEGV Test package Package: dhtest2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest.noargs/debian/copyright0000664000000000000000000000000412015654756020747 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.noargs/debian/changelog0000664000000000000000000000020712015654756020673 0ustar dhtest.noargs (3.14) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.noargs/debian/dhtest2.install0000664000000000000000000000002012015654756021757 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.noargs/crash2.c0000664000000000000000000000074012015654756017127 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/cdbstest/0000775000000000000000000000000012306367743014630 5ustar pkg-create-dbgsym-0.64/tests/cdbstest/Makefile0000664000000000000000000000036511426557573016300 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/cdbstest/crash.c0000664000000000000000000000063111426557573016100 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/cdbstest/debian/0000775000000000000000000000000012306367743016052 5ustar pkg-create-dbgsym-0.64/tests/cdbstest/debian/compat0000664000000000000000000000000211426557573017254 0ustar 5 pkg-create-dbgsym-0.64/tests/cdbstest/debian/rules0000775000000000000000000000042011426557573017132 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/makefile.mk CFLAGS := -O0 -g DEB_DH_INSTALL_SOURCEDIR=debian/tmp DEB_MAKE_BUILD_TARGET=all DEB_MAKE_CLEAN_TARGET=clean DEB_MAKE_INSTALL_TARGET=install DESTDIR=$(DEB_DESTDIR) pkg-create-dbgsym-0.64/tests/cdbstest/debian/cdbstest++2.install0000664000000000000000000000002011426557573021461 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/cdbstest/debian/control0000664000000000000000000000117011565247221017446 0ustar Source: cdbstest Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: cdbs, debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: cdbstest++1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: cdbstest++2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: cdbstest++empty Architecture: any Depends: ${shlibs:Depends} Description: dummy arch-any package Test package Package: cdbstestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/cdbstest/debian/cdbstest++1.install0000664000000000000000000000001711426557573021466 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/cdbstest/debian/copyright0000664000000000000000000000000411426557573020003 0ustar foo pkg-create-dbgsym-0.64/tests/cdbstest/debian/changelog0000664000000000000000000000020311426557573017723 0ustar cdbstest (2.3-1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/cdbstest/crash2.c0000664000000000000000000000074011426557573016163 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.whitespace/0000775000000000000000000000000012306367743016443 5ustar pkg-create-dbgsym-0.64/tests/dhtest.whitespace/Makefile0000664000000000000000000000036512015654756020107 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.whitespace/crash.c0000664000000000000000000000063112015654756017707 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.whitespace/debian/0000775000000000000000000000000012306367743017665 5ustar pkg-create-dbgsym-0.64/tests/dhtest.whitespace/debian/compat0000664000000000000000000000000212015654756021063 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.whitespace/debian/rules0000775000000000000000000000305512015654756020750 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.whitespace/debian/dhtest1.install0000664000000000000000000000001712015654756022627 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.whitespace/debian/control0000664000000000000000000000143212015654756021270 0ustar Source: dhtest.whitespace Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Description: crash with a SIGSEGV Test package Section: libdevel Depends: ${shlibs:Depends}, # foo, bash, coreutils (>> ${foo}) Recommends: dhtest2 (>> ${foo}) Suggests: dhtestall (>= ${foo}), ${bar}-core Conflicts: dhtestall (<< ${foo}) Breaks: dhtestall (<< ${foo}) Replaces: dhtestall (<< ${foo}) Package:dhtest2 Architecture: any Description: crash with a SIGFPE Test package Depends: ${shlibs:Depends}, coreutils, bash Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package Pre-Depends: coreutils, bash, findutils pkg-create-dbgsym-0.64/tests/dhtest.whitespace/debian/copyright0000664000000000000000000000000412015654756021612 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.whitespace/debian/changelog0000664000000000000000000000021612015654756021536 0ustar dhtest.whitespace (1:2.3-1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.whitespace/debian/dhtest2.install0000664000000000000000000000002012015654756022622 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.whitespace/crash2.c0000664000000000000000000000074012015654756017772 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.nostrip/0000775000000000000000000000000012306367743016005 5ustar pkg-create-dbgsym-0.64/tests/dhtest.nostrip/Makefile0000664000000000000000000000046012015654756017445 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin cp -a $(DESTDIR)/usr/bin/crash2 $(DESTDIR)/usr/bin/crash3 pkg-create-dbgsym-0.64/tests/dhtest.nostrip/crash.c0000664000000000000000000000063112015654756017251 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.nostrip/debian/0000775000000000000000000000000012306367743017227 5ustar pkg-create-dbgsym-0.64/tests/dhtest.nostrip/debian/compat0000664000000000000000000000000212015654756020425 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.nostrip/debian/rules0000775000000000000000000000351612015654756020314 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip -Xcrash2 -X crash3 dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common if ! cmp -s ./crash2 debian/dhtest2-nostrip/usr/bin/crash2; then \ echo "crash2 was invalidly touched" >&2; \ exit 1; \ fi if ! cmp -s ./crash2 debian/dhtest2-nostrip/usr/bin/crash3; then \ echo "crash3 was invalidly touched" >&2; \ exit 1; \ fi binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.nostrip/debian/dhtest2-nostrip.install0000664000000000000000000000004012015654756023662 0ustar /usr/bin/crash2 /usr/bin/crash3 pkg-create-dbgsym-0.64/tests/dhtest.nostrip/debian/dhtest1.install0000664000000000000000000000001712015654756022171 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.nostrip/debian/control0000664000000000000000000000130012015654756020624 0ustar Source: dhtest.nostrip Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends}, coreutils (>> ${foo}) Recommends: dhtest2 (>> ${foo}) Suggests: dhtestall (>= ${foo}), ${bar}-core Conflicts: dhtestall (<< ${foo}) Replaces: dhtestall (<< ${foo}) Breaks: dhtestall (<< ${foo}) Description: crash with a SIGSEGV Test package Package: dhtest2-nostrip Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest.nostrip/debian/copyright0000664000000000000000000000000412015654756021154 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.nostrip/debian/changelog0000664000000000000000000000021312015654756021075 0ustar dhtest.nostrip (1:2.3-1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.nostrip/crash2.c0000664000000000000000000000074012015654756017334 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/run0000775000000000000000000001373412306366172013552 0ustar #!/bin/sh -e TESTSOURCES="dhtest dhtest.doublestrip dhtest.samename dhtest.substvars dhtest.whitespace dhtest.nostrip dhtest.noargs dhtest.archspecific dhtest.tmpdirarg dhtest.compat1 dhtest.compat1override dhtest.compatenvvar dhtest.dbg dhtest.dbg.buildid dhtest.dbg2 dhtest.dbg3 dhtest.pydbg dhtest.dbg.empty cdbstest" print_result() { if [ -n "$fail" ]; then echo "FAIL: $1" echo "Output:" echo '---------------------------------------------------------------------' echo "$2" echo '---------------------------------------------------------------------' echo Please remove testsuite.tmp after examination exit 1 else echo "PASS: $1" fi unset fail return 0 } # Arguments: # execute given command, pass test if it exits successfully, fail test if not. # In the latter case, print command output and abort check_command() { out=`$1 2>&1` || fail=1 print_result "$2" "$out" } # Arguments: check_pkg_pair() { deb="$1" ddeb="$2" mkdir unpacked dpkg -x $deb unpacked dpkg -x $ddeb unpacked # gdb looks for the absolute path of the executable mkdir -p unpacked/usr/lib/debug/`pwd` ln -s `pwd`/unpacked/usr/lib/debug unpacked/usr/lib/debug/`pwd`/unpacked for bin in unpacked/usr/bin/*; do # check for debuglink section objdump -j .gnu_debuglink -s $bin | grep -q .gnu_debuglink || fail=1 print_result "$bin has .gnu_debuglink section" "`objdump -j .gnu_debuglink -s $bin`" # check for good backtrace bt=`gdb --batch -ex "set debug-file-directory unpacked/usr/lib/debug" -ex "file $bin" -ex run -ex 'bt'` echo "$bt" | grep -q 'g (x=1, y=42)' || fail=1 print_result "$bin: $deb and $ddeb produce good backtrace" "$bt" done rm -rf unpacked # check that Multi-Arch: field is the same PKG_MA=`dpkg -I $deb | grep '^[[:space:]]*Multi-Arch:'` || : DDEB_MA=`dpkg -I $ddeb | grep '^[[:space:]]*Multi-Arch:'` || : [ "$PKG_MA" = "$DDEB_MA" ] || fail=1 print_result "$deb: Multi-Arch: field is identical" # should not copy enhances dpkg -I $ddeb | grep -q '^[[:space:]]*Enhances:' && fail=1 || : print_result "$ddeb: No Enhances: field" } ROOTDIR=$(readlink -f `dirname $0`/..) cd $ROOTDIR/tests ORIGDIR=`pwd` mkdir testsuite.tmp cd testsuite.tmp for s in $TESTSOURCES; do echo "===== $s =====" rm -rf * # copy source package into test directory cp -r ../$s . # build it cd $s check_command "env -u NO_PKG_MANGLE PATH=$ROOTDIR:$PATH PKG_IGNORE_CURRENTLY_BUILDING=1 fakeroot dpkg-buildpackage -us -uc -b" "Building source package $s" # clean it check_command "fakeroot debian/rules clean" "Cleaning source package $s" # debhelper compat 1 leaves debhelper.log behind, work around rm -f debian/debhelper.log cd .. # check for leftovers check_command "diff -ur $s ../$s" "No leftover files after cleaning $s" dbg_pkgs='' for deb in *.deb; do pkg=`echo $deb|cut -d_ -f1` version=`echo $deb|cut -d_ -f2` version=${version#*:} # strip off epoch arch=`echo ${deb%.deb}|cut -d_ -f3` if echo $pkg | grep -q -- '^python'; then # python packages are special, ignore them check_command "test ! -f ${pkg}-dbgsym_${version}_${arch}.ddeb" "No dbgsym ddeb for $deb" continue elif echo $pkg | grep -q -- '-dbg$' && dpkg -c "$deb" | grep -q ./usr/lib/debug/; then dbg_pkgs="$dbg_pkgs $pkg" # verify that the -dbg works check_pkg_pair "${pkg%-dbg}_${version}_${arch}.deb" "${pkg}_${version}_${arch}.deb" else if dpkg -c $deb | grep -q usr/bin && ! echo $deb | grep -q nostrip; then check_command "test -f ${pkg}-dbgsym_${version}_${arch}.ddeb" "dbgsym ddeb for $deb exists" else check_command "test ! -f ${pkg}-dbgsym_${version}_${arch}.ddeb" "No dbgsym ddeb for $deb" fi fi done for ddeb in *.ddeb; do INFO=`dpkg -I $ddeb` VERSION=`echo "$INFO" | grep "^[[:space:]]*Version:" | cut -f3 -d' '` DBGSYMNAME=`echo $ddeb|cut -d_ -f1` PKGNAME=${DBGSYMNAME%-dbgsym} PKGDEB=`echo $ddeb | sed 's/-dbgsym_/_/; s/\.ddeb/.deb/'` PKGLIST=`dpkg -c $ddeb` PKGLIST=`echo "$PKGLIST" | grep -v ' \./$'` || true echo "$INFO" | egrep -q '^[[:space:]]*(Pre-Depends|Recommends|Suggests|Provides|Replaces|Conflicts|Breaks|Essential):' && fail=1 || true print_result "$ddeb has other dependencies stripped" "$INFO" echo "$INFO" | grep -q "^[[:space:]]*Source: $s\$" || fail=1 print_result "$ddeb has a correct Source field" "$INFO" echo "$INFO" | grep -A1 "^[[:space:]]*Section: [a-zA-Z0-0]\+\$" | tail -n1 | grep -q '^[[:space:]]*Priority: '|| fail=1 print_result "$ddeb has a correct Section field" "$INFO" echo "$INFO" | grep -q "^[[:space:]]*Description: debug symbols for package $PKGNAME\$" || fail=1 print_result "$ddeb has a correct (short) Description field" "$INFO" if [ -n "$dbg_pkgs" ]; then # if we already have a -dbg, the -dbgsym packages should be empty dummy # packages that merely depend on the -dbg packages; we already # asserted above that the -dbg package works for c in $dbg_pkgs; do echo "$INFO" | grep -q "^[[:space:]]*Depends: .*$c" || fail=1 print_result "$ddeb depends on $c" "$INFO" done [ -n "$PKGLIST" ] && fail=1 || true print_result "$ddeb does not have any files" "$PKGLIST" else # without -dbg, check that our -dbgsyms work and have all other # dependency fields stripped echo "$PKGLIST" | grep -q './usr/lib/debug/' || fail=1 print_result "$ddeb has /usr/lib/debug dir" "$PKGLIST" echo "$INFO" | grep -q "^[[:space:]]*Depends: $PKGNAME (= $VERSION)\$" || fail=1 print_result "$ddeb has a correct Depends field" "$INFO" check_pkg_pair $PKGDEB $ddeb fi done done cd "$ORIGDIR" rm -r testsuite.tmp pkg-create-dbgsym-0.64/tests/dhtest.dbg/0000775000000000000000000000000012306367743015043 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg/Makefile0000664000000000000000000000036512015654756016507 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.dbg/crash.c0000664000000000000000000000063112015654756016307 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.dbg/debian/0000775000000000000000000000000012306367743016265 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg/debian/compat0000664000000000000000000000000212015654756017463 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.dbg/debian/rules0000775000000000000000000000332712015654756017352 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: # Build architecture independant packages using the common target. binary-indep: build-indep install-indep dh_testdir -i dh_testroot -i dh_installchangelogs -i dh_installdocs -i dh_strip -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_shlibdeps -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir -a dh_testroot -a dh_installchangelogs -a dh_installdocs -a dh_strip -Ndhtest1 -a dh_strip -pdhtest1 --dbg-package=dhtest1-dbg dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.dbg/debian/dhtest1.install0000664000000000000000000000001712015654756021227 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.dbg/debian/control0000664000000000000000000000122012015654756017663 0ustar Source: dhtest.dbg Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest1-dbg Architecture: any Depends: dhtest1 (= ${Source-Version}) Description: crash with a SIGSEGV (debug symbols) Test package (debug symbols) Package: dhtest2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest.dbg/debian/copyright0000664000000000000000000000000412015654756020212 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.dbg/debian/changelog0000664000000000000000000000020112015654756020130 0ustar dhtest.dbg (2) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.dbg/debian/dhtest2.install0000664000000000000000000000002012015654756021222 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.dbg/crash2.c0000664000000000000000000000074012015654756016372 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/0000775000000000000000000000000012306367743017534 5ustar pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/Makefile0000664000000000000000000000036512015654756021200 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/crash.c0000664000000000000000000000063112015654756021000 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/debian/0000775000000000000000000000000012306367743020756 5ustar pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/debian/compat0000664000000000000000000000000212015654756022154 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/debian/rules0000775000000000000000000000207212015654756022037 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp clean: dh_testdir dh_testroot rm -f build-arch-stamp -$(MAKE) clean dh_clean install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir dh_testroot dh_installchangelogs -a dh_installdocs -a dh_strip -a dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -pdhtest1 dh_gencontrol -pdhtest2 -- -v1:42 dh_md5sums -a dh_builddeb -a binary: binary-arch .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/debian/dhtest1.install0000664000000000000000000000001712015654756023720 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/debian/control0000664000000000000000000000061112015654756022357 0ustar Source: dhtest.versionoverride Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/debian/copyright0000664000000000000000000000000412015654756022703 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/debian/changelog0000664000000000000000000000021512015654756022626 0ustar dhtest.versionoverride (1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/debian/dhtest2.install0000664000000000000000000000002012015654756023713 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.versionoverride/crash2.c0000664000000000000000000000074012015654756021063 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.dbg2/0000775000000000000000000000000012306367743015125 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg2/Makefile0000664000000000000000000000036512015654756016571 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.dbg2/crash.c0000664000000000000000000000063112015654756016371 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.dbg2/debian/0000775000000000000000000000000012306367743016347 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg2/debian/compat0000664000000000000000000000000212015654756017545 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.dbg2/debian/rules0000775000000000000000000000347712015654756017442 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: # Build architecture independant packages using the common target. binary-indep: build-indep install-indep dh_testdir -i dh_testroot -i dh_installchangelogs -i dh_installdocs -i dh_strip -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_shlibdeps -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir -a dh_testroot -a dh_installchangelogs -a dh_installdocs -a dh_strip -Ndhtest1 -Ndhtest2-extra -a dh_strip -pdhtest1 --keep-debug install -d debian/dhtest1-dbg/usr/lib/ mv debian/dhtest1/usr/lib/debug debian/dhtest1-dbg/usr/lib/ dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.dbg2/debian/dhtest1.install0000664000000000000000000000001712015654756021311 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.dbg2/debian/control0000664000000000000000000000142512015654756017754 0ustar Source: dhtest.dbg2 Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest1-dbg Architecture: any Depends: dhtest1 (= ${Source-Version}) Description: crash with a SIGSEGV (debug symbols) Test package (debug symbols) Package: dhtest2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtest2-extra Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV -- extra stuff Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest.dbg2/debian/copyright0000664000000000000000000000000412015654756020274 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.dbg2/debian/changelog0000664000000000000000000000020212015654756020213 0ustar dhtest.dbg2 (2) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.dbg2/debian/dhtest2.install0000664000000000000000000000002012015654756021304 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.dbg2/crash2.c0000664000000000000000000000074012015654756016454 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/0000775000000000000000000000000012306367743016300 5ustar pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/Makefile0000664000000000000000000000036512015654756017744 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/crash.c0000664000000000000000000000063112015654756017544 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/debian/0000775000000000000000000000000012306367743017522 5ustar pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/debian/compat0000664000000000000000000000000212015654756020720 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/debian/rules0000775000000000000000000000263312015654756020606 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif build: build-arch build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp clean: dh_testdir dh_testroot rm -f build-arch-stamp -$(MAKE) clean dh_clean -Pdebian/build/pkgdir rmdir debian/build 2>/dev/null || true install: install-arch install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s -Pdebian/build/pkgdir $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s -Pdebian/build/pkgdir --sourcedir=debian/tmp # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir -a -Pdebian/build/pkgdir dh_testroot -a -Pdebian/build/pkgdir dh_installchangelogs -a -Pdebian/build/pkgdir dh_installdocs -a -Pdebian/build/pkgdir dh_strip -a -Pdebian/build/pkgdir dh_compress -a -Pdebian/build/pkgdir dh_fixperms -a -Pdebian/build/pkgdir dh_installdeb -a -Pdebian/build/pkgdir dh_shlibdeps -a -Pdebian/build/pkgdir dh_gencontrol -a -Pdebian/build/pkgdir dh_md5sums -a -Pdebian/build/pkgdir dh_builddeb -a -Pdebian/build/pkgdir binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/debian/dhtest1.install0000664000000000000000000000001712015654756022464 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/debian/control0000664000000000000000000000042512015654756021126 0ustar Source: dhtest.tmpdirarg Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/debian/copyright0000664000000000000000000000000412015654756021447 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/debian/changelog0000664000000000000000000000020712015654756021373 0ustar dhtest.tmpdirarg (1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.tmpdirarg/crash2.c0000664000000000000000000000074012015654756017627 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.compat1/0000775000000000000000000000000012306367743015653 5ustar pkg-create-dbgsym-0.64/tests/dhtest.compat1/Makefile0000664000000000000000000000036512015654756017317 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.compat1/crash.c0000664000000000000000000000063112015654756017117 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.compat1/debian/0000775000000000000000000000000012306367743017075 5ustar pkg-create-dbgsym-0.64/tests/dhtest.compat1/debian/rules0000775000000000000000000000300712015654756020155 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s install -D -m 755 crash debian/tmp/usr/bin/crash install -D -m 755 crash2 debian/dhtest2/usr/bin/crash2 # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.compat1/debian/control0000664000000000000000000000076512015654756020510 0ustar Source: dhtest.compat1 Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest.compat1/debian/copyright0000664000000000000000000000000412015654756021022 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.compat1/debian/changelog0000664000000000000000000000021112015654756020741 0ustar dhtest.compat1 (2:3.4) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.compat1/crash2.c0000664000000000000000000000074012015654756017202 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.compatenvvar/0000775000000000000000000000000012306367743017014 5ustar pkg-create-dbgsym-0.64/tests/dhtest.compatenvvar/Makefile0000664000000000000000000000036512015654756020460 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.compatenvvar/crash.c0000664000000000000000000000063112015654756020260 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.compatenvvar/debian/0000775000000000000000000000000012306367743020236 5ustar pkg-create-dbgsym-0.64/tests/dhtest.compatenvvar/debian/rules0000775000000000000000000000221112015654756021312 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DH_COMPAT=3 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-arch install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/dhtest1 # install hardlink ln debian/dhtest1/usr/bin/crash debian/dhtest1/usr/bin/crashl # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.compatenvvar/debian/control0000664000000000000000000000043112015654756021637 0ustar Source: dhtest.compatenvvar Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package pkg-create-dbgsym-0.64/tests/dhtest.compatenvvar/debian/copyright0000664000000000000000000000000412015654756022163 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.compatenvvar/debian/changelog0000664000000000000000000000022012015654756022102 0ustar dhtest.compatenvvar (1:2.3-1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.compatenvvar/crash2.c0000664000000000000000000000074012015654756020343 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.compat1override/0000775000000000000000000000000012306367743017413 5ustar pkg-create-dbgsym-0.64/tests/dhtest.compat1override/Makefile0000664000000000000000000000036512015654756021057 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.compat1override/crash.c0000664000000000000000000000063112015654756020657 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.compat1override/debian/0000775000000000000000000000000012306367743020635 5ustar pkg-create-dbgsym-0.64/tests/dhtest.compat1override/debian/compat0000664000000000000000000000000212015654756022033 0ustar 4 pkg-create-dbgsym-0.64/tests/dhtest.compat1override/debian/rules0000775000000000000000000000303312015654756021714 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS export DH_COMPAT=1 CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s install -D -m 755 crash debian/tmp/usr/bin/crash install -D -m 755 crash2 debian/dhtest2/usr/bin/crash2 # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.compat1override/debian/control0000664000000000000000000000077512015654756022251 0ustar Source: dhtest.compat1override Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest.compat1override/debian/copyright0000664000000000000000000000000412015654756022562 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.compat1override/debian/changelog0000664000000000000000000000022112015654756022502 0ustar dhtest.compat1override (2:3.4) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.compat1override/crash2.c0000664000000000000000000000074012015654756020742 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest/0000775000000000000000000000000012306367743014310 5ustar pkg-create-dbgsym-0.64/tests/dhtest/Makefile0000664000000000000000000000036512015654756015754 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest/crash.c0000664000000000000000000000063112015654756015554 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest/debian/0000775000000000000000000000000012306367743015532 5ustar pkg-create-dbgsym-0.64/tests/dhtest/debian/compat0000664000000000000000000000000212015654756016730 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest/debian/rules0000775000000000000000000000305512015654756016615 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest/debian/dhtest1.install0000664000000000000000000000001712015654756020474 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest/debian/control0000664000000000000000000000135112024004441017111 0ustar Source: dhtest Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends}, coreutils (>> ${foo}) Recommends: dhtest2 (>> ${foo}) Suggests: dhtestall (>= ${foo}), ${bar}-core Conflicts: dhtestall (<< ${foo}) Replaces: dhtestall (<< ${foo}) Breaks: dhtestall (<< ${foo}) Enhances: coreutils Multi-Arch: same Description: crash with a SIGSEGV Test package Package: dhtest2 Architecture: any Multi-Arch: foreign Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest/debian/copyright0000664000000000000000000000000412015654756017457 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest/debian/changelog0000664000000000000000000000020312015654756017377 0ustar dhtest (1:2.3-1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest/debian/dhtest2.install0000664000000000000000000000002012015654756020467 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest/crash2.c0000664000000000000000000000074012015654756015637 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.dbg3/0000775000000000000000000000000012306367743015126 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg3/Makefile0000664000000000000000000000036512015654756016572 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.dbg3/crash.c0000664000000000000000000000063112015654756016372 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.dbg3/debian/0000775000000000000000000000000012306367743016350 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg3/debian/compat0000664000000000000000000000000212015654756017546 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.dbg3/debian/rules0000775000000000000000000000327112015654756017433 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: # Build architecture independant packages using the common target. binary-indep: build-indep install-indep dh_testdir -i dh_testroot -i dh_installchangelogs -i dh_installdocs -i dh_strip -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_shlibdeps -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir -a dh_testroot -a dh_installchangelogs -a dh_installdocs -a dh_strip -a --dbg-package dhtest1-dbg dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.dbg3/debian/dhtest1.install0000664000000000000000000000001712015654756021312 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.dbg3/debian/control0000664000000000000000000000122112015654756017747 0ustar Source: dhtest.dbg3 Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest1-dbg Architecture: any Depends: dhtest1 (= ${Source-Version}) Description: crash with a SIGSEGV (debug symbols) Test package (debug symbols) Package: dhtest2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest.dbg3/debian/copyright0000664000000000000000000000000412015654756020275 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.dbg3/debian/changelog0000664000000000000000000000020212015654756020214 0ustar dhtest.dbg3 (2) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.dbg3/debian/dhtest2.install0000664000000000000000000000002012015654756021305 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.dbg3/crash2.c0000664000000000000000000000074012015654756016455 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.pydbg/0000775000000000000000000000000012306367743015414 5ustar pkg-create-dbgsym-0.64/tests/dhtest.pydbg/Makefile0000664000000000000000000000036512160256236017050 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.pydbg/crash.c0000664000000000000000000000063112160256236016650 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.pydbg/debian/0000775000000000000000000000000012306367743016636 5ustar pkg-create-dbgsym-0.64/tests/dhtest.pydbg/debian/compat0000664000000000000000000000000212160256236020024 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.pydbg/debian/rules0000775000000000000000000000323712160256236017713 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: # Build architecture independant packages using the common target. binary-indep: build-indep install-indep dh_testdir -i dh_testroot -i dh_installchangelogs -i dh_installdocs -i dh_strip -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_shlibdeps -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir -a dh_testroot -a dh_installchangelogs -a dh_installdocs -a dh_strip -a dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.pydbg/debian/dhtest1.install0000664000000000000000000000001712160256236021570 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.pydbg/debian/control0000664000000000000000000000110412160256236020225 0ustar Source: dhtest.pydbg Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: python-dhtest Architecture: any Depends: python, dhtest1 Description: dhtest python bindings Test package (python bindings) Package: python-dhtest-dbg Architecture: any Depends: python, dhtest1 Description: dhtest python bindings (debug variant) Test package (python bindings, debug variant) pkg-create-dbgsym-0.64/tests/dhtest.pydbg/debian/copyright0000664000000000000000000000000412160256236020553 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.pydbg/debian/changelog0000664000000000000000000000020312160256236020473 0ustar dhtest.pydbg (2) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.pydbg/crash2.c0000664000000000000000000000074012160256236016733 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.substvars/0000775000000000000000000000000012306367743016343 5ustar pkg-create-dbgsym-0.64/tests/dhtest.substvars/Makefile0000664000000000000000000000036512015654756020007 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.substvars/crash.c0000664000000000000000000000063112015654756017607 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.substvars/debian/0000775000000000000000000000000012306367743017565 5ustar pkg-create-dbgsym-0.64/tests/dhtest.substvars/debian/compat0000664000000000000000000000000212015654756020763 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.substvars/debian/rules0000775000000000000000000000317512306365714020647 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: echo "package:Description=a test package" > $(CURDIR)/debian/dhtest1.substvars dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.substvars/debian/dhtest1.install0000664000000000000000000000001712015654756022527 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.substvars/debian/control0000664000000000000000000000141512306366251021162 0ustar Source: dhtest.substvars Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Description: ${package:Description} Section: libdevel Depends: ${shlibs:Depends}, # foo, bash, coreutils (>> ${foo}) Recommends: dhtest2 (>> ${foo}) Suggests: dhtestall (>= ${foo}), ${bar}-core Conflicts: dhtestall (<< ${foo}) Breaks: dhtestall (<< ${foo}) Replaces: dhtestall (<< ${foo}) Package:dhtest2 Architecture: any Description: crash with a SIGFPE Test package Depends: ${shlibs:Depends}, coreutils, bash Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package Pre-Depends: coreutils, bash, findutils pkg-create-dbgsym-0.64/tests/dhtest.substvars/debian/copyright0000664000000000000000000000000412015654756021512 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.substvars/debian/changelog0000664000000000000000000000021512306366264021432 0ustar dhtest.substvars (1:2.3-1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.substvars/debian/dhtest2.install0000664000000000000000000000002012015654756022522 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.substvars/crash2.c0000664000000000000000000000074012015654756017672 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/0000775000000000000000000000000012306367743016643 5ustar pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/Makefile0000664000000000000000000000036512015654756020307 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/crash.c0000664000000000000000000000063112015654756020107 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/debian/0000775000000000000000000000000012306367743020065 5ustar pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/debian/compat0000664000000000000000000000000212015654756021263 0ustar 5 pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/debian/rules0000775000000000000000000000315312015654756021147 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_strip # strip them again, checks that this doesn't break dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol -u'-Vfoo=1 -Vbar=lsb' dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/debian/dhtest1.install0000664000000000000000000000001712015654756023027 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/debian/control0000664000000000000000000000063412015654756021473 0ustar Source: dhtest.doublestrip Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 4.1.0) Standards-Version: 3.7.2 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends}, coreutils (>> ${foo}) Description: crash with a SIGSEGV Test package Package: dhtest2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/debian/copyright0000664000000000000000000000000412015654756022012 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/debian/changelog0000664000000000000000000000021712015654756021737 0ustar dhtest.doublestrip (1:2.3-1) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/debian/dhtest2.install0000664000000000000000000000002012015654756023022 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.doublestrip/crash2.c0000664000000000000000000000074012015654756020172 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/0000775000000000000000000000000012306367743016456 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/Makefile0000664000000000000000000000036512015677567020127 0ustar CFLAGS= -g -Wall -W -O0 LIBNAME=crashrep all: crash crash2 crash: crash.o $(CC) $^ -o $@ crash2: crash2.o $(CC) $^ -o $@ clean: rm -f *.o crash crash2 install: all install -d $(DESTDIR)/usr/bin install crash crash2 $(DESTDIR)/usr/bin pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/crash.c0000664000000000000000000000063112015677567017727 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include void h(char* p) { p[1] = 'a'; } int g( int x, int y ) { char* s = NULL; h(s); return x+y; } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; } pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/debian/0000775000000000000000000000000012306367743017700 5ustar pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/debian/compat0000664000000000000000000000000212015677567021103 0ustar 9 pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/debian/rules0000664000000000000000000000332712015677567020767 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(MAKE) touch build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp -$(MAKE) clean dh_clean install: install-indep install-arch install-indep: dh_testdir dh_testroot dh_clean -k -i dh_installdirs -i dh_install -i --sourcedir=debian/tmp install-arch: dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s --sourcedir=debian/tmp # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: # Build architecture independant packages using the common target. binary-indep: build-indep install-indep dh_testdir -i dh_testroot -i dh_installchangelogs -i dh_installdocs -i dh_strip -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_shlibdeps -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch dh_testdir -a dh_testroot -a dh_installchangelogs -a dh_installdocs -a dh_strip -Ndhtest1 -a dh_strip -pdhtest1 --dbg-package=dhtest1-dbg dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/debian/dhtest1.install0000664000000000000000000000001712015677567022647 0ustar /usr/bin/crash pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/debian/control0000664000000000000000000000122412015700265021265 0ustar Source: dhtest.dbg.buildid Section: utils Priority: extra Maintainer: Martin Pitt Build-Depends: debhelper (>= 9) Standards-Version: 3.9.3 Package: dhtest1 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGSEGV Test package Package: dhtest1-dbg Architecture: any Depends: dhtest1 (= ${Source-Version}) Description: crash with a SIGSEGV (debug symbols) Test package (debug symbols) Package: dhtest2 Architecture: any Depends: ${shlibs:Depends} Description: crash with a SIGFPE Test package Package: dhtestall Architecture: all Depends: ${shlibs:Depends} Description: dummy arch-all package Test package pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/debian/copyright0000664000000000000000000000000412015677567021632 0ustar foo pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/debian/changelog0000664000000000000000000000021112015700340021521 0ustar dhtest.dbg.buildid (2) foo; urgency=low * Initial release. -- Martin Pitt Fri, 16 Jun 2006 10:49:56 +0200 pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/debian/dhtest2.install0000664000000000000000000000002012015677567022642 0ustar /usr/bin/crash2 pkg-create-dbgsym-0.64/tests/dhtest.dbg.buildid/crash2.c0000664000000000000000000000074012015677567020012 0ustar /* crash.c - demo program for libcrashreport (c) 2004 Martin Pitt This file is public domain. */ #include #include #include double h() { double a = 1./0; if (isinf(a)) raise(SIGFPE); return a; } int g( int x, int y ) { return x+y+(int) h(); } int f( int x ) { return g( x, 42 ); } int main() { int x; x = f(1); printf( "x = %i, terminating normally now.\n", x ); return 0; }