summaryrefslogtreecommitdiff
path: root/dh_gencontrol
AgeCommit message (Collapse)AuthorFilesLines
2018-02-18dh_gencontrol: Fix uninitialized value warningNiels Thykier1-0/+1
Regression introduced in commit 6d5f3b79c743ee8b466813ea3e62b4d492fc598c. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-02dh_gencontrol: Deduplicate debug idsNiels Thykier1-1/+7
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-12-16dh_strip: Fix bug generating Build-Id field with --dbg-packageNiels Thykier1-0/+1
The problem occurred because we overrode the list of recorded build-ids after each package. This works perfectly fine for dbgsym packages as they always have a 1:1 with the original package. However, a manual --dbg-package can host debug symbols for multiple binary packages. There are two paths to triggering this issue: dh_strip -p pkg1 -p pkg2 --dbg-package=foo-dbg and: dh_strip -p pkg1 --dbg-package=foo-dbg dh_strip -p pkg2 --dbg-package=foo-dbg (This case was observed in krb5/1.15.2-2 where it loops over most of the packages and calls dh_strip on each of them with the same --dbg-package parameter.) They fundamentally have the same issue and fix but the second case is slightly more involved (as we have to merge with the previous run). Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-04Make dbgsym Package-Type (almost) configurableNiels Thykier1-0/+2
While not perfect, it should minimize most of the Ubuntu delta related to dbgsym packages. Instead of having to patch dh_gencontrol and dh_builddeb, Ubuntu can now change a single line in Dh_Lib to have the desired behaviour. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-21Create a helper for locating the dbgsym tmpdirNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13Spelling fixesVille Skyttä1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-09-16dh_gencontrol: Undef Important field in dbgsym packagesNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-08-19dh_gencontrol: Follow best practises for dbgsym synopsisesAdam Conrad1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-08-07dh_gencontrol: dbgsyms are now priority optionalNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-23dh_gencontrol: Add substvars without using fork+execNiels Thykier1-8/+30
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-12reset_perm_and_owner: Use perl functions instead of fork+execNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-07Dh_Lib: Embed tool versions into auto-generated snippetsNiels Thykier1-0/+2
Use $main::VERSION to determine the version of the tool and embed that into auto-generated snippets (e.g. via autoscript). This enables lintian to extract the tool + version and display it on: https://lintian.debian.org/tags/debhelper-autoscript-in-maintainer-scripts.html Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03Set Emacs file variables directory-wideSven Joachim1-6/+0
Set the local variables for Emacs in the central placed intended for it, rather than in (currently) 95 individual files. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-24dh_gencontrol: Re-indent codeNiels Thykier1-82/+82
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-24dh_gencontrol: Run packages in parallelNiels Thykier1-2/+3
Re-indent pending next commit. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-29dh_gencontrol: Remove homepage field in dbgsym pkgsNiels Thykier1-1/+1
It is redundant (the original package also has it) plus it can cause non-overridable lintian warnings. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-03-07dh_gencontrol: Discard "Multi-Arch: no"Helmut Grohne1-2/+7
As dak auto-rejects packages with those uploads and we may want to use an explicit "no" to disable future auto-computation of the Multi-Arch field. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02Dh_Lib: Add a reset_perm_and_owner functionNiels Thykier1-5/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02Refactor install_dir usage to avoid the "if -d " testsNiels Thykier1-6/+2
They were not needed in the first place (as "install -d" DTRT). Signed-off-by: Niels Thykier <niels@thykier.net>
2016-02-21dh_strip: Don't create dbgsym root for udebsNiels Thykier1-4/+1
This ensures we do not collect build-ids for the udeb at all (unless it actually contains debug symbols). Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-14dh_*: Replace ddeb with dbgsymNiels Thykier1-35/+37
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-12-20dh_gencontrol: Create dbgsym packages with correct componentNiels Thykier1-1/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-30Skip building ddebs for udebs temporarilyNiels Thykier1-1/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-25dh_gencontrol: Add Auto-Built-Package field in ddeb control filesNiels Thykier1-0/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-25Change X-Build-Ids to Build-IdsPaul Tagliamonte1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-22dh_gencontrol: Do not duplicate build-ids in the original packageNiels Thykier1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-22dh_gencontrol: Fix some style nitsNiels Thykier1-2/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-22Add X-Build-Ids to all debug packages built with dh_stripPaul Tagliamonte1-3/+11
This is outstandingly helpful for anyone looking to track down what debug package provides the symbols for the build id they're looking at. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-17Add debug build ids to the Binary package's control filePaul Tagliamonte1-6/+16
This will add `X-Build-Ids` to debug debs, which will be a space separated list of build ids provided by this package. This will allow tools to work out which .deb will provide the build-id required to install symbols for a given coredump. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-14dh_gencontrol: Move debug debs back into section 'debug'Paul Tagliamonte1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-10Let dpkg-gencontrol figure out the value for the source fieldNiels Thykier1-4/+0
Since dpkg-dev 1.18.2~, dpkg-gencontrol figures out the desired value for the "Source" field for ddebs (and does so better than debhelper did). Signed-off-by: Niels Thykier <niels@thykier.net>
2015-07-01Migrate to use warnings and use parentNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-06-15dh_gencontrol: Remove call to undefined subroutineNiels Thykier1-2/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-25dh_gencontrol: Fix whitespace issueNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-25dh_gencontrol: Use debugsym section for ddebsNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-20Update documentation of dh_builddeb and dh_gencontrolNiels Thykier1-3/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-15dh_gencontrol: Remove :arch from ddeb dependencyNiels Thykier1-2/+1
Unfortunately, dpkg and APT do not agree on the meaning of such a dependency. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-15dh_strip: Add --ddeb-migration=RELATION optionNiels Thykier1-3/+26
Add an --debug-migration option that accepts a Breaks+Replaces relation. This relation is added to the generated to ddebs to avoid file-conflicts. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-15dh_gencontrol: Create ddebs as M-A: same or without a M-A fieldNiels Thykier1-1/+9
Unless the original package is "Multi-Arch: same", there is no reason for the ddeb to have a "Multi-Arch" field. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-02dh_gencontrol: Mark ddebs as Multi-Arch:same unconditionallyNiels Thykier1-1/+1
Previously, ddebs would inherit the field from its base package. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-02Add experimental .ddeb supportNiels Thykier1-1/+32
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-01dh_gencontrol: Add empty misc:Pre-Depends substvar if neededNiels Thykier1-0/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-08Add leading 0 to "mode" parametersMartin Koeppe1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-08Migrate some calls to use the new install_X subsMartin Koeppe1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-01Add editor hints to the end of all perl modules and scriptsNiels Thykier1-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2014-02-20dh_gencontrol: Revert change made in version 4.0.13 that avoided passing -p ↵Joey Hess1-5/+1
to dpkg-gencontrol when only operating on one package. There seems to be no benefit to doing that, and it breaks when using Build-Profiles, since while debhelper may know a profile only allows for one package, dpkg-gencontrol may see other packages in the control file.
2010-11-02Apply manual pages conventionsDavid Prévot1-4/+4
As advised in man(1), always use: B<bold text> type exactly as shown. I<italic text> replace with appropriate argument. s/debian/Debian/ if needed. s/ / / also. s/perl/Perl/ s/python/Python/ and s/emacs/Emacs/ too.
2010-08-17Man page fixes about what program -u passes params to. Closes: #593342Joey Hess1-1/+1
2009-11-04Add deprecation warnings for -u to the documentation, since putting options ↵Joey Hess1-2/+5
after -- is much more sane. (However, -u will not go away any time soon.) Closes: #554509
2009-02-23dh_gencontrol: No longer need to generate the udeb filename when calling ↵Joey Hess1-4/+0
dpkg-gencontrol. * dh_gencontrol: No longer need to generate the udeb filename when calling dpkg-gencontrol. * dh_gencontrol: Do not need to tell dpkg-gencontol not to include the Homepage field in udebs (fixed in dpkg-dev 1.14.17).