Project

General

Profile

Bug #12823

Provide a rule to construct a JSON formatted mapping of components

Added by Aurélien Larcher 2 months ago.

Status:
New
Priority:
Normal
Category:
OI-Userland
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

To allow for dependency resolution and batch processing of components based on fmris it would be useful to build a mapping between fmris and component directories.

This mapping consists of a JSON formatted file containing component entries with:

  • name
  • fmri
  • path

The mapping.json file is constructed by bass-o-matic by iterating on the component directories and reading the pkg5 JSON file holding metadata:

  • the file is created using print-package-names and print-required-packages if it does not exist,
  • an error is thrown if the list of supplied packages is empty.

Depends on #12821 and #12822

Also available in: Atom PDF