From patchwork Mon Feb 13 19:00:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 46930 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3A24E16785; Mon, 13 Feb 2023 19:01:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0F74B166C7 for ; Mon, 13 Feb 2023 19:01:45 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRe4Y-0002u9-C0; Mon, 13 Feb 2023 14:01:06 -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 1pRe4W-0002ry-0m for guix-patches@gnu.org; Mon, 13 Feb 2023 14:01:04 -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 1pRe4V-0003DZ-NJ for guix-patches@gnu.org; Mon, 13 Feb 2023 14:01:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRe4V-0004AQ-JD for guix-patches@gnu.org; Mon, 13 Feb 2023 14:01:03 -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: Mon, 13 Feb 2023 19:01:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61486 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61486@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167631484715945 (code B ref -1); Mon, 13 Feb 2023 19:01:03 +0000 Received: (at submit) by debbugs.gnu.org; 13 Feb 2023 19:00:47 +0000 Received: from localhost ([127.0.0.1]:51631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRe4E-000496-T5 for submit@debbugs.gnu.org; Mon, 13 Feb 2023 14:00:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:35176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRe4B-00048o-47 for submit@debbugs.gnu.org; Mon, 13 Feb 2023 14:00:43 -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 1pRe4A-0002jx-5D for guix-patches@gnu.org; Mon, 13 Feb 2023 14:00:42 -0500 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRe45-00039p-GJ for guix-patches@gnu.org; Mon, 13 Feb 2023 14:00:41 -0500 Received: by mail-ej1-x635.google.com with SMTP id jg8so34328371ejc.6 for ; Mon, 13 Feb 2023 11:00:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=in0Z1ZfjJfq+2VOePef4zPu0qOJk3cZ0Jfa9ioBWqQk=; b=BGxPWpjHwxkBV4y231bqbrq6D5jhapNzbjRxtGkZwV0+6jKPCkGluD70N9+g2qFcFg 0X89VAVmXhPai56b1wuQvvstwzGcbj8Ho+XQlavyMLY9EdiF0ZpvnHdqdTMpFvkuHgyt 5j0wLlrg4mcqnM6Wk154+TJ1fK3GHAls88LAz3xDPimt5RC1zw690cmkWrVVKLANCQra yrr+/shLu9bpIQvKsHeJLxwY5XLeEJVWZUQy+kw5v/CRIpL1R1YdFBCMIcwb4/xpkNhn ym4ddCpqLdJP50tqFir/CVoY4dH/2r6SEdeK2M8ZSB4GEKaj9W0cHfwev0B7/Fzahrou rWGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=in0Z1ZfjJfq+2VOePef4zPu0qOJk3cZ0Jfa9ioBWqQk=; b=YqyUl41y3hVEAtwP9e9F3uxhoZA/l3Y8l/HubNp+sSHTPobk3FNDXA/v0ScEPwdyB5 +GbljcGk8E58ohz2GgBBx1IScYIocZ4pvC1R/TcJZPvFvv3+6tSNMLzqbhw5Da2MTwuo Wk32JsJRcIsXV3JpfvgfBeMrwjXOoQ9//StnAKDzUQna5m7zekdMLN3dtggQJOVv322h MQ7hG6Vjj6bZ2ME1HbS1xO079aW01LonA0IKutrzIPuybKNVdU4ZwGa8ax02YuClBhcc xCimkQy6MP+l67S+6BbF93blCQ6ezvLquGmy8I5aNqTyOeRRRZ5aqk6waFXIRvUuU1rE aK6g== X-Gm-Message-State: AO0yUKWHJazHk9fcZJkPkFqt/4nYdnLmzlUoqWrnff1m9aZR3CMbIUd1 TKPcqInh3A5IOaMnFDMA3ekovHdvmEfTBg== X-Google-Smtp-Source: AK7set/QwMB9Z60Ey0w/lZ/1+ltItgwngIrJKl+l8E5WOZxe17wwB5n8scGPHUf7lwR6OeR5GpLv7g== X-Received: by 2002:a17:907:9b05:b0:8aa:c2bd:a71c with SMTP id kn5-20020a1709079b0500b008aac2bda71cmr22158939ejc.75.1676314835401; Mon, 13 Feb 2023 11:00:35 -0800 (PST) Received: from localhost ([141.226.15.115]) by smtp.gmail.com with ESMTPSA id s29-20020a508d1d000000b004acc5077026sm2441116eds.79.2023.02.13.11.00.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 11:00:34 -0800 (PST) From: Efraim Flashner Date: Mon, 13 Feb 2023 21:00:22 +0200 Message-Id: <08c09168cea2ab383bb6664682d3e8c52f70f131.1676314760.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=efraim.flashner@gmail.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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. --- gnu/system/shadow.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) base-commit: dd724cfad45d76b9dcc5b073876c995715c92a07 diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 445a72e2f5..5802c9dfc0 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2013-2020, 2022 Ludovic Courtès ;;; Copyright © 2016 Alex Griffin ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen -;;; Copyright © 2020 Efraim Flashner +;;; Copyright © 2020, 2023 Efraim Flashner ;;; Copyright © 2020 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. @@ -169,7 +169,8 @@ (define (default-skeletons) (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\"))) end # Authorize extensions found in the store, such as the @@ -228,6 +229,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)))) (define (find-duplicates list)