Re: mach / apt / kernel-devel question

Jeff Pitman <[email protected]>
Newsgroups gmane.linux.freshrpms.user
Message-ID <[email protected]>
On Tuesday 21 June 2005 17:23, Alexandre Silva Lopes wrote:
> A question for packagers: how do you convince apt to install the
> right kernel-devel package inside mach?

It ain't pretty, but one way to do is to put it in the snapshot:

/var/lib/mach/states/*/build

list "kernel-devel 2.6.12-1" or whatever.

Then run:

$ mach apt-get install kernel-devel=2.6.12-1

The latter will get it installed, the former will make it stay put.  
You'll have to repeat this after a clean.

You can also checkout the "packages" configuration dictionary.  
Check /etc/mach/dist.d/*.  You can put "kernel-devel" in the 
packages['build'] string.  Right now, I don't think you can pin the 
version in the config.  Best bet is to pin it with the build file as 
explained above.

An alternative to the above is to grab the snapshot patch from here:

http://symbiont.mn.sabren.com/sandbox/mach/

Then, you can do the above using the following commands:

$ mach apt-get install kernel-devel=2.6.12-1
$ mach snapshot

That will update the build file with the latest package list in your 
chroot.  Make sure your chroot is pretty clean at the time of taking a 
snapshot.

enjoy,
-- 
-jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.