4.16. Missing sources: debian/missing-sources
Sometimes upstream does not include the source code for some files in the upstream tarball. In order to satisfy the DFSG for packages in main
or contrib
, you should either:
repack the upstream tarball to include those sources; or
include a copy of the sources in the
debian/missing-sources
directory.
There is an optional convention to organise the contents of debian/missing-sources
in the following way. For a sourceless file foo
in the subdirectory bar
of the upstream tarball, where the source of foo
has extension baz
, the source is to be located at debian/missing-sources/bar/foo.baz
. For example, according to this convention, the C source code of an executable checksum/util
is to be located at debian/missing-sources/checksum/util.c
.