Skip to main content

A container approach to test a Gentoo package within a clean stage3

Project description

This script is a tool to test a Gentoo ebuild and its dependencies. The idea is that the package is emerged in a clean (and current) stage3 Docker container.

https://travis-ci.org/nicolasbock/ebuildtester.svg?branch=master https://badge.fury.io/py/ebuildtester.svg Documentation Status 'Waffle.io - Columns and their card count'

Usage

We are going to assume that the user has a local git clone of the portage tree in

/usr/local/git/gentoo

We have added a new ebuild and would like to verify that the build dependencies are all correct. We can build the package (ATOM) with:

ebuildtester --portage-dir /usr/local/git/gentoo \
  --atom ATOM \
  --use USE1 USE2

where we have specified two USE flags, USE1 and USE2. The ebuildtester command will now create a docker container and start installing the ATOM. All specified dependencies will be installed as well.

Command line arguments

The command understands the following command line arguments:

usage: ebuildtester [-h] [--version] [--atom ATOM [ATOM ...]] [--manual]
                    --portage-dir PORTAGE_DIR [--overlay-dir OVERLAY_DIR]
                    [--update {yes,true,no,false}] [--threads N]
                    [--use USE [USE ...]] [--unmask ATOM] [--gcc-version VER]
                    [--with-X]
                    [--profile {default/linux/amd64/17.0,default/linux/amd64/17.0/systemd}]

A dockerized approach to test a Gentoo package within a clean stage3. This is
version 0.1.7

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --atom ATOM [ATOM ...]
                        The package atom(s) to install
  --manual              Install package manually
  --portage-dir PORTAGE_DIR
                        The local portage directory
  --overlay-dir OVERLAY_DIR
                        Add overlay dir (can be used multiple times)
  --update {yes,true,no,false}
                        Update container before installing atom
  --threads N           Use N (default 8) threads to build packages
  --use USE [USE ...]   The use flags for the atom
  --unmask ATOM         Unmask atom (can be used multiple times)
  --gcc-version VER     Use gcc version VER
  --with-X              Install VNC server to test graphical applications
  --profile {default/linux/amd64/17.0,default/linux/amd64/17.0/systemd}
                        The profile to use

Project details


Download files

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

Source Distribution

ebuildtester-0.1.8.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

ebuildtester-0.1.8-py2-none-any.whl (8.6 kB view details)

Uploaded Python 2

File details

Details for the file ebuildtester-0.1.8.tar.gz.

File metadata

  • Download URL: ebuildtester-0.1.8.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ebuildtester-0.1.8.tar.gz
Algorithm Hash digest
SHA256 ca7a4de2881bf2d8e6e21caa552b6484ac96f30a2b65edb8b7cf581f5236e80f
MD5 79c7a0750111b7d8bc3fd32cd1b0c21c
BLAKE2b-256 4d5b64dec0273dbc5155ae9b9c1924d4fbf675e31363b09faaf2fef0b536b620

See more details on using hashes here.

File details

Details for the file ebuildtester-0.1.8-py2-none-any.whl.

File metadata

File hashes

Hashes for ebuildtester-0.1.8-py2-none-any.whl
Algorithm Hash digest
SHA256 94ee1b06984c8ce323d1ed125b69be06c871b2d2c00ddcc061b4c150606ecf30
MD5 313e8ef8ffc844b746256bc1ea1e275a
BLAKE2b-256 c9d0ba810920bc399629b9c12c689c3b4fde1d063ba8955c2e991bb23d732299

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 Pingdom Monitoring Sentry Error logging StatusPage Status page