From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 7cobCs8STWC8BQAA0tVLHw (envelope-from ) for ; Sat, 13 Mar 2021 19:30:23 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mTx6Bc8STWCQMQAA1q6Kng (envelope-from ) for ; Sat, 13 Mar 2021 19:30:23 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 19DB78088 for ; Sat, 13 Mar 2021 20:30:22 +0100 (CET) Received: from localhost ([::1]:44850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lL9xs-0007oK-OX for larch@yhetil.org; Sat, 13 Mar 2021 14:30:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lL9xd-0007oA-Qn for help-guix@gnu.org; Sat, 13 Mar 2021 14:30:07 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:36380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lL9xX-0006Wc-Dw for help-guix@gnu.org; Sat, 13 Mar 2021 14:30:05 -0500 Date: Sat, 13 Mar 2021 19:29:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail3; t=1615663793; bh=aEJFVTCHA18n8/0+HRnPG0ZfVJPbjJuJlQSLyvJlSng=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=czO/c2+oGVxsNylijj+naT1WXrD8/6mX0kZFT3zre84bkaVTVQ42rgZ5Fa40kdRSh EgmtV3AYq1VzWmylfqzOFrrTfJ2qJ5CvQKoyDsoi5HPBUsf4EWY5Agd8tPl1rtpEbs 2tQcbRIdeQsx7/0h9stx6Yz2FSu3nQbNVCeU27Kh1BIDBXfmR1V+QW4ghAaEcxPf/F RzO+gs2ADfyw1OJXXFKQQfojeEMRO8QRwAvbUuTfX3Wh8mF3LP44Yil4/E2eJcigXS MGcs+kaubzz1cFng/i/3f0bdR/6/SGwNuwUS0Qgp3Lo/N4NptYy+8lRJxphJtMARDN Z25H2tt3crN0w== To: Fredrik Salomonsson From: Ekaitz Zarraga Subject: Re: setup c/c++ development environment Message-ID: In-Reply-To: <87lfatlaoq.fsf@posteo.net> References: <87lfatlaoq.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.22; envelope-from=ekaitz@elenq.tech; helo=mail2.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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 Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615663822; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=aEJFVTCHA18n8/0+HRnPG0ZfVJPbjJuJlQSLyvJlSng=; b=PoRdOXbzFMOSuUp3Ht7WTygXiSaAUseiJfdDU9p75OKuhdO9XsCi5AtYzNc8tFZ50aOYPH 1ic/oqPlCukt6ce+ubcSkEUMBwxMx74Nt6M1JhMTMZzyayuTTS5PduGcRLdByYBnQHPKwh IA8AV93AEpnfrUA6SJD9KFMBatnOiveyCZdcpgVa7eJRnZyu2TjiFz1OUkKyPmVzbxWDn3 ms5i/8AS0+HcEyxmmgnT2AaRM2qE71zGpsW/IJulrq0BXWC2GwHumhy8DLtxXTs3S6HnwS tw2Am5z0KiiUmbetGIGHIQiqo2Cnxq4jTr/Z5lKN+hMEN5ecciiYwUomErNfpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615663822; a=rsa-sha256; cv=none; b=hZKBUEicByiQ870PeDpHsqj7S87hKxwMlRy9kOWRiqhdFdn5MNNy/zF0sfs8shukSlLGE1 RuEpn9QRNeYfJdwyjmHDpN4K+A/a6LrKP9oQPoFrCRmOHpbEcWb/714s8iIOJFNDpSH4VC 8/845+JnKeMqqkhs4AReGwjODMwViTE2VrB90EHyUA/au5YdJPKqBVe8KA29QB5BvNSuL2 KPRjjeATVoJcfemDUpjAsBUK/qvmcNwDEEwiRSlhLdO5X3H/Mt4KnE+6Iig39M6I3m9aZ/ iJ9M6zxEY7nmSrlOuAops9+SRF5gYjJL6usr22Ojj/9GoCZEHSehqgn8VJgkIg== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail3 header.b="czO/c2+o"; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx2.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-Spam-Score: -3.09 Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail3 header.b="czO/c2+o"; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx2.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: 19DB78088 X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: m0zLDrl8WZvp Hi, =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Thursday, March 11, 2021 9:03 PM, Fredrik Salomonsson wrote: > > > Hi Ekaitz, > > CC:ing the rest of the help-guix mailing list, I hope you don't mind. Yeah sorry I messed up with the email. > Ekaitz Zarraga ekaitz@elenq.tech writes: > > > I have a question with all this you shared. > > Is this compiling only the needed parts or it recompiles the whole dire= ctory from scratch every time you run `guix build`? > > To my knowledge it will recompile everything every time you run > `guix=C2=A0build`. > > So this method might be better suited for CI (continuous integration). > > But benefit with the `guix.scm` file is that you can also use the same > file to setup the environment you need to build your package. > > `guix environment -l guix.scm` > or > `guix environment -l build-aux/guix.scm` > > Depending how you have layed out the guix.scm file. > > That will use guix to setup the environment needed to build the your > package. And in that shell you can use: > > meson build > meson compile -C build > meson test -C build > > Or equivalent for other build systems. Which will support partial > builds. > > Note that guix might have issues with build generated files for some > build systems when mixing guix environment and guix build. E.g. run > `guix=C2=A0environment`, generate the build files and then run `guix buil= d`. > It seems fine with meson, even when not filtering out the build files. > But I have had issues with GNU autotools and permissions, > `make=C2=A0distclean` before calling `guix build` is a quick workaround. = A > better option is probably to filter out those files when collecting the > source. > > I hope that answers your question. So the workflow with guix build is not very good for development but for CI and stuff like that because you are going to rebuild everything. Thanks for the explanations. Ekaitz