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

Re: How to handle Debian patches



George Danchev <danchev@spnet.net> writes:

> A large number of packages do not follow that simple rule, but patching
> the orig.tar.gz instead.

I have never seen a package that does this apart from DFSG-freeness issues
and a few beginner mistakes.  The Debian changes are separated out in our
source package format in a *.diff.gz, just as they are and were with the
openssl package.

windlord:~/tmp> lsdiff -z -x '*/debian/*' openssl_0.9.8g-10.diff.gz
openssl-0.9.8g/Makefile
openssl-0.9.8g/Configure
openssl-0.9.8g/Makefile.shared
openssl-0.9.8g/config
openssl-0.9.8g/Makefile.org
openssl-0.9.8g/openssl.ld
openssl-0.9.8g/VMS/VMSify-conf.pl
openssl-0.9.8g/Netware/do_tests.pl
openssl-0.9.8g/apps/s_time.c
openssl-0.9.8g/apps/CA.sh
openssl-0.9.8g/apps/CA.pl.in
openssl-0.9.8g/apps/speed.c
openssl-0.9.8g/apps/CA.pl
openssl-0.9.8g/os2/backwardify.pl
openssl-0.9.8g/engines/Makefile
openssl-0.9.8g/engines/openssl.ld
openssl-0.9.8g/tools/c_rehash
openssl-0.9.8g/tools/c_rehash.in
openssl-0.9.8g/ssl/t1_lib.c
openssl-0.9.8g/ms/uplink.pl
openssl-0.9.8g/demos/tunala/configure.in
openssl-0.9.8g/doc/Makefile
openssl-0.9.8g/doc/apps/c_rehash.pod
openssl-0.9.8g/crypto/Makefile
openssl-0.9.8g/crypto/x86cpuid.pl
openssl-0.9.8g/crypto/opensslconf.h
openssl-0.9.8g/crypto/x86_64cpuid.pl
openssl-0.9.8g/crypto/md5/asm/md5-x86_64.pl
openssl-0.9.8g/crypto/md5/asm/md5-sparcv9.S
openssl-0.9.8g/crypto/sha/sha.h
openssl-0.9.8g/crypto/sha/asm/sha1-ia64.pl
openssl-0.9.8g/crypto/sha/asm/sha512-sse2.pl
openssl-0.9.8g/crypto/sha/asm/sha512-ia64.pl
openssl-0.9.8g/crypto/rand/md_rand.c
openssl-0.9.8g/crypto/des/asm/desboth.pl
openssl-0.9.8g/crypto/rc4/asm/rc4-x86_64.pl
openssl-0.9.8g/crypto/perlasm/x86unix.pl
openssl-0.9.8g/crypto/perlasm/cbc.pl
openssl-0.9.8g/crypto/perlasm/x86_64-xlate.pl
openssl-0.9.8g/crypto/pkcs7/pk7_mime.c
openssl-0.9.8g/crypto/bn/asm/ppc.pl
openssl-0.9.8g/crypto/aes/asm/aes-586.pl
openssl-0.9.8g/crypto/asn1/charmap.pl
openssl-0.9.8g/util/mkerr.pl
openssl-0.9.8g/util/clean-depend.pl
openssl-0.9.8g/util/extract-names.pl
openssl-0.9.8g/util/pod2man.pl
openssl-0.9.8g/util/mkstack.pl
openssl-0.9.8g/util/selftest.pl
openssl-0.9.8g/util/extract-section.pl
openssl-0.9.8g/util/mkdef.pl
openssl-0.9.8g/util/pl/netware.pl

That's why, when you run dpkg-source -x openssl_0.9.8g-10.dsc, you get
output like:

dpkg-source: extracting openssl in openssl-0.9.8g
dpkg-source: info: unpacking openssl_0.9.8g.orig.tar.gz
dpkg-source: info: applying openssl_0.9.8g-10.diff.gz

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: