Re: Using Quilt with a new package
- To: email@example.com
- Subject: Re: Using Quilt with a new package
- From: Daniel Lombraña González <firstname.lastname@example.org>
- Date: Thu, 4 Nov 2010 10:09:29 +0100
- Message-id: <AANLkTimXcKCv2q7vdu=X2_S36q5S42UA5mQFPgQJS3c8@mail.gmail.com>
- In-reply-to: <email@example.com>
- References: <AANLkTi=wQdcusJXY_52CFoxNjGqN4DKbU6xWqjT3Kqpi@mail.gmail.com> <20101103070026.GE20689@merveille.plessy.net> <AANLkTi=oxuwKEDs8A=GWd2irxA+jtp4j4vSax7R3UjLF@mail.gmail.com> <firstname.lastname@example.org>
Thanks for all your help. I think that right now the easiest way for
me is to handle the modifications by hand as they are not very
difficult to manage (just comment out one line in the SQL file).
Neverthless, what I wanted is to do this automatically for me :). I
will try it again with Quilt 3.0 and see if I can achieve what I want.
Thanks for your help,
On Wed, Nov 3, 2010 at 16:45, Goswin von Brederlow <email@example.com> wrote:
> Scott Howard <firstname.lastname@example.org> writes:
>> On Wed, Nov 3, 2010 at 3:00 AM, Charles Plessy <email@example.com> wrote:
>>> Le Tue, Nov 02, 2010 at 01:02:25PM +0100, Daniel Lombrańa González a écrit :
>>>> After that, I kept reading about git-buildpackage and it seems that it
>>>> should be more easy to maintain those differences between the upstream
>>>> version and the deb one using patches. However, I don't know how I
>>>> have to do this, as I have been trying it out, and as far as I have
>>>> get is to create the debian/patches folder (using gbp-pq) with a patch
>>>> that removes that instruction. However, when building the package
>>>> using git-buildpackage in the master branch (not in
>>>> patch-queue/master) the resulting package does not have applied the
>>>> patch, which is wrong. Is it possible to apply automatically those
>>>> patches when building the package? (FYI I have tried the 3.0 version,
>>>> and I don't get it working either, probably because I'm doing
>>>> something wrong).
>> Paul is right, it's best to get upstream to make a change so you don't
>> need patches, but in case they don't the easiest way is to use source
>> 3.0 (quilt) format . That should automatically apply and keep track
>> of packages for you with no need to change rules files or add depends.
>> I don't know what problem you're having, but the following command:
>> mkdir debian/source ; echo '3.0 (quilt)' > debian/source/format
>> would create a file named "format" in debian/source in your package.
>> The content of the file should be '3.0 (quilt)'. Now you should just
>> use quilt normally.
>> For example
>> quilt new my_new_patch.patch
>> quilt add src/file_i_want_to_change.c
>> [edit the file]
>> quilt refresh
> That won't work, at least not the verry first time. The verry first time
> you need to use 'QUILT_PATCHES=debian/patches quilt ...'. When you
> unpack a source with dpkg-source it does this for you.
> An alternative way to create a new patch and from my point of view
> easier is to
> - just edit files
> - debuild / dpkg-buildpackage till you are happy
> + creates debian/patches/debian-changes-version
> - quilt rename [-P debian-changes-version] my-cool-new-feature.patch
> - $EDITOR debian/patches/my-cool-new-feature.patch
> + add patch description to the premade header
>> you now should have your patch in debian/patches along with a file
>> named "series" in debian/patches that contains the name of your patch.
>> You can find better how tos on the internet, but that should be it.
>>  http://wiki.debian.org/Projects/DebSrc3.0
> And if you want to have patches unapplied add "unapply-patches" to
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
> Archive: http://email@example.com
Por favor, NO utilice formatos de archivo propietarios para el
intercambio de documentos, como DOC y XLS, sino HTML, RTF, TXT, CSV
o cualquier otro que no obligue a utilizar un programa de un
fabricante concreto para tratar la información contenida en él.