KernelPackaging
2686
Comment:
|
3768
Add note about per-package upload rights
|
Deletions are marked like this. | Additions are marked like this. |
Line 24: | Line 24: |
Once the package(s) have been build, they are usually ready for upload. This guide assumes the packages were built on the kernel team's server, ie zinc. | === Per Package Upload Rights === Once the package(s) have been built, they are ready for upload. However, before you are even able to upload to the main archive, you must obtain per-package upload rights for the kernel. You must [[apply for per-package upload rights|https://wiki.ubuntu.com/UbuntuDevelopers#PerPackage]] through the [[Developer Membership Board|https://wiki.ubuntu.com/DeveloperMembershipBoard]] (DMB). Your application will be reviewed at an upcoming DMB IRC meeting. You must attend this meeting and answer any questions regarding your application. Getting your application approved can take weeks depending when the next DMB (Developer Membership Board) meeting is, so get your application submitted early in the development cycle. Examples of applications can be seen at: https://wiki.ubuntu.com/AndyWhitcroft/KernelUploadsApplication https://wiki.ubuntu.com/LeannOgasawara/KernelUploadsApplication === Uploading linux and linux-meta === Once you have been granted per-package upload rights for the Ubuntu kernel, the following instructions are for uploading the kernel packages to the main archive. The instructions assume the kernel packages were built on the kernel team's server, ie zinc. |
Line 28: | Line 38: |
debsign -r zinc.canonical.com:linux_<VERSION>-<ABI>.<UPLOAD>_source.changes | debsign -r zinc:linux_<VERSION>-<ABI>.<UPLOAD>_source.changes |
Line 39: | Line 49: |
The linux-meta package follows the same upload instructions as the linux package. Remember that the linux-meta package usually never needs an upload unless the linux package ABI has been rev'd. | The linux-meta package follows the same upload instructions as the linux package. Remember that the linux-meta package usually only needs an upload when the linux package ABI has been rev'd. |
Line 44: | Line 54: |
* Wait to upload linux-meta until after linux finishes building successfully | * Wait to upload linux-meta until after linux finishes building successfully on the main archs |
Building the Ubuntu kernel package(s)
linux
The following commands are for building the linux kernel package. Note 'fdr' is an alias for 'fakeroot debian/rules'
cd ubuntu-<RELEASE> fdr clean dpkg-buildpackage -S -rfakeroot -I.git -I.gitignore -i'\.git.*' "$@"
It's suggested to wrap the above commands into a script.
linux-meta
The following commands are for building the linux-meta package.
cd ubuntu-<RELEASE>-meta make clean make source
Uploading the Ubuntu kernel package(s)
Per Package Upload Rights
Once the package(s) have been built, they are ready for upload. However, before you are even able to upload to the main archive, you must obtain per-package upload rights for the kernel. You must https://wiki.ubuntu.com/UbuntuDevelopers#PerPackage through the https://wiki.ubuntu.com/DeveloperMembershipBoard (DMB). Your application will be reviewed at an upcoming DMB IRC meeting. You must attend this meeting and answer any questions regarding your application. Getting your application approved can take weeks depending when the next DMB (Developer Membership Board) meeting is, so get your application submitted early in the development cycle.
Examples of applications can be seen at:
https://wiki.ubuntu.com/AndyWhitcroft/KernelUploadsApplication https://wiki.ubuntu.com/LeannOgasawara/KernelUploadsApplication
Uploading linux and linux-meta
Once you have been granted per-package upload rights for the Ubuntu kernel, the following instructions are for uploading the kernel packages to the main archive. The instructions assume the kernel packages were built on the kernel team's server, ie zinc.
- Remotely sign the package
debsign -r zinc:linux_<VERSION>-<ABI>.<UPLOAD>_source.changes
- View the .changes file and verify everything looks correct prior to uploading.
- Check the release pocket is correct
- Check the package and version is correct
- Check the changelog is accurate
- Upload the package (from zinc)
dput linux_<VERSION>-<ABI>.<UPLOAD>_source.changes
The linux-meta package follows the same upload instructions as the linux package. Remember that the linux-meta package usually only needs an upload when the linux package ABI has been rev'd.
Best Practices
During the release cycle there a few best practices to follow when building and uploading the kernel package(s)
- Upload typically once per week
- Wait to upload linux-meta until after linux finishes building successfully on the main archs
- Once uploaded, if there was an ABI bump, send an email announcement to Ubuntu kernel-team mailing list, the ubuntu-installer mailing list, and the ubuntu-mobile mailing list.
Keep a watchful eye on the milestone dates. eg. http://wiki.ubuntu.com/MaverickReleaseSchedule
- Remember the archive freezes the Tuesday before the milestone. As such, the kernel needs to be uploaded and successfully built before the archive freezes. This means the kernel for the milestone should typically be uploaded the Friday before the milestone. This allows enough lead time for the package(s) to build prior to the archive freezing.
- Be sure to communicate the milestone dates and the last day to get patches accepted into the kernel. Announce this in the weekly Ubuntu Kernel IRC meeting. Also, send an email to the Ubuntu kernel-team mailing list 1 week prior to the final kernel upload (ie ~2weeks before the milestone). This informs anyone wanting patches included in the kernel for the milestone to get them submitted ASAP.
Kernel/Handbook/ReleaseManagement/KernelPackaging (last edited 2014-12-12 16:41:10 by leannogasawara)