Re: How to build a source tarball that includes symbolic links?
- To: firstname.lastname@example.org
- Subject: Re: How to build a source tarball that includes symbolic links?
- From: Paul Wise <email@example.com>
- Date: Thu, 7 Jun 2012 11:52:30 +0800
- Message-id: <CAKTje6Ge619pXY=ANYGaUNA6_sxdtvQQi303nKdhm+WcpGFEmA@mail.gmail.com>
- In-reply-to: <CAOxvkvANR5=fqz_yiyr-OAqE4TNptn_qzy7NUmEgu3agh2TuSA@mail.gmail.com>
- References: <CAOxvkvANR5=fqz_yiyr-OAqE4TNptn_qzy7NUmEgu3agh2TuSA@mail.gmail.com>
On Thu, Jun 7, 2012 at 11:42 AM, David Lindelöf wrote:
> I'm trying to build my first cross-distribution package, but I run
> into the following problem.
> The source of my project includes symbolic links to other source trees
> (notably, the CppUTest framework and a library used by several of our
> projects). When I call `dpkg-buildpackage` to build a debian package
> out of my project, I've found that `dpkg-source` will not follow the
> symbolic links and leaves them as empty files in the source's tarball.
> As a result, they cannot be used by `pbuilder` to build the package
> for another distribution.
> Digging further, I believe this is because the default behavior for
> `tar` is not to dereference symbolic links unless explicitly told to
> (with `-h`). I was unable to find any way to pass this extra option to
> `tar` when building the debian source's tarball.
> I've also asked the question on StackOverflow
> (http://stackoverflow.com/q/10917214/1428) but to no avail.
> What am I doing wrong here? Is it possible to build a debian source
> tarball whose origin includes symbolic links? If so, how?
Could you give us a link to the tarball or Debian source package?
It isn't clear to me what you are doing wrong from your description,
but please note that source packages are self-contained apart from
being able to Build-Depend on binary packages.