]> git.donarmstrong.com Git - debhelper.git/blob - doc/TODO
r506: * Introduced the debian/compat file. This is the new, preferred way to say
[debhelper.git] / doc / TODO
1 This is the TODO for debhelper. As more and more people use debhelper, this
2 list grows - I welcome patches to fix items on it!
3
4 Wishlist items:
5
6 * All debhelper programs should only accept the options they are documented
7   to accept (rather than accepting all debhelper options). They should
8   be able to print breif usage summaries.
9
10   I think this calls for a restucturing. Make a Debhelper.pm class. Each
11   program subclasses the class. The class provides command line parsing,
12   useful functions, and so on. Skeleton of a debhelper command would then
13   be:
14
15   use base qw{Debhelper};
16
17   sub startup {
18         # Add initialization stuff here.
19   }
20
21   sub perpackage {
22         my $package=shift;
23
24         # Stuff to do for each package here.
25   }
26
27   sub fini {
28         # And final stuff here, if any.
29   }
30
31   This needs more thought.
32   
33 * All debhelper programs should be checked that they output files with the
34   correct permissions no matter what the umask is set to. Currently, only
35   those programs that run after dh_fixperms have been so checked. (Checking
36   the rest is low priority, since dh_fixperms fixes any incorrect permissions
37   they might have; still it would be nice to check them too, just to make
38   debhelper more flexible.) One easy fix is to add umask 022 to dh_lib,
39   however, there may be unforeseen ramifications of such a change.
40 * All programs should also make sure the files they install are owned by
41   root.root. Situation is currently the same as with permissions above, plus
42   dh_installchangelogs is fixed.
43 * Support use of environment variables in data taken from user, ie, in
44   debian/dirs. The problem with doing this is that we really want to allow
45   any filenames in that input, even those that look like environment
46   variables. However, it may be worth adding a switch to make it parse
47   environment variables. (#20964)
48 * It's possible to speed up debhelper by having it cache some values that
49   multiple commands call. One way to do this would be to write dh_cache,
50   that generates the cache. The catch is that if the user runs that program,
51   they are stating that they don't do anything later to invalidate the cache,
52   without calling dh_cache again. (#23792)
53 * Add a switch to dh_installdeb to allow it to do user defined
54   substitutions. OTOH, maybe it's better if people just sed
55   postinst.in before debhelper gets it's hands on it... (#25235)
56 * dh_installdocs needs -X support, which probably means going with tar
57   instead of cp -a. Ugh.
58
59 v4:
60
61 See debhelper's man page for what's implemented so far.
62
63 These items are planned:
64
65 * Maybe make dh_fixperms make all files in bin/ dirs +x. (#119039)
66
67 Deprecated:
68
69 * DH_COMPAT 1. Can be removed once all packages are seen to be using 2 or
70   higher. I won't hold my breath.
71 * Also, grep the entire archive for all dh_* command lines (I do this now),
72   and check to see what other switches are not being used, and maybe remove
73   some of them. I'd also like to depercate/remove debian/compress files, -X is
74   a better idea.
75 * dh_suidregister. Once nothing in the archive uses it.
76 * dh_installmanpages. Only mildly deprecated right now. Once dh_installman
77   catches on, make it emit a warning, and then wait for it to go away.
78 * dh_testversion. Remove as soon as nothing uses it.
79 * dh_installxaw. xaw replacments are dying, nothing uses it validly (bugs
80   filed on the few packages that use it by accident). Remove as soon as
81   nothing uses it, or by april 2002.