[Top][All Lists]

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

Re: [Ltib] How to force a package build if its PRECONFIG changed?

From: Stuart Hughes
Subject: Re: [Ltib] How to force a package build if its PRECONFIG changed?
Date: Mon, 21 Mar 2011 21:11:22 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

Hi Peter,

This is not straightforward as you need to compute which preconfig is
actually going to get used (as in busybox.spec and similarly for the
kernel).  The names are in in $pcf->{PKG_KERNEL_PRECONFIG} and
$pcf->{PKG_BUSYBOX_PRECONFIG}, but the paths need to be computed.  So
assuming you can do this, you'd need code around 770, where the rpm
rebuild logic occurs along the lines of:

my $cf_upd = @rpms && (-M compute_preconfig_path($key) < -M $rpms[0])
$r .= "config file has been updated", " if $cf_upd;

Sorry I don't have more time to look into this further, but hopefully
this is of some help.

Regards, Stuart

On 21/03/11 19:56, Peter Barada wrote:
> Stuart,
> How can I have "./ltib" force a rebuild of a package (kernel, busybox, etc) 
> if the content of its PRECONFIG file changed?  I.e. if I change the kernel or 
> busybox .config file(i.e newer than the generated rpm file), how can i 
> trigger a build of that package?
> I've gotten bitten by enabling CONFIG_FEATURE_IFCONFIG_HW in the 
> busybox.config file I'm using and the automated build didn't detect that 
> busybox needed to be rebuilt.
> I'll code it up and experimet, but I'm not sure how to get the dates for the 
> preconfig and resultant rpm files(as my perl fu is weak).
> Any help is appreciated.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]