Translations: English - Español - Português (Brasil) - (+)
Note: Taken from Software Freedom Camp.
Contents
Level 0: Basics of release process and setup a development environment
Lifecycle of a Release (the journey of a package from first upload to reaching a user, included in a supported release)
Manage repositories/sources.list (managing the list of websites that serve Deb packages)
How to install packages from stable-backports (there is some extra steps required to get new upstream versions of popular software on a stable system)
apt-file find command to find which package includes a file (usually to find a missing command or header file) - apt-file tutorial
Different options for setting up a Debian Sid environment (hopefully you are now familiar with Lifecycle of a release from previous steps and know new packages or new upstream versions of existing packages are first uploaded to Sid or Unstable, so we do development on this branch of debian)
Building existing packages from source (node-pretty-ms instructions is recent so fdupes example in the tutorial can be skipped). Learning to build from source is useful when you want to backport a package (for example you want to rebuild a new version of a package from unstable or testing on your stable system). This is also useful if you want to modify an existing package, for example to fix a bug or cherry pick a commit from upstream.
By this time you should be familiar with
apt source/dget/debcheckout,
dpkg-source -x,
dpkg-buildpackage/debuild,
apt build-dep,
apt source -b
commands to rebuild an existing debian package from source.
Level 1: Learn basics of Packaging
Understand the basic concepts using debmake/dh_make (getting source tarballs, creating source package, building the binary package, making it lintian clean)
A high level overview of packaging involves,
- Downloading source code of the software to be packaged (commonly release tarballs)
Creating a debian directory template (using tools like debmake, npm2deb or gem2deb depending on the programming language used)
Building the .deb file, combining the above two (using dpkg-buildpackage)
Tutorials to follow,
Once you understand the basic concepts, use npm2deb to automate some of those tasks like getting source tarball, a better debian directory template than the ones created by dh_make/debmake as npm2deb knows more details specific to node modules. You will still have to fix the remaining issues flagged by lintian.
By this time you should know,
- creating lintian clean packages for simple modules and
building it in a clean environment like sbuild.
You should also know to import a dsc file to a git repo (gbp import-dsc --pristine-tar) and
push your work to a public git hosting service like https://salsa.debian.org (git push -u --all --follow-tags)
Level 2: Update existing packages to new upstream minor or patch versions
Once you get a clear picture of packaging a simple module, we can move to the next stage of updating existing packages
Understand Semantic Versioning scheme and know when a new upstream release can be a breaking change. Pay special attention to software with 0.x versions - there is no guarantee about compatibility for minor updates as well.
Using Quilt in case you need to modify any patch or create a patch
Start signing your git commits and upload your gpg public key to OpenPGP.org key server (this is default key server in gpg and thunderbird so people can easily search your keys using email address. You also need to verify your email address after you upload your public key for the discovery with email to work.)
By this time you should know,
- How to send RFS mails
- Using Quilt to modify upstream source if required
- Sign your git commits
Once you are comfortable with simple updates (say you have done 5-6 updates), ask someone to suggest more challenging updates, like a major update.
Level 3: Packaging more complicated modules
Next step is packaging more complicated modules that will involve things like, modifying some upstream files, removing some files from source tarball, generating some files from source, getting the source tarball from a git commit etc.
By this time you should know,
- Creating patches with quilt
- Repacking orig.tar and exclude specific files
Use pkg-js-tools options to build from source files
- Build packages with typescript sources
Level 4: Pick an unpackaged but useful module and upload to archive
Join Packaging teams that you find interesting. join their mailing list/irc channels and tell them you like to help with packaging and follow their documentation.
By this time you should know,
- How to file ITP