summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Lib.pm
Commit message (Collapse)AuthorAge
* Revert "Improvements in DH_OPTIONS handling and DH_AUTO_OPTIONS envvar support."Modestas Vainius2009-06-13
| | | | | | | | | | | | This mostly reverts commit f897611a77726655aea258af0c4d52a8ce759ebc. Remaining cosmetic changes (all functional changes have been reverted): * Refactoring of option string into split_options_string() sub (no semantic changes though). * Cosmetic change in Dh_Buildsystems.pm. Breaks testsuite.
* Improvements in DH_OPTIONS handling and DH_AUTO_OPTIONS envvar support.Modestas Vainius2009-06-08
| | | | | | | | | | | | | | * DH_AUTO_OPTIONS is like existing DH_OPTIONS, just only for dh_auto stuff. This also avoids "explosion" of separate DH_AUTO_* environment variables (i.e. exports in debian/rules) and encourages usage of dh_auto command line option names. DH_AUTO_OPTIONS is passed via "extra_args" to Dh_Lib::init() (API addition). * When splitting options from DH_OPTIONS and its flavours, allow arguments to include whitespaces if they are escaped with backslash (\) (see split_options_string()). Document this in debhelper.pod. * Short option for --buildsystem is -c (aka class). * Provide API to cancel option specs from default debhelper options. It will be used in the feature.
* Merge branch 'master' into buildsystemsJoey Hess2009-05-14
|\ | | | | | | | | | | Conflicts: debian/changelog dh_auto_configure
| * Support debian/foo.os files to suppliment previous debian/foo.arch file ↵Joey Hess2009-05-12
| | | | | | | | support. Closes: #494914 (Thanks, Aurelien Jarno)
* | Merge branch 'master' into buildsystemsJoey Hess2009-05-11
|\| | | | | | | | | | | Conflicts: debian/changelog dh_auto_configure
| * Close COMPAT_IN filehandle. Closes: #527464Joey Hess2009-05-07
| |
* | Add dpkg_architecture_value and sourcepackage to Dh_LibModestas Vainius2009-04-10
|/ | | | | | | | | Both these function are taken from dh_auto_configure. I believe they are useful enough to be in Dh_Lib (esp. dpkg_architecture_value()). The patch removes these funtions from dh_auto_configure too. Signed-off-by: Modestas Vainius <modestas@vainius.eu>
* export write_logJoey Hess2009-03-23
| | | | Avoids the ugly thunk in dh
* minor coding stlyeJoey Hess2009-03-23
|
* Add a global --remaining-packages option.Modestas Vainius2009-03-23
| | | | | | | | Add a global --remaining-packages option which allows to skip the command on the packages which it has already been run on (i.e. if the command helper is already present in the package debhelper log). Signed-off-by: Modestas Vainius <modestas@vainius.eu>
* remove dead codeJoey Hess2009-03-20
| | | | | This case can never happen, because code in Dh_Getopt makes the same check earlier.
* Compatability level 4 is now deprecated.Joey Hess2009-03-07
|
* Improve error messages when child commands fail.Joey Hess2009-02-21
|
* dh override targetsJoey Hess2009-02-16
| | | | | | | | | | * dh: debian/rules override targets can change what is run for a specific debhelper command in a sequence. * dh: Redid all the examples to use override targets, since these eliminate all annoying boilerplate and are much easier to understand than the old method. * Remove rules.simple example, there's no need to use explcit targets with dh anymore.
* Ignore unknown options in DH_OPTIONS. Debhelper will always ignore such ↵Joey Hess2008-12-14
| | | | options, even when unknown command-line options are converted back to an error. This allows (ab)using DH_OPTIONS to pass command-specific options. (Note that getopt will warn about such unknown options. Eliminating this warning without reimplementing much of Getopt::Long wasn't practical.)
* Allow individual debhelper programs to define their own special options by ↵Joey Hess2008-10-21
| | | | passing a hash to init(), which is later passed on the Getopt::Long. Closes: #370823
* Convert copyright file to new format.Joey Hess2008-04-30
|
* improve error furtherJoey Hess2008-04-29
|
* Add missing $! to error message when the log can't be opened.Joey Hess2008-04-29
|
* dh_prep: New program, does the same as dh_clean -k (which will be deprecated ↵Joey Hess2008-04-23
| | | | later).
* don't log dh runsJoey Hess2008-04-23
|
* updatesJoey Hess2008-04-23
|
* New v7 mode, which only has one change from v6, and is the new recommended ↵Joey Hess2008-04-23
| | | | | | | | | | | default. * New v7 mode, which only has one change from v6, and is the new recommended default. * dh_install: if --sourcedir is not specified, first look for files in debian/tmp, and then will look in the current directory. This allows dh_install to interoperate with dh_auto_install without needing any special parameters.
* Record debhelper commands that successfully finish in a per-package log file.Joey Hess2008-04-23
|
* * The order of dependencies generated by debhelper has been completly randomJoey Hess2008-03-04
| | | | (hash key order), so sort it. Closes: #468959
* r2033: * Add --ignore option. This is intended to ease dealing with upstreamjoeyh2007-09-30
| | | | | | | | tarballs that contain debian directories, by allowing debhelper config files in those directories to be ignored, since there's generally no good way to delete them out of the upstream tarball, and they can easily get in the way if upstream is using debian/ differently than the Debian maintainer.
* r2003: * Add some checks for attempts to act on packages not defined in the ↵joeyh2007-05-28
| | | | | | control file.
* r1987: * Do script fragement reversal only in v6, since it can break certianjoeyh2007-04-13
| | | | third party programs such as dh_installtex. Closes: #419060
* r1980: * prerm and postrm scripts are now generated in a reverse order thanjoeyh2007-04-09
| | | | | | | | | | | | | | | | | 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
* r1966: * Looks like Package-Type might get into dpkg. Support it w/o the XB-joeyh2007-01-10
| | | | too.
* r1925: typojoeyh2006-06-07
|
* r1924: * Patch from Guillem Jover to make --same-arch handling code supportjoeyh2006-06-07
| | | | | | | the new form of architecture wildcarding which allows use of things like "linux-any" and "any-i386" in the Architecture field. Note that you'll need to build-depend on a new enough dpkg-dev if using this support. Closes: #371082
* r1889: releasing version 5.0.26joeyh2006-03-23
|
* r1884: impove some errorsjoeyh2006-03-13
|
* r1859: * Reverted change in 4.1.9, so generation of EXCLUDE_FIND escapes "." tojoeyh2006-01-20
| | | | | | | | "\\.", which turns into "\." after being run through the shell, and prevents find from treating -X.svn as a regexp that matches files such as foo/svn.vim. (It's safe to do this now that all uses of EXCLUDE_FIND are via complex_doit(), which was not the case of dh_clean when this change was originally made.) Closes: #349070
* r1822: releasing version 5.0.7joey2005-11-14
|
* r1805: releasing version 5.0.0joey2005-11-02
|
* r1772: releasing version 4.9.4joey2005-07-19
|
* r1768: releasing version 4.9.2joey2005-06-23
|
* r1763: releasing version 4.9.0joey2005-06-13
|
* r1743: releasing version 4.2.32joey2005-03-27
|
* r1740: releasing version 4.2.31joey2005-02-16
|
* r1700: * Make dh_gconf postinst more portable.joey2004-07-11
| | | | * Strip spoch when generating udeb filenames. Closes: #258864
* r1697: * Spanish man page updates from Ruben Porras. Closes: #247382joey2004-07-09
| | | | | | | | | | | | | | | | | | | | | | | | | | * dh_gconf: gconf schemas moved to /usr/share/gconf/schemas. Relocate schemas from /etc/gconf/schemas. (Josselin Mouette) * dh_gconf: kill gconfd-2 so that the newly installed schemas are available straight away. (Josselin Mouette) * dh_gconf: fix bashism in restart of gconfd-2 * dh_gconf: fix innaccuracy in man page; gconfd-2 is HUPPed, not killed. * dh_scrollkeeper: stop adding scrollkeeper to misc:Depends, since the postinst will not run it if it's not installed, and a single run after it's installed is sufficient to find all documents. Closes: #256745 * dh_fixperms: make .ali files mode 444 to prevent recompilation by GNAT. For speed, only scan for .ali files in usr/lib/ada. Closes: #245211 * dh_python: check to make sure compileall.py is available before running it in the postinst. Closes: #253112 * dh_installmodules: install debian/package.modprobe into etc/modprobe.d/ for module-init-tools. These files can sometimes need to differ from the etc/modutils/ files. Closes: #204336, #234495 * dh_installmanpages is now deprecated. * Add a test case for bug #244157, and fixed the inverted ok() parameters in the others, and added a few new tests. * dh_link: applied GOTO Masanori's patch to fix conversion of existing relative symlinks between top level directories. Closes: #244157 * Warn if debian/compat is empty.
* r1691: * dh_installinit: Added --error-handler option. Based on work by ↵joey2004-06-29
| | | | | | Thom May. Closes: #209090
* r1655: * Added udeb support, as pioneered by di-packages-build. Understandsjoey2004-02-09
| | | | | | | | | | | | | | | "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
* r1596: * Remove duplicate packages from DOPACKAGES after argument processing.joey2003-08-22
| | | | | | | | | | | | | | Closes: #112950 * dh_compress: deal with links pointing to links pointing to compressed files, no matter what order find returns them. Closes: #204169 * dh_installmodules, dh_installpam, dh_installcron, dh_installinit, dh_installogrotate: add --name= option, that can be used to specify the name to use for the file(s) installed by these commands. For example, dh_installcron --name=foo will install debian/package.foo.cron.daily to etc/cron.daily/foo. Closes: #138202, #101003, #68545, #148844 (Thanks to Thomas Hood for connecting these bug reports.) * dh_installinit: deprecated --init-script option in favor of the above. * Add dh_installppp. Closes: #43403
* r582: * Fix build with 077 umask. Closes: #187757joey2003-04-06
| | | | * Allow colons between multiple items in DH_ALWAYS_EXCLUDE.
* r573: * dh_md5sums: note that it's used by debsums. Closes: #181521joey2003-02-19
| | | | | | * Make addsubstvars() escape the value of the variable before passing it to the shell. Closes: #178524 * Fixed escape_shell()'s escaping of a few things.
* r565: * Various minor changes based on suggestions by luca.joey2002-11-21
|