Submitting patches

From RockWiki

Jump to: navigation, search

The currently preferred way to send patches to ROCK Linux is by using SubMaster. Alternatively, patches sent to the Mailing Lists will usually be forwarded to SubMaster by one of the ROCK developers.

sm (see SubMaster) is a command line tool which enhances the functionality of subversion. However, in order to do so it needs a specially patched version of subversion. NOTE: Subversion 1.0 and above already include the necessary functionality and need not be patched.

You can send patches to SubMaster either via sm or using the web interface at: https://www.rocklinux.net/submaster/

Creating and committing patches manually requires a little bit more work.

First, you need a checkout of the ROCK Linux tree:

svn co svn://www.rocklinux.org/rock-linux/trunk rock-src

Then use the rock-src checkout like you normally would:

  • edit files
  • build distributions
  • whatever

If you made changes that you think are useful to other people or want them included in the ROCK Linux tree for some other reason, do the following:

cd /path/to/rock-worktree
svn diff package/base/glibc > glibcupdate.patch

Replace package/base/glibc with the path to the files/directories (one or more) you have changed. If omitted, the whole ROCK tree will be diffed.

This example will create a file glibcupdate.patch with a unified diff of the changes.

Edit this file and place a short description of what it does on top of it. For example:

Benjamin Schieder:
       fixed glibc for some obscure combination of hardware

Then commit this file to SubMaster using either the web interface at https://www.rocklinux.net/submaster/

or using the script available at https://shellscripts.org/project/rockcommitpatch .

Personal tools