[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#423223: lintian: Please add directory name sanity check for orig.tar.gz



Kevin B McCarty <kmccarty@Princeton.EDU> writes:

> Package: lintian
> Severity: wishlist

> Hi Lintian maintainers,

> Would it be possible to add a severity "warning" check on the
> orig.tar.gz or tar.gz to make sure that the directory inside the tarball
> has a sane name?  Specifically it should be named with one of the forms

> <sourcepkg>-<upstream_version>
> <sourcepkg>-<upstream_version>.orig
> [latter is probably not OK for Debian-specific tar.gz]

> where <upstream_version> is the version given in the most recent
> debian/changelog entry, with the epoch and Debian release stripped.

> The convention is documented as a "should" in Developers' Reference 6.7.8.

To the contrary, devref 6.7.8 makes it clear that one should NOT do this.
You should use the virgin upstream source tarball, with whatever directory
name they ship with.  dpkg copes, and you should not repackage upstream
just to change the directory name.

*If* the source is repackaged, *then* you should use the .orig convention,
but lintian has no way of knowing whether the source is repackaged or not.

> This check would have saved me from #416008 ;-)

That's not really a bug.  That's not a supported way of unpacking a Debian
package.  Debian packages should be unpacked with dpkg-source or with a
program that performs the same operations.  Since you're repackaging the
upstream source anyway, you can certainly fix it if you so choose, but
there's no need to do so.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: