From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id o5scCVD0/mPzXwEAbAwnHQ (envelope-from ) for ; Wed, 01 Mar 2023 07:44:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iHuVB1D0/mOrJAEAG6o9tA (envelope-from ) for ; Wed, 01 Mar 2023 07:44:32 +0100 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 15AB619BD1 for ; Wed, 1 Mar 2023 07:44:31 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="GxgH/Ekv"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677653071; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=yxLEmaI2X1B44U9EeHMtIjfEs0/KgnWPB46naok/CoM=; b=YdWSMroQKe2R4OC9MUkXEuChpuBMgKt/X27HQxjD5RDUZBg9WwQ/l6EI6CD+hrkhP+hL0q FBdraDN348gTxddZcCVNFxdpl6URAjzkJqGnJCT8f8RnQHlah7x6mDlpT52eS+zMWAm492 2NRLvjZveZ15OmctMOmqCpudD+H+/QVUp86g/IR/Rb6VxeJXwmNWquSp59oDxl+h0qsfZ6 KBOsUOY4Quxh4h+INsWf4EAnV2OUGmesn1NsHEgP0jgHjdgl+0k0qSAchA2Il3mb0czJA/ Fa3K6m0DKO/gh3C0mN+odckRMwQnQq/H1LEac4ICAthClTwl9CtUcwPGx1rcdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="GxgH/Ekv"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677653071; a=rsa-sha256; cv=none; b=iDiXetSLCPwa2BZTVtJVbTsJvHjgmfz8TLgE2I3NZ0jsXvx8vSZnCwhbCSx2MAQvn1bpQX LKBWM0yjLq5geQmIP37jNSIQCFYrONWA2Fk1VHp9Us82EiayIUi5VPzvK60BcTBXpyE4lX B4PetVoLIWL5iGCdUNO3l/G1cYOz4/1mk5r5WL6kUiXXjWkKOjHKg8zFCRcDgB4p2YhVWN PEO0Hk6H4TUH+vALHtXVZ2FlXN31Ak5TCkj+0qggwMlHUfZZpVdKm37AbeVSUIQQjm5Oit t0vEQwmYfS7KtYpwVdwnuooAUiPtvRsAtHlo2KiOpj+aqccdcI3pvEZ03QgQvw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXGCG-0004C1-Dc; Wed, 01 Mar 2023 01:44:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXGC2-0003pq-Ox for guix-patches@gnu.org; Wed, 01 Mar 2023 01:44:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXGC2-0008Qp-DV for guix-patches@gnu.org; Wed, 01 Mar 2023 01:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXGC2-00063T-1O for guix-patches@gnu.org; Wed, 01 Mar 2023 01:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61486] [PATCH] system: Update skeleton gdbinit. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 01 Mar 2023 06:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61486 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 61486@debbugs.gnu.org Received: via spool by 61486-submit@debbugs.gnu.org id=B61486.167765300023206 (code B ref 61486); Wed, 01 Mar 2023 06:44:01 +0000 Received: (at 61486) by debbugs.gnu.org; 1 Mar 2023 06:43:20 +0000 Received: from localhost ([127.0.0.1]:52439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXGBL-00062E-TK for submit@debbugs.gnu.org; Wed, 01 Mar 2023 01:43:20 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:35799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXGBJ-00061y-Qi for 61486@debbugs.gnu.org; Wed, 01 Mar 2023 01:43:18 -0500 Received: by mail-wr1-f48.google.com with SMTP id q16so12124666wrw.2 for <61486@debbugs.gnu.org>; Tue, 28 Feb 2023 22:43:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=yxLEmaI2X1B44U9EeHMtIjfEs0/KgnWPB46naok/CoM=; b=GxgH/EkvQOlOtP6FykJEApq/Tiz8sbOQIM5mywF2GXvqxHZ48Khwsj78aIvbgpA05/ TWJh1xqdZ4DEkpT0/LAWfQxd8l33LZM2qGjdd8cUUhem+qV801Ak6H4w0FWz+r0obtrp /5BbmDfbBklWfwoueqfXEAOHfUe47x5bo1jdkLuqS9Cl1ldOazDv6GOetwsGglhPsR6N 1IP4hmugZ1dLNjXwlg32p1kRlL65wQwa1cKYYww8ismZ2EH6maP1y5QqUoW+iX2VSLgL XaUinJkW56KPMYWd88TCFeYVojNsM2QD0txqgOY0Z7JjXHgCnyRctmSU8oNMnXMVA8nT LEJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yxLEmaI2X1B44U9EeHMtIjfEs0/KgnWPB46naok/CoM=; b=lrs1Fqo1OYPif3l4AiKzAQRTZWK/cIAjERXbY/8cpyojiHyimEw3Vd+NUmNXUVlTX1 DsMo6fsaFqDCuHhWuhTf6kfIXdYqUMImhm/ZQs0MnV9M8dzqZHpvG8OB2N9PyqUtKwgE LVbymjM6X10JsizM9/xjAEmYpYZKzxdU77ogim7h84aEJaSZOLeXD4AEkLE7PvlQattv JJTnsLGho65+pLTsJo/l0tNlOyFw2LH2n5nUEjPtNv9Gq/CBzwItxLYBpe4E+RpsN+EH 0u76wBnWzIxSAjlcjaEHHTG1NOL4tZZOyCPnIpckDx4jNjo90zsyF6tzvKIShbjPWA6r zeXQ== X-Gm-Message-State: AO0yUKWLY0Ycl/Ao/gCz2yLBfFr+44L13a3W+R9dl7Nj+9gZzYfciReI GOmueAy2PbsfiAxRbtToGJA= X-Google-Smtp-Source: AK7set9HWCkmMUt2UZlKb//7mrQhY4/AyIqY9rh9z5a8Ev4LFQuOzxSIJLWqT246ZRyAAzmw4rFzQA== X-Received: by 2002:a05:6000:1243:b0:2c7:169b:c56d with SMTP id j3-20020a056000124300b002c7169bc56dmr3681235wrx.17.1677652991619; Tue, 28 Feb 2023 22:43:11 -0800 (PST) Received: from localhost ([2a02:ed3:910:9200:b62e:99ff:fef0:7bc0]) by smtp.gmail.com with ESMTPSA id m7-20020adfe947000000b002c70f5627d5sm11509851wrn.63.2023.02.28.22.43.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 22:43:10 -0800 (PST) Date: Wed, 1 Mar 2023 08:43:09 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 61486@debbugs.gnu.org References: <08c09168cea2ab383bb6664682d3e8c52f70f131.1676314760.git.efraim@flashner.co.il> <87o7peg2kg.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="81bOyjckKzM9/hDO" Content-Disposition: inline In-Reply-To: <87o7peg2kg.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Spam-Score: -3.89 X-Spam-Score: -3.89 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 15AB619BD1 List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: ExLM5pLH2lib --81bOyjckKzM9/hDO Content-Type: multipart/mixed; boundary="KHBtuS50sBIlNsfL" Content-Disposition: inline --KHBtuS50sBIlNsfL Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 27, 2023 at 11:34:39PM +0100, Ludovic Court=C3=A8s wrote: > Hi Efraim, >=20 > Efraim Flashner skribis: >=20 > > * gnu/system/shadow.scm (default-skeleton): Update gdbinit to also > > search for debug packages in guix-home. > > (skeleton-directory): Move .gdbinit to .config/gdb/gdbinit. >=20 > [...] >=20 > > (use-modules (gdb)) > > (execute (string-append \"set debug-file-directory \" > > (or (getenv \"GDB_DEBUG_FILE_DIRECTORY\") > > - \"~/.guix-profile/lib/debug\"))) > > + \"~/.guix-profile/lib/debug\" > > + \"~/.guix-home/profile/lib/debug\"))) >=20 > This won=E2=80=99t have the desired effect: >=20 > --8<---------------cut here---------------start------------->8--- > scheme@(guile-user)> (or #f "a" "b") > $10 =3D "a" > --8<---------------cut here---------------end--------------->8--- >=20 > Perhaps we should check with =E2=80=98file-exists?=E2=80=99 which one to = pick, probably > giving higher precedence to ~/.guix-home/profile since Guix Home users > might have both (I do). >=20 > > + (when (file-exists? ".gdbinit") > > + (mkdir-p ".config/gdb") > > + (rename-file ".gdbinit" ".config/gdb/gdbinit"= )) >=20 > I couldn=E2=80=99t believe it so I had to check the manual and yes, GDB d= oes > look for ~/.config/gdb/gdbinit! Incredible. Now with a new and improved version 2! --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --KHBtuS50sBIlNsfL Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="v2-0001-system-Update-skeleton-gdbinit.patch" Content-Transfer-Encoding: quoted-printable =46rom 721637d9afd62e70f0a4350fb38c2569fe23e80b Mon Sep 17 00:00:00 2001 Message-Id: <721637d9afd62e70f0a4350fb38c2569fe23e80b.1677652927.git.efraim= @flashner.co.il> =46rom: Efraim Flashner Date: Mon, 13 Feb 2023 20:56:54 +0200 Subject: [PATCH v2] system: Update skeleton gdbinit. * gnu/system/shadow.scm (default-skeleton): Update gdbinit to search for more debug packages in guix-home and the system profile. (skeleton-directory): Move .gdbinit to .config/gdb/gdbinit. --- gnu/system/shadow.scm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 445a72e2f5..2bd72d3e96 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm @@ -2,7 +2,7 @@ ;;; Copyright =C2=A9 2013-2020, 2022 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2016 Alex Griffin ;;; Copyright =C2=A9 2020 Jan (janneke) Nieuwenhuizen -;;; Copyright =C2=A9 2020 Efraim Flashner +;;; Copyright =C2=A9 2020, 2023 Efraim Flashner ;;; Copyright =C2=A9 2020 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. @@ -168,8 +168,16 @@ (define (default-skeletons) guile (use-modules (gdb)) (execute (string-append \"set debug-file-directory \" - (or (getenv \"GDB_DEBUG_FILE_DIRECTORY\") - \"~/.guix-profile/lib/debug\"))) + (string-join + (filter file-exists? + (append + (if (getenv \"GDB_DEBUG_FILE_DIRECTORY= \") + (list (getenv \"GDB_DEBUG_FILE_DIREC= TORY\")) + '()) + (list \"~/.guix-home/profile/lib/debug= \" + \"~/.guix-profile/lib/debug\" + \"/run/current-system/profile/li= b/debug\"))) + \":\"))) end =20 # Authorize extensions found in the store, such as the @@ -228,6 +236,9 @@ (define (skeleton-directory skeletons) (when (file-exists? ".nanorc") (mkdir-p ".config/nano") (rename-file ".nanorc" ".config/nano/nanorc")) + (when (file-exists? ".gdbinit") + (mkdir-p ".config/gdb") + (rename-file ".gdbinit" ".config/gdb/gdbinit")) #t)))) =20 (define (find-duplicates list) base-commit: f9925ad9c4b30ef7fe5fdb7b3ad93e1940d40cd3 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --KHBtuS50sBIlNsfL-- --81bOyjckKzM9/hDO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmP+8/0ACgkQQarn3Mo9 g1F9jhAArKVBDiMOj9Vr4iBNK+UweE8OreGI09F1IMiLZSv8fDgguI+kJ8M5Hros iwdJzbwb7B9mdSxVh7PUUo2rxfk5I31azyKO3dlwzPl52ppZBx+IksESaU3mu9qW qMMMFyHRSxD/EwjzZ9tZ+wy3IfcgTbP7fg7AlXJMcoIzjMJzOaaBg93DlfeuLRJU K7uEzWtg9lIHQOGFKlLW49RoTlK5Kf0Bq5utte0y7u83TJddvnTUXgU7XzLott7I 5ClwntYnrClhZDGkuYm4Dn42QxJ+cHomS2oE2TO3yZEeMdBlG/QOUPgOdbfLM0kG /XQgULkIX2fsXQjaFXF7KpUtgcaHVRGo+6gxXn1fSwrlqP7iX88Iyoeqg6FOK8Yz n5Ur2RtGJXR5B+JHx2RBkW1/WNSc3qmDEiTPooLdaRIRl3jxzF2VvuFj68rM7L1I e3Bg2rEbg/h65x1r4YPYAM9kce1KAxcSZMIH4a0TRGMfbClMbeHuCGlh+MwxjKDu bJU3lJ5sp7gOWySpyncoMYcmfdSpZEYfK0iCWu1VVVrPvVaNGW1FuScsFS+kcPpZ lQuvfjM2pHUAEshZYjrhSLmst8uSJWhnMcxPLgsAoow3bmuHUbJkEU5jr3rCUdjx eQkQ/s5s8FEpv9/wDLnz/8f5C4yTizp8/2MdrzU/m1tlBf925EU= =YT61 -----END PGP SIGNATURE----- --81bOyjckKzM9/hDO--