chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Prevent running applications from crashing


From: Mario Domenech Goulart
Subject: Re: [Chicken-hackers] [PATCH] Prevent running applications from crashing when reinstalling
Date: Tue, 02 Oct 2012 16:25:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

Hi,

On Mon, 01 Oct 2012 19:55:10 +0200 (CEST) Felix <address@hidden> wrote:

> From: Christian Kellermann <address@hidden>
> Subject: [Chicken-hackers] [PATCH] Prevent running applications from crashing 
> when reinstalling
> Date: Mon, 1 Oct 2012 17:41:59 +0200
>
>> thanks to Jim for the suggestion, I have been changing chicken-install
>> to remove preexisting files before installing them. This enables me to
>> reinstall an egg and have the running application that uses that not
>> segfault as it did before. Tried with several eggs so far.
>
> Signed off and pushed. I took the freedom to replace the invocation
> of "run" with
>
>   (run (,*remove-command* ,(shellpath to))))   ; uses "shellpath"

Unfortunately I had to revert that patch, since it risks removing
directories when the second argument (`to') is a directory.  For
example, eggs that depend on setup-helper trash `(chicken-home)', since
setup-helper runs

 (when (setup-install-mode) (copy-file "setup-helper.scm" (chicken-home))

at some point.

Thanks to Peter Bex to help investigating and pointing out what was
causing the problem.

I've reopened #929.


Best wishes,
Mario
-- 
http://parenteses.org/mario



reply via email to

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