anise-portage-converter

command module
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

README

anise-portage-converter

Portage/Overlay converter for Luet specs. Old name luet-portage-converter.

$ anise portage-converter -- --help
Copyright (c) 2020-2023 - Daniele Rondina

Portage/Overlay converter for Luet specs.

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

Flags:
      --backend string               Select backend resolver: qdepends|reposcan. (default "reposcan")
  -h, --help                         help for anise-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 anise-portage-converter

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

  • qdepends: based on Gentoo qdepends tool. This backend requires that the packages must be installed on the system where is executed anise-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

anise-portage-converter take in input a YAML rules file that is used to generate anise 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 anise specs

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

Documentation

Overview

Copyright © 2021-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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