I'm building a .deb package using:dpkg-deb --build packageThe directory package contains another directory called DEBIAN that has the changelog, but the resulting package doesn't have the changelog.Debian.gz in it, and if I check the package using lintian I get following errors:E: msodbcsql: debian-changelog-file-missingW: msodbcsql: unknown-control-file changelogI don't know if relevant but the permissions on the changelog are as follows:-rwxr-xr-x 1 maximk maximk  159 May 10 11:23 changelogWhy is the changelog considered to be an unknown control file instead of, you know, a changelog?
dpkg-deb build ignores/misinterprets a changelog
dpkg;deb
In a binary package, the changelog isnt a control file, its just part of the packages payload. With dpkg-deb -b, that means you need to place the changelog in usr/share/doc/${package}/changelog.Debian.gz directly (or .../changelog.gz for a native package).More explicitly, since youre building your package in the package directory, instead of putting your changelog in package/DEBIAN/changelog, you put it in package/usr/share/doc/package/changelog.Debian.gz, and build your package as before with dpkg-deb -b package.In source packages, the changelog goes in debian/changelog and is processed by dh_installchangelogs.