From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: patch a file which is created while a phase is running which otherwise fails? Date: Tue, 27 Sep 2016 17:52:37 +0000 Message-ID: <87fuoljkm2.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bowYg-0003R0-Gu for guix-devel@gnu.org; Tue, 27 Sep 2016 13:52:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bowYb-0002at-IO for guix-devel@gnu.org; Tue, 27 Sep 2016 13:52:46 -0400 Received: from aibo.runbox.com ([91.220.196.211]:46738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bowYb-0002aJ-BB for guix-devel@gnu.org; Tue, 27 Sep 2016 13:52:41 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bowYZ-00010D-TH for guix-devel@gnu.org; Tue, 27 Sep 2016 19:52:39 +0200 Received: from xd9bb8a2f.dyn.telefonica.de ([217.187.138.47] helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1bowYX-0004sO-RH for guix-devel@gnu.org; Tue, 27 Sep 2016 19:52:38 +0200 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org How can I achieve this? For multiple packages I have this happens: Application setup launches into configure or build phase, some script creates a file where the creation process can not be located easily asuming that a "#! /bin/sh" as shebang and/or "/bin/sh" as executable somewhere in the file will just work and our build system says "¡No pasarán!"... So I was thinking, Guile is flexible, it should be achievable to have something which wraps itself around the phase and for a new file it just patches in what you throw at it in advance. Of course I'm open for whatever works before we get to this. Examples I can think off my head are the mach buildsystem used by the firefox deriviate palemoon, pike (as far as I know, been some time since I made progress on this one). Thanks -- ng0