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

Re: advice about compile a package



On Tue, Jun 4, 2013 at 2:28 AM, Pol Hallen <debiandevelml@fuckaround.org> wrote:

> apt-get source postfix and I see:
>
> f 215552 Jun  3 13:35 postfix_2.7.1-1+squeeze1.diff.gz
> f 1754 Jun  3 13:35 postfix_2.7.1-1+squeeze1.dsc
> d 4096 Jun  3 13:35 postfix-2.7.1
> f 3418747 Jun  3 13:35 postfix_2.7.1.orig.tar.gz
>
> I go to postfix-2.7.1 dir and I patch:
>
> patch -p1 < patch.x.y.z
>
> everything ok

You should also update the debian/changelog file. the tool dch will
assist with this.
Add a new entry to describe the changes you are making and give it a
new version number.
probably something like 2.7.1-1+squeeze1~local-1. Though I do not
completely understand the nature of your changes and this may affect
how you change the version number.

>
> to rebuild I do:
>
> dpkg-buildpackage -rfakeroot -uc -us
>
> and I've a new postfix package
>
> A question: the dir of postfix (created by system after apt-get source
> postfix), is already patched with debian patches? or I need compile debian
> patches to that dir?

As far as I am aware, the unpacked version will be clean (without
patches) the patches are applied as part of the build process.

I hope that helps (and is correct - I too am still learning).

Joe


Reply to: