Proxied Maintainer FAQ

From Gentoo Wiki
Jump to: navigation, search

Proxied maintainers and Gentoo developers are invited to work on this page and collect FAQ and common mistakes here.

When an ebuild needs a revbump (-r1)

 EAPI change -> revbump    
 change patches -> revbump    
 change HOMEPAGE -> no revbump    
 change SRC_URI, but checksum same -> no revbump    

Keywording after EAPI bump

An EAPI bump requires usually that all keywords are set to `~` (unstable). This can be done with:

user $ekeyword ~all foo-2.0.ebuild

From the package app-portage/gentoolkit.

However there are some special cases where a stabilization can remain, if the developer can be 100% sure, that the EAPI change does not change anything. But this is not the case for usual packages.

Sorting of KEYWORDS

We usually sort the KEYWORDS values as ekeyword does. This makes comparison between packages easier. Simply run ekeyword on the ebuild to let it sort.

user $ ekeyword foo-2.0.ebuild

Use the latest EAPI for a pull request

We always try to use the latest EAPI, if possible. If a required eclass is not yet compatible with the latest EAPI this can not be full filled directly.

Breaking tests in parallel building mode

Tests after ebuild compile run in the same mode, but sometimes test fails in parallel. In this case tests should be called with -j 1:

CODE
src_test() {
    # Via environment method 1
    MAKEOPTS+=" -j1" test-command
  }

Alternatively:

CODE
src_test() {
    # Via environment method 2
    # Need check
    local MAKEOPTS+=" -j1" 
    test-command
  }

When importing cmake.eclass allows direct a setting of -j1:

CODE
# When cmake-utils.eclass src_test function
  src_test() {
    cmake-utils_src_test -j1
  }