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 0PsdJQdq11/LQgAA0tVLHw (envelope-from ) for ; Mon, 14 Dec 2020 13:35:03 +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 wKwSIQdq11+WDQAAB5/wlQ (envelope-from ) for ; Mon, 14 Dec 2020 13:35:03 +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 F3E4A94011A for ; Mon, 14 Dec 2020 13:35:02 +0000 (UTC) Received: from localhost ([::1]:38708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koo0D-0003s6-U6 for larch@yhetil.org; Mon, 14 Dec 2020 08:35:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1konzW-0003oc-M4 for help-guix@gnu.org; Mon, 14 Dec 2020 08:34:18 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:62675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1konzS-00007C-73 for help-guix@gnu.org; Mon, 14 Dec 2020 08:34:17 -0500 Date: Mon, 14 Dec 2020 13:34:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail2; t=1607952849; bh=hk8qdEF3tPwnVy4v/w1Hkvr1I09Bj/gaVQtuzI9foOU=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Sx17bRPeu+JFZHS5gjm+cczo+KrWDdFlyvzejKfybyV7SlsIM0jhA2VVXT2j2EbNj UPFzLohGghe3cdsY09PI4INiVA+v2lUzOFTkaSTSqfSWVHFuK2zE6FFIRXZK8t5t6r XcqqaURg9LuFo6Ey063VMAumEktW5BQo5tcOyE8yDucLrbObVamGcd1A0TX1H3txFS qFGke7ufMGkqjC7H7eCn3BWmGK1R0qdGdjqmJPkSxCB0XntP6ACusJjElurB3yMgk0 zqfbDzz44eYl5lTe5+S7Z4KYweBVq6GS5Rav5nin8WvW+g+/vWT9asxNdvigya64p/ +e9Mt1z5C44qg== To: Ekaitz Zarraga From: Ekaitz Zarraga Subject: Re: Custom package, specifying cmake source directory? Message-ID: <5ZeaDz75C2KwexCcUtZH9YmguRYU5PrfogIN5LN_zCCGQ1p-n-_xBCaOCAUnhmOo6Jt7H6bqyN4XPvUSVqFLxRprh4OYn09avbHFHh3_qnw=@elenq.tech> In-Reply-To: References: <20201213205530.25cc3612@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.131; envelope-from=ekaitz@elenq.tech; helo=mail-40131.protonmail.ch X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TO_EQ_FM_DIRECT_MX=2.499 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Cc: "help-guix@gnu.org" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.21 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=elenq.tech header.s=protonmail2 header.b=Sx17bRPe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=elenq.tech (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: F3E4A94011A X-Spam-Score: -0.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: haWpsAEq8myH Hi again, Let me re-answer because I think I screwed in a couple of points. So, you are not trying to use other build directory but a different source = directory. That's a little bit different. Instead of making a `chdir` you need to touc= h the `srcdir` variable. In that case, you can change the current directory in a previous phase, add= ing a new phase before the `configure` step that just jumps to source code = just like `hypre` does. Run `guix edit hypre` to see it: ``` scheme (add-before 'configure 'chdir-src (lambda _ (chdir "src"))) ``` Probably this last option is the best, I'm not sure if it works. It should. Sorry for the misunderstanding! Good luck, Ekaitz