On Wed, Aug 07, 2019 at 06:10:59PM +0200, Daniel Leidert wrote:
> Package: autodep8
> Version: 0.18
> Severity: normal
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> The automatically created autopkgtest reads in the Build-Depends field and
> adds the contents to the Depends field of the test file. But to build the
> package you usually don't need all the runtime dependencies listed in the
> .gemspec file. Also you usually add the requirements found in .gemspec to
> the Depends field in debian/control.
> 
> IMO the test should therefor read in the Depends field. This would improve
> the test significantly.
> 
> (a) We would not have to maintain the same list of dependencies both in
> Build-Depends and in Depends.
> 
> (b) The test would really check, that the Depends field lists at least all
> runtime requirements the .gemspec file contains.

Can you clarify what is the problem that you are trying to fix, maybe by
sharing your actual use case?

The rationale for using build dependencies is:

- Ruby packages are expected to also run the tests during the build, so
  the runtime dependencies should already be build dependencies.

- The packages that are needed only to run the tests are only listed in
  Build-Depends, and not in Depends:.  How else would we known about
  thosse (e.g. test-unit, rspec, etc etc)?

Also, note that the autogenerated tests producec by autodep8 can be
easily replaced by an explicit control file.

Attachment: signature.asc
Description: PGP signature

Reply via email to