From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OAwyKu4iZmIxiAAAbAwnHQ (envelope-from ) for ; Mon, 25 Apr 2022 06:26:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cFw3Ke4iZmLgUAEAG6o9tA (envelope-from ) for ; Mon, 25 Apr 2022 06:26:22 +0200 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 3C3BA39859 for ; Mon, 25 Apr 2022 06:26:22 +0200 (CEST) Received: from localhost ([::1]:51994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niqIn-0006ad-El for larch@yhetil.org; Mon, 25 Apr 2022 00:26:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niq33-0003KD-WB for help-guix@gnu.org; Mon, 25 Apr 2022 00:10:06 -0400 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:39877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1niq32-0003L5-AP for help-guix@gnu.org; Mon, 25 Apr 2022 00:10:05 -0400 Received: by mail-qt1-x829.google.com with SMTP id v2so2907341qto.6 for ; Sun, 24 Apr 2022 21:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=E83wf2URca2k62V6pp8gbwkv2snQY/oixBVzxkOgxko=; b=azk/48Ie1/4a0/+ym3lQ2c3BDX+hEp0s1fpEmKP98d2+BTcYAuf/UQV3u1TzIKV8nR DF/heBi7EImUVIjpR/RKGYXHLtLiK8mA0Qm7ZdHmXO3fp0+u1FB9B9GzyStXpVmjGn5T 3jQjhkH4vA8YwM9SGxQIsHou3fKDO7pcWQQiV9g0DD8nfB5yW7Hs/ktgmsnubwqQ9kbl iTG3O8h88WekqVF03fRC1ci6jC+ZZRt/BRWt07zqZ/dI9UPhCQ1yMPGDLGKbE3iBSXaH uQNyAxZ/sW8xEKDQjiTbY8woLEbzJGOjyRz1Ky1No4U9CQQW5MzaeRwzdEZX0mMrIhP3 OSgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=E83wf2URca2k62V6pp8gbwkv2snQY/oixBVzxkOgxko=; b=KGrEeZrzOVY62M12i7I31WZrc3bvtSs3x1FJxpJht5i4rxtpycXZepEBQmFOSUSq9R XLXKTt7dnCBKmhmP8UsROQuFEIdGyIf6FDIM26Caij1xOGknTNn8lJqeBzCrcSax4Qaq o9KUMCNAU4PtwgLI3eX3bYLA3a3LPBB1FLPd82kLRdLnbdnS6W0KdTOsKJZbUlnzDsWs rmOTnn813JenYhEFyLecpQ/bhYqZSRTjezUoCikQxXPUIwr6Sh5nupZ8pg2pSYsifrpU D8Kdn3JxscgPtR//8aEUPquvUm5yrE9Q4fv8JqLt8i1Ib/op2JYDakkjqBuJaf5hY2HC HPsA== X-Gm-Message-State: AOAM530YA/5gOEcf4lWHfefq6YxBlDJi7LESrNkw1KpQAFs2wdU+SsIV 7spVHG+YTn9j/PAl1woiOE+OW7/zPo3yjA== X-Google-Smtp-Source: ABdhPJyfssFcK0YEbQjNVGP0/11KRWHoBXYksEWlvSnVNXjkLaPh0VCgzExZZYknKtIRXc7tHDnE6A== X-Received: by 2002:a05:622a:38f:b0:2f2:289:cb84 with SMTP id j15-20020a05622a038f00b002f20289cb84mr10906447qtx.24.1650859802968; Sun, 24 Apr 2022 21:10:02 -0700 (PDT) Received: from hurd (dsl-150-232.b2b2c.ca. [66.158.150.232]) by smtp.gmail.com with ESMTPSA id c20-20020ac84e14000000b002f35e03430dsm4287466qtw.36.2022.04.24.21.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 21:10:02 -0700 (PDT) From: Maxim Cournoyer To: Olivier Dion Subject: Re: Questions regarding substitutes with debug output References: <877d7joe2w.fsf@laura> <87levx4ui1.fsf@gmail.com> <87ee1pur82.fsf@laura> <87pml72lri.fsf@gmail.com> <87y1zu8r7q.fsf@laura> Date: Mon, 25 Apr 2022 00:10:01 -0400 In-Reply-To: <87y1zu8r7q.fsf@laura> (Olivier Dion's message of "Sun, 24 Apr 2022 10:56:57 -0400") Message-ID: <87fsm13ism.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x829.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Olivier Dion via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650860782; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=E83wf2URca2k62V6pp8gbwkv2snQY/oixBVzxkOgxko=; b=p+klo6eBAC8pUQAh/2stnlAdMsNMZt5W/n5TAFE/TiAYfL6QQXfisYb3DYx1ILs7YTS4Ft VJtJj7sImXEr6nWNGXR1YOMUrbfm/s9j5Dioe1HT4veeQdyKezxemwhHERPBhAlyYcOeV5 pLum7kyZKuiY8Tdsh09gIaod/IHSNcD//gxh7aPHTk1cT3pmYnHCqHpAISGbxuycRjW4Da qfJPVFyjrXr7n11QxzzKkSG3taY6fp3Q9bJGDD3P4Ou9ZN9VA9//qejIzjONprtirrleuv siCgBjEDOREwzDTUcBL+mm6BsOHnYQzCsoOZYNvrLJPDrwOVD8I1NUVkgJZGjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650860782; a=rsa-sha256; cv=none; b=TCsPOY6QEU66ESM13ZHtMqMVce0KQ/NEHfLa23ysfZjRhGx7uInddOWSmqjjNaFtYMjFZs b9HxVgel73wSnCO+iVLEsNdPcyqSvSf2S6f1g8l7v/BYJxOP7LP43JPpCPXkLU9B/xbwC5 g3+HBFGJzoCxPQ09u+jTEHZsRMcI2I1KZ5zpkKZokwYH2iBejHy0t/OTNXyPik9ACzy5a8 Pdieldobke5GmJGxHyUOL6/sh2K7EHdb3Dn0l0+nc3m7lC0mo/PP4jigdUTo84aCtPeJfr ulhWWXZN2bmzPLn+pbFXbWoKIgNWsp7fsm9UY5/E2qa10aKHKx4zZ6flvhE/WA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="azk/48Ie"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="azk/48Ie"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3C3BA39859 X-Spam-Score: -2.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: 57KJVl0i957J Hi, Olivier Dion writes: > On Sat, 23 Apr 2022, Maxim Cournoyer wrote: > >> When the package uses the gnu-build-system, it is usually just adding a >> "debug" outputs and the copying of the stripped symbols to this output >> is taken care of automatically. Some packages use their own flags or a >> release build without symbols in which case just adding "debug" alone >> won't be enough. > > Right. My guess is that project using autotools are handled > automagically. Although, I don't know of any configuration option for > splitting debug symbols from binaries in autotools. If you are curious, it's defined in the 'strip' phase in (guix build gnu-build-system). By default Autoconf causes the builds to include the debug symbols (-g). In the usual case (no "debug" output defined on a Guix package), these debug symbols are simply stripped (using 'strip', part of GNU binutils) and discarded. When the "debug" output exists, the debug symbols are instead copied to the debug output. It should also work with the other C/C++ build systems such as meson-build-system or cmake-build-system so long as they generate debug symbols by default (which they should). I hope that helps, Maxim