Re: source packages and upstream source
- To: email@example.com
- Subject: Re: source packages and upstream source
- From: firstname.lastname@example.org (Kai Henningsen)
- Date: 01 Mar 1997 11:09:00 +0100
- Message-id: <6S0o$vXjcsB@khms.westfalen.de>
- In-reply-to: <m0w0XOi-0004QqC@chiark.greenend.org.uk>
email@example.com (Ian Jackson) wrote on 28.02.97 in <m0w0XOi-0004QqC@chiark.greenend.org.uk>:
> dpkg-source can be changed so that it doesn't mind what directory the
> upstream .tar.gz unpacks into, but I think it will still have to
> require that it unpacks into _some_ subdirectory.
We can force that, as has already been pointed out.
Make a new subdirectory. untar into that subdirectory. All you need to
check for are absolute paths, and paths including "..".
Move the results around after unpacking, so the rest of the system needs
no special intelligence. If there's just one subdir in the tempdir, make
that the original dir. If there's several, or any non-dirs, use the
Of course, there's still the problem with exotic source packages - shar
files, zip files, multiple files, tars with absolute paths or ".."
components, tars containing other archives ... all those will still need
> The upstream source tarfile itself should still be renamed to
> *.orig.tar.gz, but of course that won't affect its checksum.