Skip to content

Add support to Funtoo Macaroni OS #64

Description

@geaaru

When the subset portage is enable inside a macaroni installation it's possible use vulner with portage engine but instead if this subset is not enable a possibility could be use the output generated by the luet search --installed . command in the JSON format.

Hereinafter, an example of the output:

$ sudo luet s --installed  -o json  lshw | jq
{
  "stones": [
    {
      "name": "lshw",
      "category": "sys-apps",
      "version": "02.18b",
      "license": "GPL-2",
      "repository": "system",
      "annotations": {
        "subsets": {
          "rules": {
            "devel": [
              "^/usr/include/"
            ],
            "portage": [
              "^/var/db/pkg/"
            ]
          }
        }
      },
      "labels": {
        "DEPEND": "gtk? ( x11-libs/gtk+:2 ) sqlite? ( dev-db/sqlite:3 ) gtk? ( virtual/pkgconfig ) sqlite? ( virtual/pkgconfig )",
        "IUSE": "gtk sqlite static",
        "RDEPEND": "gtk? ( x11-libs/gtk+:2 ) sqlite? ( dev-db/sqlite:3 ) sys-apps/hwids",
        "emerge.packages": "sys-apps/lshw",
        "kit": "core-hw-kit",
        "original.package.name": "sys-apps/lshw",
        "original.package.slot": "0",
        "original.package.version": "02.18b-r1"
      }
    }
  ]
}

My suggestion is for now check if exists the labels original.package.name and original.package.version, and then exclude package without these labels. For the other packages we need to study a different solution but it's a minor number of packages in this condition.

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions