summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Lib.pm
Commit message (Collapse)AuthorAge
* * 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
|
* r558: * Use dpkg-architecture instead of dpkg --print-architecture (again?)joey2002-10-17
| | | | | | See #164863 * typo fix Closes: #164958 The rest seems clear enough from context, so omitted.
* r551: * Make addsubstvars remove old instances of line before adding new. ↵joey2002-09-22
| | | | | | | This will make dh_perl get deps right for packages that have perl modules and XS in them.
* r549: * Fixed over-escaping of period when generating EXCLUDE_FIND.joey2002-09-16
| | | | Closes: #159155
* r546: * dh_builddeb(1): It's --filename, not --name. Closes: #160151joey2002-09-09
|
* r545: * Clarified dh_perl man page. Closes: #159332joey2002-09-03
|
* r532: * Added --mainpackage= option, of use in some kernel modules packages.joey2002-06-20
| | | | | | * dh_gencontrol only needs to pass -p to dpkg-gencontrol if there is more than one package in debian/control. This makes it a bit more flexible in some cases.
* r526: * Don't leak regex characters from -X when generating DH_EXCLUDE_FIND.joey2002-05-23
|
* r523: * Removing perl warning message.joey2002-05-19
|
* r522: * Set DH_ALWAYS_EXCLUDE=CVS and debhelper will exclude CVS directoriesjoey2002-05-19
| | | | | | | | | | | from processing by any command that takes a -X option, and dh_builddeb will also go in and rm -rf any that still sneak into the build tree. * dh_install: A patch from Eric Dorland <eric@debian.org> adds support for --sourcedir, which allows debian/package.files files to be moved over to debian/package.install, and just work. Closes: #146847 * dh_movefiles: don't do file tests in no-act mode. Closes: #144573 * dh_installdebconf: pass --drop-old-templates to debconf-mergetemplate. Means debhelper has to depend on debconf-utils 1.1.1.
* r519: * dh_installdebconf: allow parameters after -- to go tojoey2002-04-14
| | | | | | debconf-mergetemplate. * dh_installman: don't whine about zero-length man pages in .so conversion. * Forgot to export filedoublearray, Closes: #142784
* r518: * dh_movefiles has long been a sore point in debhelper. Inheritedjoey2002-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from debstd, its interface and implementation suck, and I have maintained it while never really deigning to use it. Now there is a remplacment: dh_install, which ... - copies files, doesn't move them. Closes: #75360, #82649 - doesn't have that whole annoying debian/package.files vs. debian/files mess, as it uses debian/install. - supports copying empty subdirs. Closes: #133037 - doesn't use tar, thus no error reproting problems. Closes: #112538 - files are listed relative to the pwd, debian/tmp need not be used at all, so no globbing issues. Closes: #100404 - supports -X. Closes: #116902 - the whole concept of moving files out of a directory is gone, so this bug doesn't really apply. Closes: #120026 - This is exactly what Bill Allombert asked for in #117383, even though I designed it seemingly independantly. Thank you Bill! Closes: #117383 * Made debhelper's debian/rules a lot simpler by means of the above. * Updated example rules file to use dh_install. Also some reordering and other minor changes. * dh_movefiles is lightly deprecated, and when you run into its bugs and bad design, you are incouraged to just use dh_install instead. * dh_fixperms: in v4 only, make all files in bin/ dirs +x. Closes: #119039 * dh_fixperms: in v4 only, make all files in etc/init.d executable (of course there's -X ..) * dh_link: in v4 only, finds existing, non-policy-conformant symlinks and corrects them. This has the side effect of making dh_link idempotent. * Added a -h/--help option. This seems very obvious, but it never occured to me before.. * use v4 for building debhelper itself * v4 mode is done, you may now use it without fear of it changing. (This idea of this upload is to get v4 into woody so people won't run into many issues backporting from sarge to woody later on. Packages targeted for woody should continue to use whatever compatability level they are using.)
* r517: * Fixed an uninitialized value warning, Closes: #141729joey2002-04-08
|
* r515: updatesjoey2002-03-24
|
* r510: * Thanks to Benjamin Drieu <benj@debian.org>, dh_installdocs -X now ↵joey2002-02-17
| | | | | | | | | | | | works. I had to modify his patch to use cp --parents, since -P spews warnings now. Also, I made it continue to use cp -a if nothing is excluded, which is both faster, and means this patch is less likely to break anything if it turns out to be buggy. Also, stylistic changes. Closes: #40649 * Implemented -X for dh_installexamples as well. * dh_clean -X substvars will also work now. Closes: #66890
* r509: * dh_perl: don't gripe if there is no substvar file. Closes: #133140joey2002-02-09
|
* r508: * Typo, Closes: #132454joey2002-02-06
| | | | * Ignore leading/trailing whitespace in DH_OPTIONS, Closes: #132645
* r506: * Introduced the debian/compat file. This is the new, preferred way ↵joey2002-01-27
| | | | | | | | | | | | | | | | | | | | | | to say what debhelper compatability level your package uses. It has the big advantage of being available to debhelper when you run it at the command line, as well as in debian/rules. * A new v4 feature: dh_installinit, in v4 mode, will use invoke-rc.d. This is in v4 for testing, but I may well roll it back into v3 (and earlier) once woody is released and I don't have to worry about breaking things (and, presumably, once invoke-rc.d enters policy). * Some debhelper commands will now build up a new substvars variable, ${misc:Depends}, based on things they know your package needs to depend on. For example, dh_installinit in v4 mode adds sysvinit (>= 2.80-1) to that dep list, and dh_installxfonts adds a dep on xutils. This variable should make it easier to keep track of what your package needs to depends on, supplimenting the ${shlibs:Depends} and ${perl:Depends} substvars. Hmm, this appears to be based loosely on an idea by Masato Taruishi <taru@debian.org>, filtered through a long period of mulling it over. Closes: #76352 * Use the addsubstvar function I wrote for the above in dh_perl too.
* r501: * Began work on v4 support (and thus the large version number ↵joey2002-01-06
| | | | | | | | | | | | | | | | | | | | | jump), and it is only for the very brave right now since I will unhesitatingly break compatability in v4 mode as I'm developing it. Currently, updating to v4 mode will only make dh_makeshlibs -V generate shared library deps that omit the debian part of the version number. The reasoning behind this change is that the debian revision should not typically break binary compatability, that existing use of -V is causing too tight versioned deps, and that if you do need to include the debian revision for some reason, you can always write it out by hand. Closes: #101497 * dh_testversion is deprecated -- use build deps instead. A warning message is now output when it runs. Currently used by: 381 packages. * dh_installxaw is deprecated -- xaw-wrappers in no longer in the distribution. A warning message is now output when it runs. Currently used by: 3 packages (bugs filed). * Added referneces to menufile in dh_installmenu man page. Closes: #127978 (dh_make is not a part of debhelper, if you want it changed, file a bug on dh-make.)
* r498: * Typo, Closes: #122679joey2001-12-21
| | | | | * Export dirname from Dh_Lib, and related cleanup, Closes: #125770 * Document dirname, basename in PROGRAMMING
* r495: * dh_undocumented: check for existing uncompressed man pages. ↵joey2001-11-17
| | | | | | | | | | | Closes: #87972 * Optimized dh_installdeb conffile finding. Closes: #119035 * dh_installdeb: changed the #!/bin/sh -e to set -e on a new line. Whether this additional bloat is worth it to make it easier for people to sh -x a script by hand is debatable either way, I guess. Closes: #119046 * Added a check for duplicated package stanzas in debian/control, Closes: #118805
* r482: * Spellpatch, Closes: #101553joey2001-06-21
|
* r472: * Fixed issues with extended parameters to dh_gencontrol including ↵joey2001-05-29
| | | | | | | | | | | | | | | spaces and quotes. This was some histirical cruft that deals with splitting up the string specified by -u, and it should not have applied to the set of options after --. Now that it's fixed, any and all programs that support a -- and options after it, do not require any special quoting of the succeeding options. Quote just like you would in whatever program those options go to. So, for example, dh_gencontrol -Vblah:Depends='foo, bar (>= 1.2)' will work just as you would hope. This fix does NOT apply to -u; don't use -u if you must do something complex. Closes: #89311 * Made escape_shell output a lot better.
* r471: * Always include package name in maintainer script fragment filenamesjoey2001-05-24
| | | | | | and generated shlibs files (except for in DH_COMPAT=1 mode). This is a purely cosmetic change, and if it breaks anything, you were using an undocumented interface. Closes: #95387
* r449: * dh_perl updatejoey2001-02-25
|