summaryrefslogtreecommitdiff
path: root/dh_builddeb
AgeCommit message (Collapse)AuthorFilesLines
2017-11-04Make dbgsym Package-Type (almost) configurableNiels Thykier1-2/+8
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-23dh_builddeb: Assume less familarity with R³Niels Thykier1-2/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-21dh_builddeb: Pass --root-owner-group to dpkg-deb under R³Niels Thykier1-2/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-21Create a helper for locating the dbgsym tmpdirNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-09-21dh_builddeb: Add some missing error checksNiels Thykier1-2/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-09-21dh_builddeb: Remove commentNiels Thykier1-3/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-09-21dh_builddeb: Remove unused functionNiels Thykier1-11/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-09-17dh_builddeb: Bump udeb compression to -z6Niels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-27dh_builddeb: Add missing commaNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-27dh_builddeb: Use default comp. settings for dbgsymsNiels Thykier1-6/+4
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-26dh_builddeb: Add dbgsym packages as separate tasksNiels Thykier1-22/+34
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-24dh_builddeb: Re-indent codeNiels Thykier1-51/+51
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-24dh_builddeb: Use the new code for running in parallelNiels Thykier1-29/+3
Re-indent pending next comment. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-13Avoid forking for most renamesNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02Refactor install_dir usage to avoid the "if -d " testsNiels Thykier1-3/+1
They were not needed in the first place (as "install -d" DTRT). Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-14dh_*: Replace ddeb with dbgsymNiels Thykier1-11/+11
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-30dh_builddeb: Generate the correct filename for udebsNiels Thykier1-3/+42
dpkg-gencontrol does not include "Package-Type" in the control file (see #575059, #452273) for political reasons. dh_builddeb used to guess the "correct" filename, but it fell short when dpkg-gencontrol -V was used. The best solution so far: Let dpkg-deb build the deb and have dh_builddeb fix the extension. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-30Skip building ddebs for udebs temporarilyNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-30Revert "dh_builddeb: Let dpkg determine the udeb filename by default"Niels Thykier1-3/+6
This reverts commit b418f73de540dcc3c050c935dab90eed23fe610c. While dpkg-gencontrol does the right thing, dpkg-deb does not realise it is building a udeb.
2015-08-30dh_builddeb: Let dpkg determine the udeb filename by defaultNiels Thykier1-6/+3
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-14dh_builddeb: Let dpkg choose the filename of the ddebNiels Thykier1-2/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-20Update documentation of dh_builddeb and dh_gencontrolNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-20dh_builddeb: Skip ddebs without control filesNiels Thykier1-8/+16
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-02dh_builddeb: Use explicit -Z arg for ddebs to avoid FTBFSNiels Thykier1-3/+18
When maintainer passes (e.g.) -Zgzip to dpkg-deb via dh_builddeb, then we cannot pass that AND -Sextreme to dpkg-deb as gzip does not support the "extreme" compression strategy. For now, simply use the compression parameters given by the maintainer for the .ddeb as well. It is not clear to me that this is truly the best long term solution. The maintainer probably only wanted the -Z to apply for the actual deb and not the ddeb. Reported-by: Reiner Herrmann <reiner@reiner-h.de> Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-02dh_builddeb: Also build ddebs for udebsNiels Thykier1-6/+6
As dh_gencontrol creates a control file for it and adds it to d/files, dh_builddeb needs to build it as well. Otherwise, post-build tools might be confused by the absence of a (d)deb listed in d/files. Reported-by: Reiner Herrmann <reiner@reiner-h.de> Signed-off-by: Niels Thykier <niels@thykier.net>
2015-05-02Add experimental .ddeb supportNiels Thykier1-0/+7
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>
2012-05-13document parallel buildsJoey Hess1-0/+3
2012-05-13dh_builddeb: Build udebs with xz compression, level 1, extreme strategy.Joey Hess1-1/+2
* dh_builddeb: Build udebs with xz compression, level 1, extreme strategy. This has been chosen to not need any more memory or cpu when uncompressing, while yeilding the best compressions for udebs. Thanks, Philipp Kern. * Depend on a new enough dpkg for above features. Backporters will need to revert these changes.
2011-09-09Tighten parsing of DEB_BUILD_OPTIONS.Joey Hess1-4/+1
A future nostripexceptonfullmoon option seems unlikely, but sure, let's be strict. More importantly, let's reuse good code.
2011-07-17tweakJoey Hess1-1/+1
2011-07-17fix exit status propigationJoey Hess1-34/+40
Also simplified a lot by not special-casing the base case, at the cost of always forking once.
2011-07-17no need to wait when parallel is disabledJoey Hess1-1/+1
2011-07-17minorJoey Hess1-2/+3
2011-07-17dh_builddeb: support for parallel builds of debsGergely Nagy1-17/+42
Implement support for parallel deb builds, when DEB_BUILD_OPTIONS has parallels=N - limiting the number of forked processes to N. Requested-By: Kari Pahula <kaol@debian.org> Signed-Off-By: Gergely Nagy <algernon@madhouse-project.org>
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.
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-08-04dh_builddeb: Fix man page typo. Closes: #539976Joey Hess1-1/+1
2009-06-28clean up --sourcedir/--sourcedirectory conflictJoey Hess1-0/+1
* Move two move command-specific options to only be accepted by the commands that use them. The options are: --sourcedir, --destdir * If any third-party debhelper commands use either of the above options, they will be broken, and need to be changed to pass options to init(). This was done because of a conflict with the --sourcedirectory options used by dh_auto_*. I originally wanted to make dh_auto_* and dh_install both use --sourcedir, but that didn't work out.
2008-10-21Move many command-specific options to only be accepted by the command that ↵Joey Hess1-1/+3
uses them. Affected options are: -x, -r, -R, -l, -L, -m, --include-conffiles, --no-restart-on-upgrade, --no-start, --restart-after-upgrade, --init-script, --filename, --flavor, --autodest, --libpackage, --add-udeb, --dpkg-shlibdeps-params, --dpkg-gencontrol-params, --update-rcd-params, --major, --remove-d, --dirs-only, --keep-debug, --version-info, --list-missing, --fail-missing, --language, --until, --after, --before, --remaining, --with * If any third-party debhelper commands use any of the above options, they will be broken, and need to be changed to pass options to init(). * To avoid breaking rules files that pass options to commands that do not use them, debhelper will now only warn if it encounters an unknown option. This will be converted back to an error later.
2008-06-16Typo fix. Closes: #486464Joey Hess1-1/+1
2008-04-23initial version of dh, with option parsing and sequences in placeJoey Hess1-1/+1
2007-04-09r1980: * prerm and postrm scripts are now generated in a reverse order thanjoeyh1-2/+9
preinst and postinst scripts. For example, if a package uses dh_pysupport before dh_installinit, the prerm will first stop the init script and then remove the python files. * Introducing beginning of v6 mode. * dh_installwm: In v6 mode, install a slave manpage link for x-window-manager.1.gz. Done in v6 mode because some window managers probably work around this longstanding debhelper bug by registering the slave on their own. This bug was only fixable once programs moved out of /usr/X11R6. Closes: #85963 * dh_builddeb: In v6 mode, fix bug in DH_ALWAYS_EXCLUDE handling, to work the same as all the other code in debhelper. This could only be fixed in v6 mode because packages may potentially legitimately rely on the old buggy behavior. Closes: #242834 * dh_installman: In v6 mode, overwrite exsiting man pages. Closes: #288250
2004-02-09r1655: * Added udeb support, as pioneered by di-packages-build. Understandsversion_4.2.0joey1-1/+10
"XC-Package-Type: udeb" in debian/control. See debhelper(1) for details. * Dh_Lib: add and export is_udeb and udeb_filename * dh_builddeb: name udebs with proper extension * dh_gencontrol: pass -n and filename to dpkg-gencontrol * dh_installdocs, dh_makeshlibs, dh_md5sums, dh_installchangelogs, dh_installexamples, dh_installman, dh_installmanpages: skip udebs * dh_shlibdeps: skip udebs. This may be temporary. * dh_installdeb: do not process conffiles, shlibs, preinsts, postrms, or prerms for udebs. Do not substiture #DEBHELPER# tokens in postinst scripts for udebs. * dh_installdebconf: skip config script for udebs, still do templates
2003-04-06r582: * Fix build with 077 umask. Closes: #187757joey1-1/+2
* Allow colons between multiple items in DH_ALWAYS_EXCLUDE.
2003-03-03r576: * Rename debhelper.1 to debhelper.7.joey1-1/+1
* Typo, Closes: #183267
2002-11-24r567: * dh_builddeb: Reluctantly call dpkg-deb directly. dpkg cannot pass ↵joey1-3/+3
extra params to dpkg-deb. Closes: #170330