|
Home > Archive > Debian Developers > January 2004 > Re: Documentation of original source tarballs
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Documentation of original source tarballs
|
|
| Theodore Ts'o 2004-01-23, 2:34 pm |
| On Thu, Jan 22, 2004 at 08:45:01PM +0000, Henning Makholm wrote:quote:
> I have tried to consense my corrected understanding of the technical
> requirements and current best practices into the following text, which
> I intend to contribute to some appropriate collection of
> documentation. For now, I solicit comments, especially on the
> following points:
If we're going to be explicit about defining the handling of
orig.tar.gz, and when native and non-native source packging should be
used, we should also note that sometimes it is necessary to use a
debian-native packaging, due to a defficiencies in dpkg-source, diff,
and patch not being able to handle modified or new binary files.
- Ted
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Colin Watson 2004-01-23, 2:34 pm |
| On Fri, Jan 23, 2004 at 01:31:39PM -0500, Theodore Ts'o wrote:quote:
> On Thu, Jan 22, 2004 at 08:45:01PM +0000, Henning Makholm wrote:
>
> If we're going to be explicit about defining the handling of
> orig.tar.gz, and when native and non-native source packging should be
> used, we should also note that sometimes it is necessary to use a
> debian-native packaging, due to a defficiencies in dpkg-source, diff,
> and patch not being able to handle modified or new binary files.
That only requires a non-pristine .orig.tar.gz, not full Debian-native
packaging (i.e. .tar.gz, no .diff.gz).
Also, new binary files are often handled by including uuencoded files in
the diff.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Adam Heath 2004-01-24, 2:34 pm |
| On Fri, 23 Jan 2004, Theodore Ts'o wrote:
quote:
> If we're going to be explicit about defining the handling of
> orig.tar.gz, and when native and non-native source packging should be
> used, we should also note that sometimes it is necessary to use a
> debian-native packaging, due to a defficiencies in dpkg-source, diff,
> and patch not being able to handle modified or new binary files.
see dpatch or dbs.
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Theodore Ts'o 2004-01-30, 9:34 am |
| On Sat, Jan 24, 2004 at 09:18:15PM -0600, Adam Heath wrote:quote:
>
> see dpatch or dbs.
Unless I'm mutch mistaken, both dpatch and dbs do not support modified
or new binary files.
- Ted
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Gergely Nagy 2004-01-30, 10:34 am |
| > > > If we're going to be explicit about defining the handling ofquote:
>
> Unless I'm mutch mistaken, both dpatch and dbs do not support modified
> or new binary files.
I can't speak about dbs, but dpatch certainly does. The problem is
dpkg-source which iirc, will fail if you have new or modified binary
(and you will still have that when using dpatch, unless you uuencode it
or otherwise hide it from dpkg-source, in which case you might drop
dpatch altogether, if this would be the only thing you wanted to use
it).
As much as I remember dbs, that one is able to solve this problem: just
put the original tarball and the new/modified binaries inside the debian
..orig.tar.gz, and you're all set - dpkg-source will not scream about
modified binaries in diff.gz since there are none. diff.gz would only
contain debian/ which is all text.
(Correct me if I'm wrong, though)
--
Gergely Nagy
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Theodore Ts'o 2004-01-30, 10:34 am |
| On Sat, Jan 31, 2004 at 12:18:32AM +0100, Gergely Nagy wrote:quote:
> As much as I remember dbs, that one is able to solve this problem: just
> put the original tarball and the new/modified binaries inside the debian
> .orig.tar.gz, and you're all set - dpkg-source will not scream about
> modified binaries in diff.gz since there are none. diff.gz would only
> contain debian/ which is all text.
At that point, though, you've modified the original sources, which
means there's no longer a concept of "pristine source."
My personal solution of solving this problem is to simply use a
debian-native packaging format, since arguably by work-in-progress
releases are really engineered and tested on Debian first, and then be
done with it. Some folks kvetched at this approach, however, but I
really think it's for the best.
- Ted
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Gergely Nagy 2004-01-30, 11:34 am |
| > > As much as I remember dbs, that one is able to solve this problem: justquote:
>
> At that point, though, you've modified the original sources, which
> means there's no longer a concept of "pristine source."
Well, there is a pristine tarball embedded in the debian .orig.tar.gz...
Though, you're right, .orig.tar.gz wouldn't be pristine then.
quote:
> My personal solution of solving this problem is to simply use a
> debian-native packaging format, since arguably by work-in-progress
> releases are really engineered and tested on Debian first, and then be
> done with it. Some folks kvetched at this approach, however, but I
> really think it's for the best.
If I'll ever face a situation, I'll probably go with uuencoding the
patch and apply it with dpatch, so that I can have the original upstream
tarball as my .orig.tar.gz. Unless I need to _remove_ files, I think
this - or similar - method serves the pristine source way best.
Anyway, just my two HUFs before sleep.
--
Gergely Nagy
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Brian May 2004-01-30, 4:34 pm |
| >>>>> "Gergely" == Gergely Nagy <algernon@debian.org> writes:
Gergely> As much as I remember dbs, that one is able to solve this
Gergely> problem: just put the original tarball and the
Gergely> new/modified binaries inside the debian .orig.tar.gz, and
Gergely> you're all set - dpkg-source will not scream about
Gergely> modified binaries in diff.gz since there are
Gergely> none. diff.gz would only contain debian/ which is all
Gergely> text.
With dbs you won't be able to make modifications to binary files
without a new orig.tar.gz file, which implies that the upstream
version number needs to be changed...
What happened to dpkg-source v2? Is it still around? Does it solve the
problem of modifying/adding binary files?
--
Brian May <bam@debian.org>
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|
|
|
|
|