luet-portage-converter

command module
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

README

luet-portage-converter

Portage/Overlay converter for Luet specs.

$ luet portage-converter -- --help
Copyright (c) 2020-2021 - Daniele Rondina

Portage/Overlay converter for Luet specs.

Usage:
  luet-portage-converter -- [flags]

Flags:
      --backend string               Select backend resolver: qdepends|reposcan. (default "reposcan")
  -h, --help                         help for luet-portage-converter
      --ignore-missing-deps          Ignore missing deps on resolver.
      --override                     Override existing specs if already present.
      --reposcan-files stringArray   Append additional reposcan files. Only for reposcan backend.
      --rules string                 Rules file.
      --to string                    Targer tree where bump new specs.
  -t, --tree stringArray             Path of the tree to use.
  -v, --version                      version for luet-portage-converter

luet-portage-converter at the moment has two different backend to generate luet specs:

  • qdepends: based on Gentoo qdepends tool. This backend requires that the packages must be installed on the system where is executed luet-portage-converter. It doesn't work well with overlays. This backend will be soon set as deprecated.

  • reposcan: based on Funtoo reposcan generated files. It uses the JSON files generated and doesn't require that the packages must be installed 🍾 and it support Gentoo Overlay and Funtoo Kits.

Specifications

luet-portage-converter take in input a YAML rules file that is used to generate luet specs.

Example
skipped_resolutions:
  packages:
    - name: elt-patches
      category: app-portage

    - name: eselect-opengl
      category: app-eselect

  categories:
    - virtual

#include_files:
#  - artefacts/file1.yml

build_template_file: templates/build-pkg.yaml.tmpl

artefacts:
- tree: multi-arch/packages
  packages:
    - sys-devel/gcc:9.3.0
    - app-emulation/lxd
    - app-emulation/lxc

# Define the list of the files generated by Funtoo reposcan tool.
reposcan_sources:
  - /tmp/kit_cache/gentoo-master
  - /tmp/kit_cache/geaaru_overlay-master

reposcan_contraints:
  packages:
    - dev-lang/python:3.7
    - sys-devel/gcc:9.3.0

reposcan_disabled_use_flags:
  - test

Create luet specs

$> luet portage-converter -- -t ./luet-packages-tree/ --to ./luet-packages-tree/ --rules config.yaml  --ignore-missing-deps

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL