changelog & upgrading checklist for CC0
[debian-policy.git] / README.md
blob90ea9ad7b1b95cd7b801b10582a3be4516efeec3
1 Format: complete
2 Css: README.css
3 Title: Debian Policy
4 Author: Manoj Srivastava and Russ Allbery
5 Email: debian-policy@packages.debian.org
6 Link Home: https://wiki.debian.org/Teams/Policy
7 Link Up: https://www.debian.org/
9 # Debian Policy
11 ## Infrastructure
13 + Website:: <https://www.debian.org/doc/devel-manuals#policy>
14 + Mailing list:: <debian-policy@lists.debian.org> lists
15 + Source Code::
16   * git clone git://anonscm.debian.org/dbnpolicy/policy.git
17   * Browser: <https://anonscm.debian.org/gitweb/?p=dbnpolicy/policy.git>
18 + Unix group:: dbnpolicy
19 + Alioth Project:: <https://alioth.debian.org/projects/dbnpolicy> (exists
20   to manage the repository but not otherwise used)
22 ### Interacting with the team
24 + Email contact:: <debian-policy@lists.debian.org>
25 + Request tracker:: <https://bugs.debian.org/src:debian-policy>
27 Debian Policy uses a formal procedure and a set of user tags to manage
28 the lifecycle of change proposals. For definitions of those tags and
29 proposal states and information about what the next step is for each
30 phase, see [Policy changes process](./Process.md).
32 Once the wording for a change has been finalized, please send a patch
33 against the current Git master branch to the bug report, if you're not
34 familiar with Git, the following commands are the basic process:
37     git clone git://anonscm.debian.org/dbnpolicy/policy.git
38     git checkout -b <local-branch-name>
40     # edit files, but don't make changes to upgrading-checklist or debian/changelog
41     git add <files>
42     git commit
43     # repeat as necessary
45     # update your branch against the current master
46     git checkout master
47     git pull
49     git checkout master
50     git merge --no-commit <local-branch-name>
51     git reset --hard HEAD;
52     git checkout <local-branch-name>;
54     # If there are changes in master that make the branch not apply cleanly,
55     # there should have been en error during the merge step above. If there
56     # was an error, merge the master branch into the local branch, fix the
57     # conflicts, and commit the new version of the local branch.
58      : git merge master
59     # Edit files to remove conflict
60      : git commit -s
62     # Checkout the local branch, to create the patch to send to the policy
63     git checkout <local-branch-name>
64     dir=$(mktemp -d)
65     git format-patch -o $dir -s master
66     # check out the patches created in $dir
67     git send-email --from "you <your@email>"             \
68                    --to debian-policy@lists.debian.org   \
69                    $dir/
71 &lt;local-branch-name&gt; is some convenient name designating your local
72 changes. You may want to use some common prefix like local-. You can
73 use git format-patch and git send-email if you want, but usually it's
74 overkill.
76 ## Usual Roles
78 The Debian Policy team are official project delegates (see the DPL
79 delegation). All of the Policy team members do basically the same
80 work: shepherd proposals, propose wording, and merge changes when
81 consensus has been reached. The current delegates are:
83 + Andreas Barth (aba)
84 + Bill Allombert (ballombe)
85 + Sean Whitton (spwhitton)
86 + Russ Allbery (rra)
88 ## Task description
90 The Debian Policy team is responsible for maintaining and coordinating
91 updates to the Debian Policy Manual and all the other policy documents
92 released as part of the "debian-policy" package.
94 The Debian Policy Editors:
96 + Guide the work on the Debian Policy Manual and related documents as a
97   collaborative process where developers review and second or object to
98   proposals, usually on the debian-policy mailing list.
99 + Count seconds and weight objections to proposals, to determine whether
100   they have reached sufficient consensus to be included, and accept
101   consensual proposals.
102 + Reject or refer to the Technical Committee proposals that fail to
103   reach consensus.
104 + Commit changes to the version control system repository used to
105   maintain the Debian Policy Manual and related documents.
106 + Maintain the "debian-policy" package. As package maintainers, they
107   have the last word on package content, releases, bug reports, etc.
109 Everything else can be done by anyone, or any DD (depending on the
110 outcome of the discussion about seconding). We explicitly want any
111 Debian DD to review and second or object to proposals. The more
112 participation, the better. Many other people are active on the Policy
113 mailing list without being project delegates.
115 In addition to the main technical manual, the team currently also maintains:
117 + [Machine-readable debian/copyright format](https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/)
118 + [Debian Menu sub-policy](https://www.debian.org/doc/packaging-manuals/menu-policy/)
119 + [Debian Perl Policy](https://www.debian.org/doc/packaging-manuals/perl-policy/)
120 + [Debconf Specification](https://www.debian.org/doc/packaging-manuals/debconf_specification.html)
121 + [Authoritative list of virtual package names](https://www.debian.org/doc/packaging-manuals/virtual-package-names-list.txt)
123 These documents are maintained using the Policy changes process (see
124 final appendix to policy), and the current state of all change
125 proposals is tracked using the
126 [debian-policy BTS](https://bugs.debian.org/src:debian-policy).
128 ## Get involved
130 The best way to help is to review the [current open bugs](https://bugs.debian.org/src:debian-policy),
131 pick a bug that no one is currently shepherding (ask on
132 [debian-policy@lists.debian.org](mailto:debian-policy@lists.debian.org) if
133 you're not sure if a particular bug
134 is being shepherded), and help it through the change process. This
135 will involve guiding the discussion, seeking additional input
136 (particularly from experts in the area being discussed), possibly
137 raising the issue on other mailing lists, proposing or getting other
138 people to propose specific wording changes, and writing diffs against
139 the current Policy document. All of the steps of the Policy changes process
140 can be done by people other than Policy team members except
141 the final acceptance steps and almost every change can be worked on
142 independently, so there's a lot of opportunity for people to help.
144 There are also some other, larger projects:
146 + Policy contains several appendices which are really documentation of
147   how parts of the dpkg system works rather than technical
148   Policy. Those appendices should be removed from the Policy document
149   and maintained elsewhere, probably as part of dpkg, and any Policy
150   statements in them moved into the main document. This project will
151   require reviewing the current contents of the appendices and feeding
152   the useful bits that aren't currently documented back to the dpkg
153   team as documentation patches.
154 + Policy has grown organically over the years and suffers from
155   organizational issues because of it. There has been quite a bit of
156   discussion of a new format that would allow for this, probably as
157   part of switching to DocBook, but as yet such a reorganization and
158   reworking has not been started.
160 If you want to work on any of these projects, please mail
161 [debian-policy@lists.debian.org](mailto:debian-policy@lists.debian.org)
162 for more information. We'll be happy to help you get started.
164 ## Maintenance procedures
166 ### Repository layout
168 The Git repository used for Debian Policy has the following branches:
170 + master:: the current accepted changes that will be in the next release
171 + bug&lt;number&gt;-&lt;user&gt;:: changes addressing bug &lt;number&gt;,
172   shepherded by &lt;user&gt;
173 + rra:: old history of Russ's arch repository, now frozen
174 + srivasta:: old history of Manoj's arch repository
176 ### Managing a bug
178 The process used by Policy team members to manage a bug, once there is
179 proposed wording, is:
181 + Create a bug&lt;number&gt;-&lt;user&gt; branch for the bug, where
182   &lt;number&gt; is the bug number in the BTS and &lt;user&gt;is a
183   designator of the Policy team member who is shepherding the bug.
184 + Commit wording changes in that branch until consensus is
185   achieved. Do not modify debian/changelog or upgrading-checklist.xml
186   during this phase. Use the BTS to track who proposed the wording and
187   who seconded it.
188 + git pull master to make sure you have the latest version.
189 + Once the change has been approved by enough people, git merge the
190   branch into master immediately after making the final commit adding
191   the changelog entry to minimize conflicts.
192 + add the debian/changelog and upgrading-checklist.xml changes, and
193   commit to master.
194 + Push master out so other people may merge in their own bug branches
195   without conflicts.
196 + Tag the bug as pending and remove other process tags.
197 + Delete the now-merged branch.
199 The Git commands used for this workflow are:
201     git checkout -b bug12345-rra master
202     # edit files
203     # git add files
204     git commit
205     git push origin bug12345-rra
206     # iterate until good
207     # update your local master branch
208     git checkout master
209     git pull
211     git checkout master
212     git merge --no-commit bug12345-rra
213     git reset --hard HEAD;
215     # If there are changes in master that make the branch not apply cleanly,
216     # there should have been en error during the merge step above. If there
217     # was an error, merge the master branch into the local branch, fix the
218     # conflicts, and commit the new version of the local branch.
219      : git checkout bug12345-rra
220      : git merge master
221     # Edit files to remove conflict
222      : git commit -s
224     git checkout master
225     git merge bug12345-rra
226     # edit debian/changelog and upgrading-checklist.xml
227     git add debian/changelog upgrading-checklist.xml
228     git commit
229     git push origin master
230     git branch -d bug12345-rra
231     git push origin :bug12345-rra
233 For the debian/changelog entry, use the following format:
235     * <document>: <brief change description>
236       Wording: <author of wording>
237       Seconded: <seconder>
238       Seconded: <seconder>
239       Closes: <bug numbers>
241 For example:
243     * Policy: better document version ranking and empty Debian revisions
244       Wording: Russ Allbery <rra@debian.org>
245       Seconded: RaphaĆ«l Hertzog <hertzog@debian.org>
246       Seconded: Manoj Srivastava <srivasta@debian.org>
247       Seconded: Guillem Jover <guillem@debian.org>
248       Closes: #186700, #458910
250 ### Updating branches
252 After commits to master have been pushed, either by you or by another
253 Policy team member, you will generally want to update your working bug
254 branches. The equivalent of the following commands should do that:
256     for i in `git show-ref --heads | awk '{print $2}'`; do
257         j=$(basename $i)
258         if [ "$j" != "master" ]; then
259             git checkout $j && git merge master
260         fi
261     done
262     git push --all origin
264 assuming that you haven't packed the refs in your repository.
266 ### Making a release
268 For a final Policy release,
270 1. `dch -r` to finalise changelog
271 2. Update release date in the upgrading checklist
272 3. Bump Standards-Version in d/control
273 4. Commit these changes:
275     `git commit debian/changelog debian/control policy/upgrading-checklist.rst -m"finalise 3.9.8.0"`
277 5. Make sure the package builds and installs: `dgit sbuild` or
278    equivalent
279 6. Tag and upload: either
281   - `git tag -s 3.9.8.0` followed by `dput`; or
282   - `dgit push`
284 7. Push to alioth:
286     `git push --tags origin`
288 8. Announce on debian-devel-announce, including upgrading checklist
289    section for new release
290 9. Also consider a more informally-worded posting on a blog that is
291    syndicated to planet.debian.org.
293 ### Setting release goals
295 Policy has a large bug backlog, and each bug against Policy tends to
296 take considerable time and discussion to resolve. I've found it
297 useful, when trying to find a place to start, to pick a manageable set
298 of bugs and set as a target resolving them completely before the next
299 Policy release. Resolving a bug means one of the following:
301 + Proposing new language to address the bug that's seconded and approved by
302   the readers of the Policy list following the [Policy changes process](./Progress.md)
303   (or that's accepted by one of the Policy delegates if the change isn't
304   normative; i.e., doesn't change the technical meaning of the document).
305 + Determining that the bug is not relevant to Policy and closing it.
306 + Determining that either there is no consensus that the bug indicates
307   a problem, that the solutions that we can currently come up with are
308   good solutions, or that Debian is ready for the change. These bugs
309   are tagged wontfix and then closed after a while. A lot of Policy
310   bugs fall into this category; just because it would be useful to
311   have a policy in some area doesn't mean that we're ready to make
312   one, and keeping the bugs open against Policy makes it difficult to
313   tell what requires work. If the problem is worth writing a policy
314   for, it will come up again later when hopefully the project
315   consensus is more mature.
317 Anyone can pick bugs and work resolve them. The final determination to
318 accept a wording change or reject a bug will be made by a Policy
319 delegate, but if a patch is already written and seconded, or if a
320 summary of why a bug is not ready to be acted on is already written,
321 the work is much easier for the Policy delegate.
323 One of the best ways to help out is to pick one or two bugs (checking
324 on the Policy list first), say that you'll make resolving them a goal
325 for the next release, and guide the discussion until the bugs can
326 reach one of the resolution states above.