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

Re: Unofficial package tips

On Fri, Feb 28, 2003 at 11:38:33PM -0500, Joey Hess wrote:
> Bastian Kleineidam wrote:
> > > Hmm, dh_make is trying to do a similar approach. Why not use that way?
> > I like to have the original .tar.gz exactly as I downloaded it. dh_make
> > unpacks the source and repacks it to a new .orig.tar.gz.
> Why would dh_make go out of its way to violate best practices like that?

The short answer is, because people don't read the manual pages, -f to
be more precise, they have also fallen into the common trap of thinking
dh_make does it this way for them, so it does it that way for everyone.

So here is what dh_make does:
  - If you use the -f blah flag, it copies that file to the right name
    using cp
  - If it finds ../blah-1.orig/, it uses that
  - Finally, it makes a ../blah-1.orig from ../blah-1 before it adds
    stuff, ../blah-1 is most likely the cwd.

So the answer is if you don't tell dh_make what the original file is
called and don't provide it an orig directory then it has no other
choice but to make the orig directory from its current directory.

I actually mv blah-1.0.tgz blah_1.0.orig.tar.gz which bypasses it all

> see shy jo, who is not a dh_make user
  - Craig, who is (as well as the maintainer)

Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/                <csmall@enc.com.au>
MIEEE <csmall@ieee.org>                 Debian developer <csmall@debian.org>

Reply to: