Why Contribute to MOTU
[:MOTU:MOTU] contributions are considered when applying for [:NewMemberHowto:Membership]
- It will make your system work better
- It's fun!
Become familar with Ubuntu [:HelpingWithBugs:Bug Management] Procedures
Review some of the [:MOTU/Documentation:Documentation] available
If you want an introduction to the community, investigate [:MOTU/Mentoring:Mentoring]
Consider joining #ubuntu-motu on [https://help.ubuntu.com/community/InternetRelayChat IRC]
- Check out ["PackagingGuide/Recipes"] for some helpful learn-by-example lessons
Things to Do
Below please find a short list of ways in which help is most appreciated. Feel free to select activities from any of the below, including combinations (e.g. fixing a bug, and submitting a new revision).
There are a lot of bugs in Universe: many of them have fairly simple fixes, and others have known or easily developed solutions. If you understand a bug well enough to fix it, please post a patch or explanation to the bug. If you start work on a bug, be sure to set the Status to "In Progress" and assign yourself.
If the bug requires a patch to the sources, review the [:PackagingGuide/PatchSystems:Patching Guide] to determine how to create a patch. If there is no patch system, [:Bugs/HowToFix:these instructions] may help you to generate the necessary patch.
If a bug requires a patch to the packaging (under debian/, but not under debian/patches/), a patch should only be generated against the debian/ directory, as follows:
$ cp -a debian debian.old
Make any required changes in the debian/ directory
$ diff -urN debian.old debian > ../packagename.debian.patch $ rm -r debian.old
After generating a patch, please be sure to:
- Attach the patch to the bug
- Add the "patch" tag to the bug
- Set status to "Confirmed" and assign to "Nobody"
- Check to see if the bug applies to the Debian package. If so:
If one does not already exist, open a bug in Debian & attach the patch (use Tags: patch)
If there is a bug, verify it is linked in LaunchPad & forward the patch to the Debian BTS
- Check to see if the bug applies to upstream VCS, If so:
- Prepare a minimal testcase demonstrating the bug
- Send the testcase and patch upstream for review (use the upstream bugtracker, if available)
Either link the upstream bug in LaunchPad, or leave the URL in a comment
- Update the Debian bug with the upstream bug information
Preparing New Revisions
Sign the [https://launchpad.net/codeofconduct Code of Conduct]
Install fakeroot, devscripts and associated suggested packages
Each upload of a package to the archive represents a new revision, and carries a unique changelog entry. The preparation of new revisions represents the end product of the majority of MOTU effort, and is a wonderful way to learn about packaging, as you will be exposed to many different packaging styles.
Before starting, search for bugs that can be closed with the new revision. When selecting bugs, limit yourself to those for which you understand the solution or the patch and from which you believe the majority of users would benefit. Good sources of bugs and patches are:
The package bugs page in LaunchPad https://bugs.launchpad.net/ubuntu/+source/packagename
The package bugs page in the Debian BTS http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=packagename
- The upstream bugtracker (the upstream homepage should be in debian/copyright)
- If the package has an Ubuntu version, check with the last uploader for possible pending changes
- After a test build, the output of any of the package analysis commands:
$ linda -v -f long -t E,I,W,X packagename_version-revision_source.changes $ linda -v -f long -t E,I,W,X packagename_version-revision_arch.changes $ lintian -iIv packagename_version-revision_source.changes $ lintian -iIv packagename_version-revision_arch.changes
Set all the bugs you intend to fix to "In-Progress" and assign yourself.
Collect and unpack the sources
To get Ubuntu Sources for the release you are currently running, use:
apt-get source srcpackagename
If you need sources from another release, try one of:
If you have the A URL for the description (.dsc) file, you can also download the sources with:
$ dget -x dsc-file-URL
Note that if you take sources from Debian, you will have to insert the changelog entries from Ubuntu to ensure an accurate record of change in the released Ubuntu revision. See the [:MOTU/Packages/Merging:Documentation] on merging for more details.
Apply all the necessary fixes to the package. For changes to the source, create a patch as above, excepting that if there is no patch system, the changes should be applied directly, and no patch extracted. For changes to the packaging, the changes should be applied directly, with the exception that debian/changelog should not be changed manually.
Update the changelog with
Add a line to the changelog for each change you make to the package. For any that close launchpad bugs, end the line with "(LP: #bugnumber)". For any that close Debian bugs, end the line with "(Debian: #bugnumber)". If a fix closes both, only include the LP entry.
If you are not running the current development environment on your development machine, be careful to ensure that the distribution in the changelog for your revision matches the current development environment, rather than the distribution installed on your development machine.
Prepare a source build with
If you encounter errors at this point, likely causes are that your GPG key configuration is not configured correctly or that you do not have the necessary packages installed to complete the clean rule in debian/rules. Be sure to set DEBEMAIL, and install any packages you may need to properly ensure that all patches have been unapplied.
Build the package with [https://help.ubuntu.com/community/SbuildLVMHowto sbuild] or [:PbuilderHowto:pbuilder]
Check that your new revision
- Has your preferred launchpad email address in Changed-By: in the source.changes file
- Lists the intended distribution in the source.changes file
- Has an Ubuntu version number
Has the Maintainer set as per the DebianMaintainerField specification.
- Installs cleanly in the current development environment
- Works in the current development environment
- Addresses the issues listed in the changelog
You may need to make additional changes, if you are not happy with the results of your tests. This may be made directly, but if you make a mistake, you can also use the following to restore the state to your last source build.
$ rm -r packagename_version $ dpkg-source -x packagename_version-newrevision.dsc
If your revision is an update to the Ubuntu repositories, prepare a debdiff for the new candidate revision with:
$ debdiff packagename_version-revision.dsc packagename_version-newrevision.dsc > packagename_version-newrevision.debdiff
If your revision is a merge from Debian, prepare a debdiff for the new candidate revision with:
$ debdiff packagename_version-debianrevision.dsc packagename_version-newrevision.dsc > packagename_version-newrevision.debdiff
If your revision is a new upstream version, prepare an interdiff with
interdiff -z packagename_version-revision.diff.gz packagename_newversion-newrevision.diff.gz > packagename_version-newrevision.interdiff
Review your differences file to ensure that all changes are intentional. If there are unexpected changes, consider removing them from the patch, either using filterdiff or manually. If you are uncertain about a specific change, seek advice from #ubuntu-motu or your [:MOTU/Mentoring:Mentor].
Test your patch. Debdiff patches are best tested with:
$ rm -r packagename_version $ dpkg-source -x packagename_version-revision.dsc $ cd packagename_version $ patch -p1 < ../packagename_version-newrevision.debdiff
This should generate no rejections or fuzz
Interdiff patches are best tested with
$ combinediff -z packagename_version-revision.diff.gz packagename_version-newrevision.interdiff > test.diff $ interdiff -z test.diff packagename_newversion-newrevision.diff.gz $ rm test.diff
This should generate no output
If you are completely satisfied, request sponsorship for your new revision.
If only one launchpad bug will closed, attach your diff to that bug. If several launchpad bugs will be closed, open a new bug entitled "Candidate revision packagename_version-revision, and include your changelog entry in the bug description. Attach your diff to this new bug.
Set the bug to Status "Confirmed". Assign to "Nobody". Subscribe the ubuntu-universe-sponsors team to add your bug to the [:MOTU/Sponsorship/SponsorsQueue:Sponsorship Queue].
Once the revision has been uploaded, check https://launchpad.net/~<your LP ID>/+packages for the status of the autobuilders. Once all builds are complete, set the status of the bug to "Fix Released", and add a comment that it built on all architectures. If the build fails, prepare another revision to fix the build, upload that debdiff to the same bug, reset the Status and Assignment for the bug, and resubscribe ubuntu-universe-sponsors.
While you are waiting, review the bugs that will be closed, to make sure that any that apply to Debian have Debian bugs open, and that any related Debian bugs have patches (you may need to extract individual patches from your diff to send to Debian - see Preparing Patches for hints).
If your new revision closes several launchpad bugs, also remember to adjust the status of all the bugs to be closed.
Preparing New Packages
Sign the [https://launchpad.net/codeofconduct Code of Conduct]
Join the [https://launchpad.net/~ubuntu-universe-contributors REVU Upload] Team
Become familiar with the [https://help.ubuntu.com/6.10/ubuntu/packagingguide/C/index.html Packaging Guide]
Find or report a [https://bugs.launchpad.net/ubuntu/+bugs?field.tag=needs-packaging Needs Packaging] Bug
- Set the Status to "In Progress" and assign yourself
Create a new Package (Check Out [:PackagingGuide#Basic])
- Verify that packagename_version-revision.diff.gz does not change anything outside debian/
Make sure you have an Ubuntu version and a Maintainer set as per the DebianMaintainerField specification.
Build the package with [:PbuilderHowto:pbuilder] or [https://help.ubuntu.com/community/SbuildLVMHowto sbuild]
- Run the lintian and linda tests to make sure there are no obvious problems
- Make sure the debian/watch file works to track new versions
Review the [:PackagingGuide/Basic#CommonMistakes:Common Mistakes] to be safe
Check the [:MOTU/Packages/Reviewing:Reviewing Guidelines] to catch things before your reviewers have a chance
Upload the package to [:MOTU/Packages/REVU:REVU]
- Add the REVU upload URL to the bug
- You may, if you wish, announce your upload to #ubuntu-motu not more than once per day
- Once the package is approved and uploaded to the archive, set the bug Status to "Fix Committed"
- Once the package is accepted by the archive administrators and distributed in the archives, set the bug Status to "Fix Released"
Contact the [http://utnubu.alioth.debian.org/ Utnubu Team] to get your package into Debian
Other activities are listed on the [:MOTU/TODO:MOTU Task List]. Check there if you run out of things to do above, or would just like some variety.
Once your [:SponsorshipProcess:sponsors] encourage you to become a ["MOTU"] yourself, please consider [:UbuntuDevelopers:applying] to join the ["MOTU"] team.