From debbugs-submit-bounces@debbugs.gnu.org Thu May 21 07:38:43 2020 Received: (at 41294-done) by debbugs.gnu.org; 21 May 2020 11:38:43 +0000 Received: from localhost ([127.0.0.1]:55470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbjX9-0007y7-0f for submit@debbugs.gnu.org; Thu, 21 May 2020 07:38:43 -0400 Received: from rezeros.cc ([45.76.207.221]:51354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbjX7-0007xp-6u for 41294-done@debbugs.gnu.org; Thu, 21 May 2020 07:38:41 -0400 Received: from localhost ( [117.173.227.26]) by rezeros.cc (OpenSMTPD) with ESMTPSA id 351e9dd6 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 21 May 2020 11:38:33 +0000 (UTC) Received: from gift (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 67974da4; Thu, 21 May 2020 11:38:15 +0000 (UTC) From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) To: Ekaitz Zarraga Subject: Re: [bug#41294] [PATCH] gnu: Add libfreenect. References: <5kf9uJF2SDo9zwlTUoFI13o7P7q68o-AuSp72MvOp5PUaF2SlAPxzQJvFws5aaTOB5EHY4T3-En0Mhba7hADMIeJkgCeWUOY_Ciy0fv24Ck=@elenq.tech> <87sgfz1f43.fsf@member.fsf.org> <87eergqcn4.fsf@member.fsf.org> <9ZfB8rv2oVS3f1P4KqZV9twP9VRoO9GNuPvbzT_BjLAzXCs6kumdqaIPD_TMejSv5B0D34dg6tpbmKPmIQxuLW64pU35VX5LGNn5tM9Ka04=@elenq.tech> <87h7wak9yj.fsf@member.fsf.org> Date: Thu, 21 May 2020 19:38:15 +0800 In-Reply-To: (Ekaitz Zarraga's message of "Wed, 20 May 2020 16:37:16 +0000") Message-ID: <87ftbt8qmw.fsf@member.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41294-done Cc: "41294@debbugs.gnu.org" <41294-done@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ekaitz Zarraga writes: > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original = Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 > On Wednesday, May 20, 2020 3:33 PM, wrote: >> >> Um, I mean something like this: >> >> (define libfreenect-derived-phases >> '(modify-phases %standard-phases >> (lambda* (#:key outputs #:allow-other-keys) >> ...))) >> >> ... >> (arguments >> `(#:phases ,libfreenect-derived-phases)) >> ... >> >> Here 'libfreenect-derived-phases' is a list of symbols, the arguments >> field we want is a list of symbols too. > > Hi, > > That makes way more sense than what I was trying to do. > I applied that and separated libfreenect to a different module. Patch bel= ow. Pushed, with: - Change libfreenect-python to 'python-libfreenect'. - Change libfreenect-cv to 'libfreenect-opencv'. - Change some comments.. Thank you! > > Thank you very much for your support. > > PS: I'm still wondering what kind of weird magic is involved in the examp= le I shown. > Basically we can't use procedure (defined outside of the builder environment) values in the package's arguments field, it have to be self contained, as the package builder is a guile script file serialized from the package object (procedures serilazied into #, and can't be loaded again), and will be executed in an isolated environment.