On Monday, June 03, 2013 09:11:46, Pol Hallen wrote: > Hi all! This is my first post :-) > > I try to patch postfix and I want be sure that my procedure is correct :-)
I'd say yes. > 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 > > to rebuild I do: > > dpkg-buildpackage -rfakeroot -uc -us > > and I've a new postfix package One thing you should seriously consider doing is installing the 'devscripts' package and adding a changelog entry with 'dch -i' to give your modified package a newer/different package version number, which will make your modifed package more easy to distinguish from the postfix package in the standard Debian archive. Likewise after installing your package you might want to put the package on 'hold' so that a newer package in the Debian archive won't install over your version. Another way to deal with this problem is to make your own personal Debian repository (I suggest looking at the 'reprepro' package for this), which gives you an opportunity to set a 'pin priority' for the packages in your personal repsitory, giving them priority. (See the apt-preferences(5) man page for details on this.) > A question: the dir of postfix (created by system after apt-get source > postfix), is already patched with debian patches? Yes in this case (it isn't _always_ the case unfortunately, but the exceptions are rare). 'apt-get source postfix' patches the source with the package's .diff.gz (below I'm showing the the version in Debian Sid, rather than Squeeze): $ apt-get source postfix Reading package lists... Done Building dependency tree Reading state information... Done NOTICE: 'postfix' packaging is maintained in the 'Git' version control system at: git://git.debian.org/~lamont/postfix.git Need to get 4,081 kB of source archives. Get:1 http://ftp.us.debian.org/debian/ sid/main postfix 2.10.0-3 (dsc) [1,737 B] Get:2 http://ftp.us.debian.org/debian/ sid/main postfix 2.10.0-3 (tar) [3,827 kB] Get:3 http://ftp.us.debian.org/debian/ sid/main postfix 2.10.0-3 (diff) [253 kB] Fetched 4,081 kB in 1s (2,235 kB/s) dpkg-source: info: extracting postfix in postfix-2.10.0 dpkg-source: info: unpacking postfix_2.10.0.orig.tar.gz dpkg-source: info: applying postfix_2.10.0-3.diff.gz dpkg-source: info: upstream files that have been modified: postfix-2.10.0/Makefile.in postfix-2.10.0/conf/main.cf postfix-2.10.0/conf/main.cf.tls postfix-2.10.0/conf/master.cf postfix-2.10.0/conf/postfix-files ... [many other files patched] The last set of lines above list the upstream postfix files that got patched. -- Chris -- Chris Knadle chris.kna...@coredump.us GPG Key: 4096R/0x1E759A726A9FDD74
signature.asc
Description: This is a digitally signed message part.