Content translation/Machine Translation/Apertium/Packaging

Wikimedia apt repository contains Apertium packages, which are used in Apertium service for ContentTranslation.

Repository

 * Gerrit:

New package
0. If packaging a new package, request to SRE team to create project under.

1. Clone project:

2. Import upstream source:

3. Once imported (and answering question by gbp import-orig), check if branches are OK.

4. Add git remote:

5. Push upstream and pristine-tar branches to Gerrit.

6. Add debian/ folder you prepared.

We're not going into debian/ documentation right now!

7. Add debian/ to git repository.

8. Commit:

9. Now, push master branch except last commit (ie debian/ folder!)

10. Push tags.

11. And, send debian/ for review to Gerrit.

Jenkins CI for packages
Once package repository is created, add entries in  repository. Edit  and add entries at appropriate line.

Puppet change
To make sure package is available in production, edit  and ask for review.

Troubleshooting
1. Can't push upstream/pristine-tar or tags to Gerrit.

A. Make sure you've necessary permission for it in Gerrit.

2. Jenkins fails to build package.

A.
 * 1) Check if upstream and pristine-tar branches and tags are pushed.
 * 2) Check debian/changelog version scheme matches upstream tag.
 * 3) Check for any broken dependencies.