chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Delete stale binaries when cross-building


From: Felix
Subject: Re: [Chicken-hackers] [PATCH] Delete stale binaries when cross-building eggs
Date: Thu, 02 May 2013 10:21:38 +0200 (CEST)

> This patch doesn't take care of things in subdirectories or executable
> programs, though.  I'm unsure this will help much at all.  For example,
> cross-building vandusen from a checkout would probably break due to the
> final program not getting recompiled (you could argue that's due to a
> broken dependencies list in the Make target, but the problem exists
> either way).

It's generally impossible to figure out what files are binaries and
produced by the egg-setup and which are not (there might be executable
scripts that are part of the egg sources). So this is an attempt to
handle the usual case, even if it is not perfect.

> 
> Using "make" for eggs seems wrong to me anyway: normally eggs are always
> built in full after downloading.  Only very ocasionally does one need to
> rebuild just a part.  But during development this might be helpful...

During development it is essential. Some eggs contain a lot of code
and take long to compile. Once you have a setup file, it will become
difficult and error-prone to keep two different approaches to building
the egg (one for development and one for egg-setup).

> 
> Anyway...  Because I don't know of a way to fundamentally fix it,
> I've slightly modified your patch to at least make it handle
> subdirectories.  I've added a patch to allow SRE expressions as a test
> for find-files, as well (it only accepted procedures, strings and
> precompiled irregex objects).  The patch also updates the documentation.

Thanks. I will push it in a few moments.


cheers,
felix



reply via email to

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