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

Re: screwy error message from dpkg-buildpackage



"Susan G. Kleinmann" <sgk@kleinmann.com> wrote:
>As directed in the policy manual (the chapter on conversions), I 
>-- obtained the source code for a pacakge I want to build (blurf-NN.tar.gz),
>-- copied it to blurf_NN.orig.tar.gz, then

Erm, no. What you're _supposed_ to do is:

  * download blurf-NN.tar.gz
  * extract it
  * rename blurf-NN to blurf-NN.orig
  * extract blurf-NN.tar.gz again (or ln all files would also be OK, I guess
    - it'd have to be hard links, though, _NOT_ symlinks, due to the way
    the source build works.)

>but got this error message:
>dpkg-source: building sp using existing sp_1.1.1.orig.tar.gz
>dpkg-source: error: tarfile `sp_1.1.1.orig.tar.gz' contains \
>   object (sp-1.1.1/COPYING) not in expected directory (sp-1.1.1.orig)

Exactly. dpkg-source expects the files in sp_1.1.1.orig.tar.gz to extract
to sp-1.1.1.orig. Since this is the original sources, which will extract
to sp-1.1.1, dpkg-source will complain.

>But why should that cause an error?

See above.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: