Developer/Fedora: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 31: Line 31:


== Requesting Authority to Help Maintain an Existing Package or Branch of a Package ==
== Requesting Authority to Help Maintain an Existing Package or Branch of a Package ==

# Announce interest in helping with fork X
First and most important - if you get confused, '''ask for help!''' (Then help improve this page!)
# Request a RedHat Bugzilla account

Next, let's assume that you've demonstrated the interest and ability required to help to maintain an OLPC branch of a Fedora package. I'll use the OLPC branch of ''xkeyboard-config'' as a running example. Then, you might:
# Request a [https://bugzilla.redhat.com/ RedHat Bugzilla] account
#* RedHat and Fedora use Bugzilla extensively to keep track of administrative tasks relating to package maintenance.
# Request a Fedora account
# Request a Fedora account
#* Just follow the [http://fedoraproject.org/wiki/PackageMaintainers/Join#head-a601c13b0950a89568deafa65f505b4b58ee869b 'Get a Fedora Account'] instructions and at the [https://admin.fedoraproject.org/accounts/ Fedora Account System] (FAS) instructions.
# Sign the Fedora Contributors License Agreement (CLA)
# Request and sign the [http://fedoraproject.org/wiki/Legal/Licenses/CLA Fedora Contributors License Agreement] (CLA)
# Request membership in the cvsextras group.
#* [https://admin.fedoraproject.org/accounts/send-cla.cgi Click _once_ to request the CLA and its signing instructions]
# Request membership in the watchbugzilla, fedorabugs, and cvsextras groups.
#* Just follow these [http://fedoraproject.org/wiki/PackageMaintainers/Join#head-a601c13b0950a89568deafa65f505b4b58ee869b instructions]
# Ask a Fedora Package Maintainer (such as most OLPC developers) to sponsor you.
# Ask a Fedora Package Maintainer (such as most OLPC developers) to sponsor you.
# Request authority to update the OLPC branch of the package you want to fix.
# Use your Fedora account to request authority to update the OLPC branch of the package you want to fix.
#* Login to [https://admin.fedoraproject.org/pkgdb/ Fedora Package Database]
#* Navigate to the page for your package, e.g. [https://admin.fedoraproject.org/pkgdb/packages/name/xkeyboard-config#FedoraOLPC2 the dist-olpc2 branch of xkeyboard-config]
#* Request ACL entries to update the OLPC branch of the package you want to fix.


== Learning How to Maintain a Package ==
== Learning How to Maintain a Package ==

Revision as of 01:40, 31 January 2008

Introduction

OLPC maintains a variant of the F-7 Fedora Linux distribution. Many developers, over the course of their careers developing for the XO, develop a need to package software for the XO, either because they wish to fix a bug in software contained in an existing package or because they wish to contribute new software (other than activities) to the system. This document is intended to explain how to package bug fixes for OLPC system software that is maintained in Fedora. Other documents, such as [1] discuss the less common case of adding entirely new pieces of software to Fedora and of adding new activities, which are not currently maintained in Fedora.

Terminology

upstream authors
are people who release source code for consumption by package maintainers and who accept or reject patches from interested individuals
package maintainers
are people who accept source code releases from upstream authors and who combine that source code with packaging instructions in order to produce packaged software
package maintainers are also responsible for contributing patches to upstream authors that fix bugs or that make the upstream software inter-operate more smoothly with other software
Frequently in OLPC, package maintainers and upstream authors are the same person.
source releases
are typically tarballs of source code that have been permanently published at a fixed URL, along with validation data such as MD5sums or the author's public key and a digital signature.
(it's important for many reasons that source code be permanently accessible for all packages. Please make sure that yours is.)
packaging instructions
consist of a '.spec' file and zero or more patches to a source release.
packaged source code
is the 'source object' of a software distribution much as '.c' and '.h' files are the units of source code for building C binary objects.
packaged software
is the 'binary object' of a software distribution much as '.o' files are the binary objects linked together to produce C binaries

Instructions

There are two broad kinds of work that must be done to be able to take responsibility for maintaining an OLPC fork of a Fedora package - requesting authority to maintain a Fedora package and learning how to maintain a Fedora package. Fortunately, these tasks can be performed in parallel.

Requesting Authority to Help Maintain an Existing Package or Branch of a Package

First and most important - if you get confused, ask for help! (Then help improve this page!)

Next, let's assume that you've demonstrated the interest and ability required to help to maintain an OLPC branch of a Fedora package. I'll use the OLPC branch of xkeyboard-config as a running example. Then, you might:

  1. Request a RedHat Bugzilla account
    • RedHat and Fedora use Bugzilla extensively to keep track of administrative tasks relating to package maintenance.
  2. Request a Fedora account
  3. Request and sign the Fedora Contributors License Agreement (CLA)
  4. Request membership in the watchbugzilla, fedorabugs, and cvsextras groups.
  5. Ask a Fedora Package Maintainer (such as most OLPC developers) to sponsor you.
  6. Use your Fedora account to request authority to update the OLPC branch of the package you want to fix.

Learning How to Maintain a Package

  1. Get an account on teach.laptop.org, install Fedora yourself, or install appropriate packages if your distribution supports them;
  2. Anonymously check out your package from Fedora CVS
  3. Use mock or rpmbuild to learn how to build your package
  4. [Politely] Seek help from OLPC and Fedora developers as you discover confusions.