| 1 |
README.source for the aide Debian package |
| 2 |
========================================= |
| 3 |
|
| 4 |
aide is a rather normal 3.0 (quilt) package that is maintained on salsa. It |
| 5 |
has a decades long history. The Repository on salsa (see debian/control) can be |
| 6 |
cloned and worked with like it is common in Debian. However, there are some |
| 7 |
specialities that you do not NEED to be aware of but it might help. |
| 8 |
|
| 9 |
|
| 10 |
The Team |
| 11 |
-------- |
| 12 |
aide is maintained by a small team. One team member also is Upstream. If you |
| 13 |
want to participate, first thing would be to subscribe to the package's mail |
| 14 |
messages through tracker.debian.org. Since the maintainer address is set to the |
| 15 |
tracker, that way you'll get all messages relevant to aide, including bug |
| 16 |
reports and upload/migration status. If you want to reach all team members and |
| 17 |
otherwise interested parties, write to [email protected]. |
| 18 |
|
| 19 |
|
| 20 |
Branches and commit suggestions |
| 21 |
------------------------------- |
| 22 |
Nobody should directly commit to debian/latest (with the exception of preparing |
| 23 |
an upload). All work should be done through personal branches. It is best |
| 24 |
practise to file a merge request after finishing work on a personal branch and |
| 25 |
let somebody else approve and/or merge to debian/latest for a |
| 26 |
four-eyes-workflow. In normality, only the person who did the last upload |
| 27 |
should merge to any debian/* branch without their agreement. If that person |
| 28 |
does not react in a few days (or it is very urgent), any other person in |
| 29 |
Uploaders may step in. |
| 30 |
|
| 31 |
|
| 32 |
Branch names |
| 33 |
------------ |
| 34 |
debian/latest: the latest Debian packaging. This branch should always be |
| 35 |
in a state to build without failure. Can be uploaded to experimental |
| 36 |
and/or unstable |
| 37 |
debian/releasename: security, stable updates. branched off debian/latest |
| 38 |
when needed from the appropriate debian/<number> tag. |
| 39 |
debian/unstable: only exists when unstable work was neeed while |
| 40 |
debian/latest holds an experimental branch. branched off |
| 41 |
debian/latest from the latest debian/<number> tag that got |
| 42 |
uploaded to unstable |
| 43 |
upstream/latest: upstream source |
| 44 |
upstream/ancient: ancient upstream source, synthesizing upstream development |
| 45 |
up to 0.13.1 |
| 46 |
master: upstream source from the upstream vcs |
| 47 |
user/name: user-specific branch to work in. Feel free to use that namespace |
| 48 |
even if you're not formally on the team. Clean up after yourself. Branches |
| 49 |
stale more than a year are subject to deletion |
| 50 |
upstream/simulated: needed to synthesize and merge upstream history |
| 51 |
|
| 52 |
debian/* branches are protected, no force push here. |
| 53 |
|
| 54 |
|
| 55 |
How to clone |
| 56 |
------------ |
| 57 |
The repository has had some work to provide a better relation between upstream |
| 58 |
and Debian work. Method 4 outlined in |
| 59 |
https://wiki.debian.org/HavingUpstreamGitHistoryInDebianGit was used for the |
| 60 |
first time to bring this interweaving also to the historiy commits. |
| 61 |
|
| 62 |
While you should be able to use this repository normally if you don't care, the |
| 63 |
full beauty of the history will become visble for you when you |
| 64 |
* add the upstream vcs as a second remote: |
| 65 |
* git remote add upstreamvcs https://github.com/aide/aide.git |
| 66 |
* git fetch upstreamvcs |
| 67 |
* and |
| 68 |
* pull the replacement refs from the salsa repository which do not come |
| 69 |
automatically with git clone or git fetch: |
| 70 |
* git fetch origin 'refs/replace/*:refs/replace/*' |
| 71 |
|
| 72 |
|
| 73 |
How to update upstream |
| 74 |
---------------------- |
| 75 |
In theory, updating to a new upstream release/snapshot should be done by means |
| 76 |
of gbp import-orig --uscan. That does not work at the moment (see #1138228). |
| 77 |
For the time being, update as follows: |
| 78 |
- fetch upstreamvcs |
| 79 |
- Find the upstream tag you want to update to |
| 80 |
- Manually find and download the corresponding |
| 81 |
- git switch upstream/latest (or a upstream maintenance/devel branch |
| 82 |
if your upstream tag is not on the mainline history) |
| 83 |
- git merge <upstream-tag> |
| 84 |
- gbp import-orig --debian-branch=debian/x <upstream-tarball> |
| 85 |
make sure to set the debian-branch if you don't want to import to |
| 86 |
debian/latest (which is the default). |
| 87 |
|
| 88 |
|
| 89 |
Package history |
| 90 |
--------------- |
| 91 |
The package history also warrants some comments. |
| 92 |
|
| 93 |
* Ancient history shows some collaboration between Upstream and Debian. |
| 94 |
Upstream was already working in some kind of version control, but sadly, |
| 95 |
their commit history didn't survive. |
| 96 |
* Debian packaging was first done in cvs and eventually migrated to svn. |
| 97 |
* Debian history goes farther back than upstream's, so the very early upstream |
| 98 |
history was synthesized from the very early Debian history. Hence, you see |
| 99 |
many commits once on the Upstream side and once on the Debian side. To avoid |
| 100 |
loop which might have interfered with git replace later, those commits were |
| 101 |
cherry-picked, creating different commit IDs. |
| 102 |
* To be able to preserve the upstream commit IDs, the early Upstream history |
| 103 |
was not synthesized on the upstream/latest branch proper, but on the |
| 104 |
upstream/ancient branch. Both branches were connected to each other at the |
| 105 |
release of aide 0.13.1 by doing git replace. |
| 106 |
* Debian's packaging history went from cvs to svn to eventually git, and for a |
| 107 |
while the repository was in debian/ only form. The regular method of |
| 108 |
maintaining aide in git also started with 0.13.1-1. |
| 109 |
* Debian's orig.tar files differ from the trees pointed to by upstream's |
| 110 |
release tags due to upstream's release process of not committing the |
| 111 |
autoconf artifacts to git but including them in the release tarball. |
| 112 |
To close the gap, the upsteam/simulated branch was created |
| 113 |
* started with cherry-picking the ancient history up to aide.0.10.release. |
| 114 |
* differences to the upstream/<number> tag were pulled from the |
| 115 |
respective upstream/* tags. It was important not to merge from |
| 116 |
upstream/*. The differing files were pulled via git checkout and |
| 117 |
then explicitly committed. |
| 118 |
* once the diff between upstream/simulated/HEAD and upstream/* was empty, a |
| 119 |
upstream/simulateed/<release> tag was set |
| 120 |
* and then the next release tag from master was merged. |
| 121 |
* start over with checking out the differences from upstream/<number> |
| 122 |
* This was repeated until v0.19.2 was reached. |
| 123 |
* Then the connection between upstream's release tags and Debian's upstream/* |
| 124 |
tags was built by calling "git replace a b" with, for all upstream versions |
| 125 |
x, a being the commit pointed to by the upstream/<x> tag and b being the |
| 126 |
commit pointed to by either the "v<x>" or the upstream/simulated/<x>" tag. |
| 127 |
Care was taken that the diff between the tag being replaced and the tag |
| 128 |
replacing was empty. |
| 129 |
* In the result you can see in git log --oneline --graph --all a nice |
| 130 |
mixture of Debian and upstream commits, and are thus able to put |
| 131 |
upstream and Debian development in relation to each other. |
| 132 |
* Debian did not package every upstream release. |
| 133 |
* There is significant confusion in debian/latest when the packages alternated |
| 134 |
between the 0.x.y maintenance branch and git snapshots taken from the |
| 135 |
development branch. This was in error on the Debian side not being aware of |
| 136 |
upstream's development/maintenance branch and resulted in huge merge diffs. |
| 137 |
upstream/latest still does reflect the actual Debian release history. |