Hi Ryan,

This happens because `tools/read-dependencies --distro` joins the
'requires' and 'build-requires' defined in pkg-deps.json, the file that
specifies the distro-specific deps. See this line specifically:

https://github.com/canonical/cloud-init/blob/master/tools/read-
dependencies#L227

This doesn't happen when building the .deb package because we let
debhelper calculate the dependencies, and packages/bddeb doesn't need to
touch the Depends: line.

In order to avoid the odd dependencies I don't see other way than making
read-dependencies distinguish between build-deps and runtime-deps.

RFC: We could add --runtime-only-deps to read-dependencies. When this is
specified the build-requires from pkg-deps.json won't be appended to the
list of dependencies. Then packages/brpm will have to be taught about
this, looks easy at first glance.

WDYT?

** Changed in: cloud-init (Ubuntu)
     Assignee: (unassigned) => Paride Legovini (legovini)

** Changed in: cloud-init (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1886107

Title:
  centos8 rpm build with odd runtime deps

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1886107/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to