On Wed, Feb 06, 2002 at 12:43:35PM -0600, Manoj Srivastava wrote: > >>"Paul" == Paul Hampson <Paul.Hampson@anu.edu.au> writes: > > Paul> How about 'kernel-source' virtual package, that by default grabs > Paul> the appropriate source for your arch? I _assume_ that other non-Linux > Paul> arch's kernels are downloaded, compiled and installed similarly > Paul> to the way Linux's are. > > And how exactly does this ``grabbing'' occur? Dunno. The same way 'java-virtual-machine' does it? Except it selects the appropriate one as below. (I know it's done, I just can't remember which package does it....) > Paul> Then, under the hurd you'd get > Paul> apt-get install kernel-source <== Gives latest HURD source > Paul> apt-get install linux-source <== Gives latest Linux source > Paul> apt-get install linux-source-2.4.17 <== Gives Linux 2.4.17 source > > And on a arm/netbsd machine > apt-get install kernel-source <== Gives latest netbsd source (perhaps > with the arm patch?) > > So we presumably have linux-kernel-source-X.Y.Z, with things like > linux-kernel-patch-arm-X.Y.Z, and hurd-kernel-source-Z.N.M. For sensibility, I'd be rolling the linux-kernel-patch-arm-X.Y.Z into linux-kernel-source-X.Y.Z. Unless it somehow breaks the other archs? After all, that's one of the advantages of having our own kernel source packages. We can patch them before distribution. > Under the current dpkg, one or more of them also provide a > 'kernel-source' virtual package. Which one do you propose does so? If > they all do that, then they are all equally viable on any arch, and > guess what happens when you do apt-get install kernel-source > > Do you have an idea of how to redesign dpkg to handle this grabbing? I'd presumed (obviously errouneously) that kernel-source would be marked as a virtual package for linux-source on arch-linux et al. However, linux-source would be a virtual package to the latest linux source, so you could enter the name directly and get it, no matter what arch you were on. Am I over-estimating the abilities of apt-get/dpkg? -- =========================================================== Paul "TBBle" Hampson, MCSE 4th year CompSci/Asian Studies student, ANU The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361) Paul.Hampson@Anu.edu.au Of course Pacman didn't influence us as kids. If it did, we'd be running around in darkened rooms, popping pills and listening to repetitive music. This email is licensed to the recipient for non-commercial use, duplication and distribution. ===========================================================
Attachment:
pgpdRCqCXN1ye.pgp
Description: PGP signature