From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CPDeI6kyxV4WLAAA0tVLHw (envelope-from ) for ; Wed, 20 May 2020 13:37:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iM6JH6kyxV5ZKwAAB5/wlQ (envelope-from ) for ; Wed, 20 May 2020 13:37:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0500794038E for ; Wed, 20 May 2020 13:37:45 +0000 (UTC) Received: from localhost ([::1]:47134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbOul-0003nE-VX for larch@yhetil.org; Wed, 20 May 2020 09:37:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbOrD-0005Ge-03 for guix-patches@gnu.org; Wed, 20 May 2020 09:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbOrC-0003Dg-MO for guix-patches@gnu.org; Wed, 20 May 2020 09:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jbOrC-000164-GC for guix-patches@gnu.org; Wed, 20 May 2020 09:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41294] [PATCH] gnu: Add libfreenect. Resent-From: iyzsong@member.fsf.org (=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 May 2020 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41294 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ekaitz Zarraga Cc: "41294@debbugs.gnu.org" <41294@debbugs.gnu.org> Received: via spool by 41294-submit@debbugs.gnu.org id=B41294.15899816344200 (code B ref 41294); Wed, 20 May 2020 13:34:02 +0000 Received: (at 41294) by debbugs.gnu.org; 20 May 2020 13:33:54 +0000 Received: from localhost ([127.0.0.1]:52657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbOr4-00015g-6T for submit@debbugs.gnu.org; Wed, 20 May 2020 09:33:54 -0400 Received: from rezeros.cc ([45.76.207.221]:50594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbOr3-00015R-3x for 41294@debbugs.gnu.org; Wed, 20 May 2020 09:33:53 -0400 Received: from localhost ( [117.173.227.26]) by rezeros.cc (OpenSMTPD) with ESMTPSA id ef412ea9 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 20 May 2020 13:33:45 +0000 (UTC) Received: from gift (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 55bde3af; Wed, 20 May 2020 13:33:09 +0000 (UTC) From: iyzsong@member.fsf.org (=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?=) References: <5kf9uJF2SDo9zwlTUoFI13o7P7q68o-AuSp72MvOp5PUaF2SlAPxzQJvFws5aaTOB5EHY4T3-En0Mhba7hADMIeJkgCeWUOY_Ciy0fv24Ck=@elenq.tech> <87k11c5ymm.fsf@member.fsf.org> <87sgfz1f43.fsf@member.fsf.org> <87eergqcn4.fsf@member.fsf.org> <9ZfB8rv2oVS3f1P4KqZV9twP9VRoO9GNuPvbzT_BjLAzXCs6kumdqaIPD_TMejSv5B0D34dg6tpbmKPmIQxuLW64pU35VX5LGNn5tM9Ka04=@elenq.tech> Date: Wed, 20 May 2020 21:33:08 +0800 In-Reply-To: <9ZfB8rv2oVS3f1P4KqZV9twP9VRoO9GNuPvbzT_BjLAzXCs6kumdqaIPD_TMejSv5B0D34dg6tpbmKPmIQxuLW64pU35VX5LGNn5tM9Ka04=@elenq.tech> (Ekaitz Zarraga's message of "Tue, 19 May 2020 13:52:15 +0000") Message-ID: <87h7wak9yj.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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=fsf.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.91 X-TUID: kVu4ph6dpCH3 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 Tuesday, May 19, 2020 3:42 PM, Ekaitz Zarraga wrot= e: > >> Hi, >> >> > > There's some kind of weird magic I'm not getting. >> > >> > Hello, I don't know the whole detail too, but to build a package, guix= likely: >> > >> > - Load and eval the package module, to get the package object. The >> > 'arguments' field is a list. >> > >> > - Convert this package object to a derivation, and write it in store= as >> > a file (/gnu/store/*.drv). Where 'arguments' being part of the >> > builder, serialize as string to the file, it dosen't do complex th= ings >> > for procedure bindings, only write their string descriptions... So >> > when the builder file is loaded, you get `Unknown object` errors. >> > Here, to avoid duplicating the code, you can: >> > >> > >> > 1. Unquote list value into `arguments`. (eg: 'asdf-substitutions' in = lisp.scm) >> >> This doesn't work for me. I don't know why. >> >> Just moved the lambda to a (define* deactivate-sources ...) and then whe= n I try to put the name like >> >> (arguments `( #tests? .... ,deactivate-sources ...) >> >> Shoots an Unknown object error. I add a diff below to let you see the wh= ole picture of what I did and doesn't work. >> >> > 2. Use `(package-arguments libfreenect-examples)` with >> > `substitute-keyword-arguments` to reuse arguments, but modify >> > `configure-flags` etc. (eg: qtx11extras) >> > The build system can use 'imported-modules' to make a set of guile >> > modules (which can contains useful procedures, etc.) available to = the >> > builder, but thas's overkill to be used here... >> > >> [...] > > oh, > > the code is wrong, there parenthesis on the define are making it a functi= on but anyway: > - Tested using ,(disable-sources) FAIL > - Tested removing the parenthesis and leaving (define disable-sources (la= mbda*...)) > > There must be something I'm missing. 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.