Release of rpkg+fedpkg contains enhancements and fixes as well. Described are mostly more significant enhancements and fixes.

rpkg

Improvements for scratch module builds

  • Allow module-build-watch to exit when a scratch build completes.
  • Add scratch status to module-build-info output.
  • Add scratch module build sub-commands and updates for handling custom modulemd file and SRPMs.
  • Add tests for scratch module builds and adjust existing tests for new scratch option.
  • Allow custom SRPMs with local module builds for consistency with module scratch builds.

Allow passing arguments to "mbs-manager build_module_locally".

It is now possible to build modules offline without any external infrastructure using the MBS. This is done by passing --offline and -r/--repository flags to mbs-manager and the list of repositories for the base module.

Remove the ability to parse a module's branch

Remove the ability to parse a module's branch automatically to determine the base module stream override.

This functionality was moved to MBS directly instead of having rpkg do it: PR#1176

Permit setting arbitrary rpm macros during build

Added argument --define to pass custom macros to rpmbuild. May be specified multiple times. Applicable to commands: compile, install, local, prep, srpm, verify-files.

Ignore files in a cloned repository

Git will ignore automatically generated files. Ignored patterns can be specified in rhpkg/fedpkg config. Patterns are applied in .git/info/exclude file only when repository is cloned. And changes are valid only for local repository.

Pass specific arguments to "mock"

In mockbuild:

  • Pass --enable-network to "mock" command.
  • Pass --disablerepo and --enablerepo to "mock" command. Both arguments can be used multiple times.

Added "depth" argument to "git clone"

Added --depth argument for git clone command. It creates a shallow clone with a history truncated to the specified number of commits. Cloning mostly applies with single branch (with argument --branch).

Watch multiple module builds

Code is written to be able to watch multiple module builds just after submitting a module build. Command module-build-watch also accepts command line arguments (multiple build_id) to watch specified builds.

Show module build links in output from command module-build

If not watch module build, show build links in order to be easy to link to module build in Web browser.

Add the ability to configure multiple regex expressions

Add the ability to configure multiple regex expressions for base_module_stream_regex_from_branch.

Add "retire" command supporting both packages and modules

There was previously a retire command in fedpkg supporting only packages. This brings the retire command into rpkg with added support for a module-specific dead.module marker file.

Import srpm without uploading sources

Add new argument --offline for command import. Files won't be uploaded to lookaside cache.

Ignore any specified profile when finding the Flatpak build target

The source module for a Flatpak build can be specified as something like flatpak-runtime:28/sdk to indicate that the Flatpak is built from the "sdk" profile of the flatpak-runtime module. This should be ignored when looking up module builds to find the platform stream and build target.

Added update-docs script

Script (doc/update-docs.sh) that updates html documentation git repository on Pagure. And unify it with fedpkg version of the script.

fedpkg

This release requires rpkg >= 1.58.

Ignore files in a cloned repository

Git will ignore automatically generated files. Ignored patterns can be specified in config. Initial patterns were added. Patterns are applied in .git/info/exclude file only when repository is cloned. And changes are valid only for local repository.

Enable shell completion for module scratch builds

  • Add custom SRPM shell completion with local module builds.
  • Add missing shell completion options for local module builds.
  • Require SRPMs to be specified individually using multiple --srpm SRPM options.
  • Enable completion of modulemd file path by yaml extension.

Show hint when Pagure token expires

When Pagure token is expired, hint is added in commands fedpkg request-repo and fedpkg request-branch to keep user informed how to renew the token.

Include possible distprefix in "--define dist" for Forge-based packages

In forge based packages, and most notably all Golang packages, dist tag are computed by a lua script in order to generate a snapshot date and shortcommit.

This patch passes the computed %{?distprefix} in dist to take into account the specificity of Forge based packages.

Other small fixes

  • Make fedpkg update output a report after success.
  • Fix fedpkg update --bugs detection.
  • The retire command is now included in rpkg, supporting both packages and modules.

How to install

sudo dnf upgrade --advisory=FEDORA-2019-d509705eeb
This update has been submitted for testing by onosek. 7 months ago
This update has been pushed to testing. 7 months ago
User Icon cserpentis commented & provided feedback 7 months ago
karma

works for me

User Icon pwalter commented & provided feedback 6 months ago
karma

Works

User Icon frantisekz commented & provided feedback 6 months ago
karma

Works fine

This update has been submitted for batched by bodhi. 6 months ago
This update has been submitted for stable by bodhi. 6 months ago
This update has been pushed to stable. 6 months ago
User Icon mtasaka commented & provided feedback 6 months ago
karma

Unfortunately already pushed into stable, however fedpkg co --branches does not work. Filed as #1707223


Please login to add feedback.

Metadata
Type
enhancement
Severity
medium
Karma
2
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
3
Dates
submitted
7 months ago
in testing
7 months ago
in stable
6 months ago

Automated Test Results

Test Cases

0 0 Test Case build from distgit with mock
-1 0 Test Case clone distgit repository
0 0 Test Case download upstream sources
0 0 Test Case scratch build from distgit