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

Re: Maintaining kernel source in sarge

Hash: SHA1

> Christoph Hellwig <hch@lst.de> wrote:
> > Why can't Debian have just one tree for multiple architectures like
> > SuSE and RedHat (sometimes) do.  Okay suse supports 'only' i386,
> > x86_64,ppc,ppc64,s390,s390x,ia64 but their kernel also has patches
> > for sparc,sparc64,mips and m68k although I can't guarantee that these
> > really work in the relased tree (but last time I visted their office
> > people were playing with those ports in their spare time).

SuSE don't have a single kernel source either. They have a set of
a few hundred common patches plus some more patches (e.g. 200
for s390) that are used only for one architecture, usually both 32 and 
64 bit. Single patches can be enabled or excluded per architecture

On Sunday 25 May 2003 00:12, Herbert Xu wrote:
> I don't think we can go all the way yet, but let's make a start.  If
> the architecture maintainers send me patches which clearly don't affect
> other archs or otherwise cause build problems, I will merge them.
> I don't think we can guarantee a tree that builds on all or most
> architectures, but we should be able to keep the difference to a
> minimum.

IMHO the ability to easily override base patches is important, which
would require not a patched kernel-source package but a 
kernel-patch-debian package containing all changes as single
diffs. AFAICS, dh-kpatches allows creating versioned patches.

As a real-world example, kernel-patch-s390 can provide 
the ptrace bug fix from Martin Schwidefsky, while
kernel-patch-debian contains the generic solution from Alan Cox.
When building kernel-image-s390, make-kpkg would first apply
the arch specific patches and the the arch independent ones that
have not been superceded by an arch specific one.

The same scheme allows creating a kernel-patch-2.4.21-rc3
package for kernel-source-2.4.20 that simply overrides all
fixes that have been backported from Marcellos tree to
kernel-patch-debian. This is very helpful for architectures
like amd64, where the official kernel tree only contains changes
against the latest prepatch.

	Arnd <><
Version: GnuPG v1.2.1 (GNU/Linux)


Reply to: