From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id NUVGDsZ3SmB5WwAA0tVLHw (envelope-from ) for ; Thu, 11 Mar 2021 20:04:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sN+TCcZ3SmCsWQAA1q6Kng (envelope-from ) for ; Thu, 11 Mar 2021 20:04:22 +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 65508232BE for ; Thu, 11 Mar 2021 21:04:21 +0100 (CET) Received: from localhost ([::1]:37516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKRXg-0005ru-Gs for larch@yhetil.org; Thu, 11 Mar 2021 15:04:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKRXX-0005ri-BP for help-guix@gnu.org; Thu, 11 Mar 2021 15:04:11 -0500 Received: from mout02.posteo.de ([185.67.36.66]:44987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKRXU-0007O8-U8 for help-guix@gnu.org; Thu, 11 Mar 2021 15:04:11 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id DD4A324010D for ; Thu, 11 Mar 2021 21:04:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1615493044; bh=pPby6JtWyqVIIT7pmcUJwBV1R6FGYb9mh2Tr0ZwLJVo=; h=From:To:Cc:Subject:Date:From; b=DU7fGXhRwO/EgsP9jc5r/Fs8rczAaNXpROo6UVwSuJb6hseFmcLTCKXaTqQylSx7U z+pEdwD74lJwN1vudSPmXI6Js/mFszpYrGMBgAHUDJArwaKHW51K3zl+Df8owzwIs8 uUmkPeP5DLHdEX8k/0b8EFeBhrVTssMJgS94n8QaVEXdcfifGgJNrUnKWzjR4vBnQi 40yCPHUQ1GuY4lohPDgt44L2y4GTfytPgwcKX/I/unjK0PifKBdqINg7GSB0Ftqq45 KNH+jxF+wxUWahJzJXpvjJKvd4CnKBOVmzU+qjbT4POU1wKbIBad819zc2ShdOpVAE gFERIOhSos6Pg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DxKdk2YhMz6tmS; Thu, 11 Mar 2021 21:03:54 +0100 (CET) From: Fredrik Salomonsson To: Ekaitz Zarraga Subject: Re: setup c/c++ development environment In-Reply-To: References: Date: Thu, 11 Mar 2021 12:03:49 -0800 Message-ID: <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.67.36.66; envelope-from=plattfot@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: , 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=1615493061; h=from:from:sender:sender: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=pPby6JtWyqVIIT7pmcUJwBV1R6FGYb9mh2Tr0ZwLJVo=; b=YGvyDs2IS/QJbW89wrT+v6SJfezoRPSUQN+kajNJtd1yfJRtFlHtTQUjwm4OUjrnasQ0xP euuqNlL/qLflC1KeC+Sd39vcyrNFh6+1wRj6yOZNys0muKwpuBBgDFrvA/8vVDUFZmoeHR AGKmyb2GO0yMmSJHiYW+3RuWJKGVyOajfP5Qq0IiukI+Gbj/VVhICaN8Cd9ST80asHD5o8 0icoK385Hi0tAmp7Nuw7rQNfEOkzK7ecW0rPmmZw+UWNsVbY5IhX7gPDVZGCdVc29FveDY Uc/R+MvvuzoCvY5nRDuI/MZnCMQpJH0RB9xFlCwt9Ew1QHC78WQJERuxQ8qXAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615493061; a=rsa-sha256; cv=none; b=oIFAKTpplEwjBpLWGYGc0vERZsxdkYYs5XIAibn80XI4mvI1h21U+jzSY4bQ4X8sxGL9nS PeHPW+H6Of1dHKRb2JO8AR3oVYM7H+qxyf6BZnR+uNeKiHEp/l5pnuU7RbTHtnyA7wk1N4 YWBUUFOr50zbr7FqQMpyHkTZzQREXjD+QAjD3SRzVJvIk2DCRbBcO+b9alZSt85gxfi4Tr iH7Ow9T5PJ+ZJDqJoHQcomIyhGjlbsEH48cyEIUCINHTNemr+gmDduhKJNkLCSSZomhG7R sKm0pRzM9tqXJDJKtB6BnV9QAdqahLSpeLi+LkBtLn0c1Z2q/htudoh/lUbw2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DU7fGXhR; dmarc=pass (policy=none) header.from=posteo.net; 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-Spam-Score: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DU7fGXhR; dmarc=pass (policy=none) header.from=posteo.net; 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: 65508232BE X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: SllSqwsXjYhS Hi Ekaitz, CC:ing the rest of the help-guix mailing list, I hope you don't mind. Ekaitz Zarraga writes: > I have a question with all this you shared. > > Is this compiling only the needed parts or it recompiles the whole direct= ory 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 build`. 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. --=20 s/Fred[re]+i[ck]+/Fredrik/g