summaryrefslogtreecommitdiff
path: root/doc/pkgsrc.txt
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-09-12 13:40:49 +0000
committerwiz <wiz@pkgsrc.org>2017-09-12 13:40:49 +0000
commita544ea56efbc5c55b93892cf71101b507c8c4071 (patch)
treedca025b36990e4f75dda36870293baba60192c13 /doc/pkgsrc.txt
parentf34e5b9babe8c311e9f1e2ba5db396c6509069e6 (diff)
downloadpkgsrc-a544ea56efbc5c55b93892cf71101b507c8c4071.tar.gz
regen
Diffstat (limited to 'doc/pkgsrc.txt')
-rw-r--r--doc/pkgsrc.txt70
1 files changed, 54 insertions, 16 deletions
diff --git a/doc/pkgsrc.txt b/doc/pkgsrc.txt
index f243b0191a7..5105a33e285 100644
--- a/doc/pkgsrc.txt
+++ b/doc/pkgsrc.txt
@@ -354,10 +354,11 @@ II. The pkgsrc developer's guide
21.1. Submitting binary packages
21.2. Submitting source packages (for non-NetBSD-developers)
21.3. General notes when adding, updating, or removing packages
- 21.4. Committing: Adding a package to CVS
- 21.5. Updating a package to a newer version
- 21.6. Renaming a package in pkgsrc
- 21.7. Moving a package in pkgsrc
+ 21.4. Commit Messages
+ 21.5. Committing: Adding a package to CVS
+ 21.6. Updating a package to a newer version
+ 21.7. Renaming a package in pkgsrc
+ 21.8. Moving a package in pkgsrc
22. Frequently Asked Questions
23. GNOME packaging and porting
@@ -2565,10 +2566,11 @@ Table of Contents
21.1. Submitting binary packages
21.2. Submitting source packages (for non-NetBSD-developers)
21.3. General notes when adding, updating, or removing packages
- 21.4. Committing: Adding a package to CVS
- 21.5. Updating a package to a newer version
- 21.6. Renaming a package in pkgsrc
- 21.7. Moving a package in pkgsrc
+ 21.4. Commit Messages
+ 21.5. Committing: Adding a package to CVS
+ 21.6. Updating a package to a newer version
+ 21.7. Renaming a package in pkgsrc
+ 21.8. Moving a package in pkgsrc
22. Frequently Asked Questions
23. GNOME packaging and porting
@@ -7091,10 +7093,11 @@ Table of Contents
21.1. Submitting binary packages
21.2. Submitting source packages (for non-NetBSD-developers)
21.3. General notes when adding, updating, or removing packages
-21.4. Committing: Adding a package to CVS
-21.5. Updating a package to a newer version
-21.6. Renaming a package in pkgsrc
-21.7. Moving a package in pkgsrc
+21.4. Commit Messages
+21.5. Committing: Adding a package to CVS
+21.6. Updating a package to a newer version
+21.7. Renaming a package in pkgsrc
+21.8. Moving a package in pkgsrc
21.1. Submitting binary packages
@@ -7156,7 +7159,42 @@ commit-changes-entry! If you are not using a checkout directly from
cvs.NetBSD.org, but e.g. a local copy of the repository, you can set
USE_NETBSD_REPO=yes. This makes the cvs commands use the main repository.
-21.4. Committing: Adding a package to CVS
+21.4. Commit Messages
+
+For several years, there have been mirrors of pkgsrc in fossil, git, and hg.
+Standard practise when using these tools is to make the first line of a commit
+message function as a summary that can be read without the rest, such as is
+commonly done with "git log --oneline". For this reason, we have the following
+guidelines for pkgsrc commit messages:
+
+ * Start the commit message with a line that explains the big picture in 50
+ characters or less. When a commit is for one package, include the name of
+ the package. For updates, include the version to which it is updated.
+
+ * Leave the next line empty.
+
+ * Then come the details for the commit (changes in that package, reason for a
+ change) and any relevant PRs. Wrap this section.
+
+Here is an example:
+
+ libxslt: update to 1.0.30
+
+ Changes since 1.0.29:
+ ...
+
+
+Here is another example:
+
+ mk/bsd.pkg.mk: enable SSP by default on NetBSD
+
+ (rationale)
+
+
+Commit messages are final: no "cvs admin" is allowed on the pkgsrc repository
+to change commit messages.
+
+21.5. Committing: Adding a package to CVS
This section is only of interest for pkgsrc developers with write access to the
pkgsrc repository.
@@ -7187,7 +7225,7 @@ Also mention the new package in pkgsrc/doc/CHANGES-20xx.
Previously, "cvs import" was suggested, but it was much easier to get wrong
than "cvs add".
-21.5. Updating a package to a newer version
+21.6. Updating a package to a newer version
Please always put a concise, appropriate and relevant summary of the changes
between old and new versions into the commit log when updating a package. There
@@ -7212,7 +7250,7 @@ which pkgsrc is used. Please use your judgement about what should go into
pkgsrc, and bear in mind that stability is to be preferred above new and
possibly untested features.
-21.6. Renaming a package in pkgsrc
+21.7. Renaming a package in pkgsrc
Renaming packages is not recommended.
@@ -7227,7 +7265,7 @@ Note that "successor" in the CHANGES-YYYY file doesn't necessarily mean that it
supersedes, as that successor may not be an exact replacement but is a
suggestion for the replaced functionality.
-21.7. Moving a package in pkgsrc
+21.8. Moving a package in pkgsrc
It is preferred that packages are not renamed or moved, but if needed please
follow these steps.