mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Automatic package rebuild after rule/patch file update
@ 2011-11-30 11:46 Nikolay Kanchev
  2011-12-01 18:29 ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Nikolay Kanchev @ 2011-11-30 11:46 UTC (permalink / raw)
  To: ptxdist

Hello

I need to know if there is a way ptxdist automatically rebuild packages 
that have changed rule/patches files on "ptxdist go".

Description of our problem:
We have many colleagues working on same ptxdist project through SVN.
When somebody make changes to rule file or patches, then commit it to 
the SVN server, other colleagues update from SVN and call "ptxdist go" 
nothing happen because changed package already is build and have all 
state files.

Now I try to prepare script that will check before SVN update and remove 
states for changed packages, but if there is a elegant way it's better 
to use.

-- 
Best regards,

Nikolay Kanchev
System administrator

AMK "Drives and Controls" Ltd.
Bulgaria
5300 Gabrovo
1 "Gen. Nikolov" str.
www.amk-drives.bg

Phone:  +359 / 66 / 819124
Fax:    +359 / 66 / 819101
E-mail: nikolay.kanchev@amk-drives.bg

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Automatic package rebuild after rule/patch file update
  2011-11-30 11:46 [ptxdist] Automatic package rebuild after rule/patch file update Nikolay Kanchev
@ 2011-12-01 18:29 ` Michael Olbrich
  2011-12-02  8:50   ` Josef Holzmayr
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2011-12-01 18:29 UTC (permalink / raw)
  To: ptxdist

Hi,

On Wed, Nov 30, 2011 at 01:46:30PM +0200, Nikolay Kanchev wrote:
> I need to know if there is a way ptxdist automatically rebuild
> packages that have changed rule/patches files on "ptxdist go".
> 
> Description of our problem:
> We have many colleagues working on same ptxdist project through SVN.
> When somebody make changes to rule file or patches, then commit it
> to the SVN server, other colleagues update from SVN and call
> "ptxdist go" nothing happen because changed package already is build
> and have all state files.
> 
> Now I try to prepare script that will check before SVN update and
> remove states for changed packages, but if there is a elegant way
> it's better to use.

Not right now. I've tried to do this, but so far I could not find a way to
do this, that performs well.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Automatic package rebuild after rule/patch file update
  2011-12-01 18:29 ` Michael Olbrich
@ 2011-12-02  8:50   ` Josef Holzmayr
  2011-12-02 14:45     ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Josef Holzmayr @ 2011-12-02  8:50 UTC (permalink / raw)
  To: ptxdist

On 01.12.2011 19:29, Michael Olbrich wrote:
>> Now I try to prepare script that will check before SVN update and
>> remove states for changed packages, but if there is a elegant way
>> it's better to use.
>
> Not right now. I've tried to do this, but so far I could not find a way to
> do this, that performs well.

Is a simple mtime comparison too unreliable? If it is, by "not 
performing well" I guess you mean the obvious possibility to hash the 
rules files...

Greetz
_____________________________________________________________
Josef Holzmayr
Dipl-Ing. (FH)
Entwicklung Embedded Devices / Software

Tel.: +49 8444 9204-48>
Fax:  +49 8444 9204-50
holzmayr@rsi-elektrotechnik.de

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Automatic package rebuild after rule/patch file update
  2011-12-02  8:50   ` Josef Holzmayr
@ 2011-12-02 14:45     ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2011-12-02 14:45 UTC (permalink / raw)
  To: ptxdist

On Fri, Dec 02, 2011 at 09:50:53AM +0100, Josef Holzmayr wrote:
> On 01.12.2011 19:29, Michael Olbrich wrote:
> >>Now I try to prepare script that will check before SVN update and
> >>remove states for changed packages, but if there is a elegant way
> >>it's better to use.
> >
> >Not right now. I've tried to do this, but so far I could not find a way to
> >do this, that performs well.
> 
> Is a simple mtime comparison too unreliable? If it is, by "not
> performing well" I guess you mean the obvious possibility to hash
> the rules files...

Well first you need to find all files, that need to be considered. That
takes some time. And its far too easy to change the mtime, especially when
using an uninstalled ptxdist, so you need a hash. I tied to do something
like that and gave up when I got +10 seconds to get a 'everything is up to
date' for a larger BSP.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-02 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-30 11:46 [ptxdist] Automatic package rebuild after rule/patch file update Nikolay Kanchev
2011-12-01 18:29 ` Michael Olbrich
2011-12-02  8:50   ` Josef Holzmayr
2011-12-02 14:45     ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox