Skip to main content

Welcome to rebase-helper

Github Actions build status Documentation build status Container image build status PyPI version Project status Code Quality

There are several steps that need to be done when rebasing a package. The goal of rebase-helper is to automate most of these steps.

How to get it running?

rebase-helper is packaged in Fedora, so you can just install it with dnf.

If you wish to use the latest codebase, consult installation instructions.

How to use it?

After installation, execute rebase-helper from a directory containing SPEC file, sources and patches (usually cloned dist-git repository):

$ ls
foo-3.1.9.tar.xz foo.spec sources

Without any arguments or configuration rebase-helper will attempt to determine the latest upstream version automatically. If that fails, or if you wish to rebase to some different version, you can specify it explicitly as an argument:

$ rebase-helper 3.1.10

or you can pass source tarball filename instead:

$ rebase-helper foo-3.1.10.tar.xz

For complete CLI reference see usage.

Alternatively, you can run rebase-helper in a container:

$ docker run -it -e PACKAGE=foo quay.io/rebasehelper/rebase-helper:latest

See container reference for more information.

What do I get from it?

rebase-helper always creates rebase-helper-results directory containing the following items:

Path Description
report.txt summary report with all important information
changes.patch diff against original files, directly applicable to dist-git repo
logs/ log files of various verbosity levels
rebased-sources/ git repository with all modified files
checkers/ reports from individual checkers that were run
old-build/ logs and results of old (original) version build
new-build/ logs and results of new (rebased) version build

How does it work?

The following steps describe a rebase process:

  • Preparation

    • rebase-helper-workspace and rebase-helper-results directories are created
    • original SPEC file is copied to rebase-helper-results/rebased-sources directory and its Version tag is modified
  • Getting sources

    • old and new source tarballs are downloaded and extracted to rebase-helper-workspace directory
    • old sources are downloaded from lookaside cache if possible
  • Downstream patches

    • new git repository is initialized and the old sources are extracted and commited
    • each downstream patch is applied and changes introduced by it are commited
    • new sources are extracted and added as a remote repository
    • git-rebase is used to rebase the commits on top of new sources
    • original patches are modified/deleted accordingly
    • resulting files are stored in rebase-helper-results/rebased-sources
    • diff against original files is saved to rebase-helper-results/changes.patch
  • Build

    • old and new source RPMs are created and built with selected build tool
    • old SRPM and RPMs can also be downloaded from Koji to speed up the rebase
  • Comparison

    • multiple checker tools are run against both sets of packages and their output is stored in rebase-helper-results/checkers directory
  • Cleanup

    • rebase-helper-workspace directory is removed

Videos

A talk about rebase-helper at DevConf.CZ 2020 given by František Nečas:

Rebasing RPM packages with rebase-helper - DevConf.CZ 2020

Another presentation, this time from DevConf.CZ 2016, by Petr Hráček and Tomáš Hozza:

Rebase-helper and Upstream Release Monitoring - DevConf.CZ 2016

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rebasehelper-0.29.4.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rebasehelper-0.29.4-py3-none-any.whl (167.6 kB view details)

Uploaded Python 3

File details

Details for the file rebasehelper-0.29.4.tar.gz.

File metadata

  • Download URL: rebasehelper-0.29.4.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rebasehelper-0.29.4.tar.gz
Algorithm Hash digest
SHA256 b9c757de9cd8fad0fd801a5468d0c607789b37e90e761fe23965da3e5ca9f11a
MD5 718d2c9c5bfdef0c732be05c790685f2
BLAKE2b-256 ec4e520315ea52c2de9d66f266c46399f63513d543622ebf12c120d20caed7f9

See more details on using hashes here.

File details

Details for the file rebasehelper-0.29.4-py3-none-any.whl.

File metadata

  • Download URL: rebasehelper-0.29.4-py3-none-any.whl
  • Upload date:
  • Size: 167.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rebasehelper-0.29.4-py3-none-any.whl
Algorithm Hash digest
SHA256 94ea1ca1fec8c5e2b4701b9a80c9234913d6b170c43486e67530a99035e84d74
MD5 342cbafe490282474b7682967f96ef26
BLAKE2b-256 c7ebab55173d417cf18b782f3b70ac1f0e515e92da82f3e7b714d3075fe206d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page