vmware / vmware/photon

Missing run-time dependencies in packages `ebtables`, `libassuan` and `rpm-ostree`

Open
#1,309 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
3.2k
Forks
692
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

The following packages missing some run-time dependencies:

  • ebtables: perl
  • libassuan: libgpg-error-devel
  • rpm-ostree: json-c, libmodulemd, polkit, sqlite, cppunit

When adding package ebtables libassuan rpm-ostree to common/data/packages_minimal.json and make minimal-iso , the following RPMs don't exist in the ISO: perl libgpg-error-devel json-c libmodulemd polkit sqlite cppunit . If you use this ISO to install photon, error will be reported like "xxx can not be found".

It's because photon/support/package-builder/SpecDeps.py can not detect run-time dependency if the dependency is not added to the package spec file by Requires field. And the denpendency will not be copied to ISO.

I'm not sure if there are other packages have the same error.

Reproduction steps
1. add `ebtables` to `common/data/packages_minimal.json`
2. make minimal-iso
3. use ISO to install Photon OS
4. installation failed
Expected behavior

Use above ISO to install Photon OS will succeed.

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading photon/support/package-builder/SpecDeps.py, then reproduce the issue by adding the listed packages to common/data/packages_minimal.json and running make minimal-iso. Verify that perl, libgpg-error-devel, json-c, libmodulemd, polkit, sqlite, and cppunit are present in the resulting ISO and that Photon OS installation succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.