From unknown Mon Aug 18 00:06:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39049 <39049@debbugs.gnu.org> To: bug#39049 <39049@debbugs.gnu.org> Subject: Status: guix-install.sh: Create an init profile for better out-of-the-box experience on foreign distros Reply-To: bug#39049 <39049@debbugs.gnu.org> Date: Mon, 18 Aug 2025 07:06:13 +0000 retitle 39049 guix-install.sh: Create an init profile for better out-of-the= -box experience on foreign distros reassign 39049 guix-patches submitter 39049 Prafulla Giri severity 39049 normal tag 39049 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 09 04:56:34 2020 Received: (at submit) by debbugs.gnu.org; 9 Jan 2020 09:56:34 +0000 Received: from localhost ([127.0.0.1]:51815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ipUYL-0004Rm-PA for submit@debbugs.gnu.org; Thu, 09 Jan 2020 04:56:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:43487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ipSAa-0000XF-K0 for submit@debbugs.gnu.org; Thu, 09 Jan 2020 02:23:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45446) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipSAZ-0005CP-8Q for guix-patches@gnu.org; Thu, 09 Jan 2020 02:23:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipSAX-0004wb-UM for guix-patches@gnu.org; Thu, 09 Jan 2020 02:23:51 -0500 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]:43671) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipSAX-0004sx-Mo for guix-patches@gnu.org; Thu, 09 Jan 2020 02:23:49 -0500 Received: by mail-oi1-x233.google.com with SMTP id p125so5013981oif.10 for ; Wed, 08 Jan 2020 23:23:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=67YcXcZ3my1XDCSF3lv1P3ePJPkldBlZ1tgnfV7dMcA=; b=aBSi9E9OJ9us3THLNCz/hLRkY1asQIxuKYmOhszHn3frj++B6+VAzXkiXfC1ey4PFp 6ypsuaYw9iIzgb+novPLE7TL8YpvxP8SOqhBBiei0Iolj7z7UJxPa73Zt7rFVslDIEby gIfFvMInAPo7WdKhnvZPaKnyjoqaUYeJ7noq/0JdLGGsoGDPSQ1USzLhYdzjp045FwN1 fpfro1UtfNawoxqIBSLQvyEqp8JI/YLsOTm95wYyD894WAj6U5x8SczV3Shw7G36t7aX 1V3HqcbQTfznNb57kV2Jedb/t5YP97480aPAYmsCPphWhJiFQstD3do7kGtpQc2x+kfH sUPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=67YcXcZ3my1XDCSF3lv1P3ePJPkldBlZ1tgnfV7dMcA=; b=eGE//lSSQsxAuPCbdDqMk3gploj0ZjpmTrDuzI27Ro661dkZHli+6PsnXELQQSmihI KysgX9KiC6jJsfVHPWPCBOQWMLXB9VPXWMh/pJg4MOFtv/SUZcl3IgF6O0xciRY9txhv tfmK8OybUFsanAzOHR41RTP5iiODPOWm048c/uJz6qdxgGey7tEvOa3/9tCRTOmS5FFY DuBOlalZvcS04Zpcw3KW0tFqdqTEJHtflph937hAeNnPhY49fZBUKvosDCX7hPqTE0Iw 8mdwtCOqHFX7eiRquAuzy7QoFKymGG1JSkFHQEV6kvXBWSxccLswRJz7pSdrJ3YOBp9H H8RA== X-Gm-Message-State: APjAAAUEhFxJ2ZyfNacCN0yPJDPmt2Gukr67ok7DDsBW5Tt+CcEBFh2x NNycHG5lGF74S5TqmzyPGJLeBjhCU2qMXb58+N3twg== X-Google-Smtp-Source: APXvYqxsUXoYlNxuaiuW2FNtbpPFG0TNIVZz/D1qLqM4fw/gTnukY7RaLkyTsSU7nCm6t1Dk3mPZxv2BdMlBYN8VaMs= X-Received: by 2002:aca:cd92:: with SMTP id d140mr2063070oig.68.1578554628317; Wed, 08 Jan 2020 23:23:48 -0800 (PST) MIME-Version: 1.0 From: Prafulla Giri Date: Thu, 9 Jan 2020 13:08:36 +0545 Message-ID: Subject: guix-install.sh: Create an init profile for better out-of-the-box experience on foreign distros To: guix-patches@gnu.org Content-Type: multipart/mixed; boundary="000000000000e153d7059bafe3e7" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::233 X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 09 Jan 2020 04:56:33 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000e153d7059bafe3e7 Content-Type: multipart/alternative; boundary="000000000000e153d5059bafe3e5" --000000000000e153d5059bafe3e5 Content-Type: text/plain; charset="UTF-8" Esteemed maintainers, Attached is a patch that I think improves the guix user experience on a foreign distro. It creates a guix.sh init profile at /etc/profile.d (in the same vein as flatpak with it's /etc/profile.d/flatpak.sh). I have been using the init file on few of my friends computers with no regressions. I have tried my best to emulate the commit-logs as seen from `git log etc/guix-install.sh`. Please do let me know if I am doing anything wrong. This is my first real contribution to a GNU project, ever. I am still a n00b, and only have had experiences with GitHub based PRs so far, and still have a lot to learn. Please forgive my klutzes. --000000000000e153d5059bafe3e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Esteemed maintainers,

Attach= ed is a patch that I think improves the guix user experience on a foreign d= istro. It creates a guix.sh init profile at /etc/profile.d (in the same vei= n as flatpak with it's /etc/profile.d/flatpak.sh). I have been using th= e init file on few of my friends computers with no regressions.
<= br>
I have tried my best to emulate the commit-logs as seen from = `git log etc/guix-install.sh`. Please do let me know if I am doing anything= wrong. This is my first real contribution to a GNU project, ever. I am sti= ll a n00b, and only have had experiences with GitHub based PRs so far, and = still have a lot to learn. Please forgive my klutzes.
--000000000000e153d5059bafe3e5-- --000000000000e153d7059bafe3e7 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-guix-install.sh-Create-an-init-profile-during-instal.patch" Content-Disposition: attachment; filename="0001-guix-install.sh-Create-an-init-profile-during-instal.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k56ejwhp0 RnJvbSA1MjdkODJjNjZhMWU4MDc3OWY3NWExNmNmZGQ2NTYzNGQ1NWYzMmMxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQcmFmdWxsYSBHaXJpIDxwcmF0aGVibGFja2RpYW1vbmRAZ21h aWwuY29tPgpEYXRlOiBTYXQsIDI4IERlYyAyMDE5IDEyOjQ4OjUyICswNTQ1ClN1YmplY3Q6IFtQ QVRDSF0gZ3VpeC1pbnN0YWxsLnNoOiBDcmVhdGUgYW4gaW5pdCBwcm9maWxlIGR1cmluZyBpbnN0 YWxsYXRpb24KCkNyZWF0ZSBhbiBpbml0IHByb2ZpbGUgKC9ldGMvcHJvZmlsZS5kL2d1aXguc2gp IGR1cmluZyBpbnN0YWxsYXRpb24gZm9yCmJldHRlciBpbnRlZ3JhdGlvbiB3aXRoIGZvcmVpZ24g ZGlzdHJvcy4gVGhpcyBmaWxlLCByZWFkIGJ5IGxvZ2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lX2luaXRfcHJvZmlsZQogCiAg ICAgX21zZyAiJHtJTkZ9Y2xlYW5pbmcgdXAgJHt0bXBfcGF0aH0iCiAgICAgcm0gLXIgIiR7dG1w X3BhdGh9IgotLSAKMi4yNC4xCgo= --000000000000e153d7059bafe3e7-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 17 11:29:27 2020 Received: (at 39049) by debbugs.gnu.org; 17 Jan 2020 16:29:28 +0000 Received: from localhost ([127.0.0.1]:39998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isUUu-0002QB-3d for submit@debbugs.gnu.org; Fri, 17 Jan 2020 11:29:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isUUp-0002Pv-UX for 39049@debbugs.gnu.org; Fri, 17 Jan 2020 11:29:23 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1isUUk-0008Mo-Go; Fri, 17 Jan 2020 11:29:14 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=51322 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1isUUj-0002A2-JW; Fri, 17 Jan 2020 11:29:14 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Prafulla Giri Subject: Re: [bug#39049] guix-install.sh: Create an init profile for better out-of-the-box experience on foreign distros References: Date: Fri, 17 Jan 2020 17:29:10 +0100 In-Reply-To: (Prafulla Giri's message of "Thu, 9 Jan 2020 13:08:36 +0545") Message-ID: <878sm611yh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39049 Cc: 39049@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Prafulla, Prafulla Giri skribis: > Attached is a patch that I think improves the guix user experience on a > foreign distro. It creates a guix.sh init profile at /etc/profile.d (in t= he > same vein as flatpak with it's /etc/profile.d/flatpak.sh). I have been > using the init file on few of my friends computers with no regressions. That=E2=80=99s a great idea! Do you know how common the /etc/profile.d/*.sh convention is? > I have tried my best to emulate the commit-logs as seen from `git log > etc/guix-install.sh`. Please do let me know if I am doing anything wrong. > This is my first real contribution to a GNU project, ever. I am still a > n00b, and only have had experiences with GitHub based PRs so far, and sti= ll > have a lot to learn. Please forgive my klutzes. You did very well, no worries! (And it=E2=80=99s normal to need some time = to discover a project=E2=80=99s conventions when one joins it.) > From 527d82c66a1e80779f75a16cfdd65634d55f32c1 Mon Sep 17 00:00:00 2001 > From: Prafulla Giri > Date: Sat, 28 Dec 2019 12:48:52 +0545 > Subject: [PATCH] guix-install.sh: Create an init profile during installat= ion > > Create an init profile (/etc/profile.d/guix.sh) during installation for > better integration with foreign distros. This file, read by login-shells > sets a few environment variables (PATH, GUIX_PROFILE, GUIX_LOCALE, along > with XDG_DATA_DIRS) and makes guix-installed packages readily available > for the users. Other environment variables, as listed by `guix package > --search-paths=3Dprefix`, are also exported. > > Checks are in place to prevent the init profile from needlessly polluting > the user's environment. > > * etc/guix-install.sh (sys_create_init_profile): New function to create > /etc/profile.d/guix.sh init profile. Applied, thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 17 11:29:40 2020 Received: (at control) by debbugs.gnu.org; 17 Jan 2020 16:29:40 +0000 Received: from localhost ([127.0.0.1]:40001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isUV7-0002Qg-Ud for submit@debbugs.gnu.org; Fri, 17 Jan 2020 11:29:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isUV1-0002QF-OP for control@debbugs.gnu.org; Fri, 17 Jan 2020 11:29:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1isUUw-000094-3k for control@debbugs.gnu.org; Fri, 17 Jan 2020 11:29:26 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=51326 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1isUUt-0002Uh-WA for control@debbugs.gnu.org; Fri, 17 Jan 2020 11:29:25 -0500 Date: Fri, 17 Jan 2020 17:29:22 +0100 Message-Id: <877e1q11y5.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #39049 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 39049 fixed close 39049 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 03:37:17 2020 Received: (at 39049) by debbugs.gnu.org; 20 Jan 2020 08:37:17 +0000 Received: from localhost ([127.0.0.1]:44316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itSYf-0006B0-7R for submit@debbugs.gnu.org; Mon, 20 Jan 2020 03:37:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itSYc-0006Am-S5 for 39049@debbugs.gnu.org; Mon, 20 Jan 2020 03:37:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1itSYX-0003rs-Ll for 39049@debbugs.gnu.org; Mon, 20 Jan 2020 03:37:09 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=54486 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1itSYX-0002Hz-09 for 39049@debbugs.gnu.org; Mon, 20 Jan 2020 03:37:09 -0500 Resent-To: 39049@debbugs.gnu.org Resent-From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Resent-Date: Mon, 20 Jan 2020 09:37:07 +0100 Resent-Message-ID: <87a76ijzgs.fsf@gnu.org> Received: from solo.fdn.fr ([unix socket]) by solo (Cyrus 2.5.10-Debian-2.5.10-3.2) with LMTPA; Sun, 19 Jan 2020 17:54:30 +0100 X-Sieve: CMU Sieve 2.4 Received: by solo.fdn.fr (Postfix) id 91412D0ACA; Sun, 19 Jan 2020 17:54:30 +0100 (CET) Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTPS id 5DF0CD0AC8 for ; Sun, 19 Jan 2020 17:54:30 +0100 (CET) Received: from fencepost.gnu.org ([2001:470:142:3::e]:37463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1itDqG-0002BA-2u for ludovic.courtes@fdn.fr; Sun, 19 Jan 2020 11:54:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50260) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1itDqF-0005bs-Ss for ludo@gnu.org; Sun, 19 Jan 2020 11:54:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itDqE-0002Ap-EU for ludo@gnu.org; Sun, 19 Jan 2020 11:54:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]:33842) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itDqE-0002AV-70 for ludo@gnu.org; Sun, 19 Jan 2020 11:54:26 -0500 Received: by mail-ot1-x343.google.com with SMTP id a15so26662668otf.1 for ; Sun, 19 Jan 2020 08:54:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Q+M9vuBnx0ScBBYWFzpc/NDQKCyI1Osqei8UgIAHAuo=; b=dRHA3qZ+nhP/IyFuTXScoGKb8fSQXR8+ygc8VnBsBFJJ/dGOaTTRS8AUSuzxx5Neo6 mQqzckDYRFwmjH95Nh4rMWEWseIQ46tfo9dubS3rgH0Z4LZOFvwIGGdUX93LCqaPtzNk CUCClDZ4Ogpm7UN8jZbsTsdAMFUjn9pNYL9kdfsGwxtjjGX0jZPD7ixPYGiPflfSg4ZG byXnxPxg0f21+hOoftKkBqBMstfulCYWAw5ghKfD2MEEKJF/7ZNshHtq0yx4TunOc2/v qNHM/rF3kEDseohzKg/zfXpzJrImytRH4vONEI2X4caSBGJN9wrvM5Cw5Ur3qalvPsVw 0jMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Q+M9vuBnx0ScBBYWFzpc/NDQKCyI1Osqei8UgIAHAuo=; b=odYHp+AS/1Uhp5j85BNrHvafGJ0/2kh5ff0YfvT+NoHFd20d6GNgZKyruUzNwRO5C3 tV3/2y0QJhhi3ifuV5IKliJU53dKbGfSWAXy3DfcvqRh6NiOP8psonNBoLhtbTko2k3+ pfz7Y9ZKkp9a1jYVyB+WRpueAs7oxm7jYqJQg2CppkIaUsrYYjcAGs0DF4ZsVgiwi+XQ Ez3Y/abek5ar17bSwFrQyTuoKOG+e1OqtCzpvfJ8u4qnXlmFXjuGv6diOAQaBfM9Qv9C 6PTz6oSK14dF1o958ALfyWuOSbNSaa5MSPKasofzK6N35qmbNrhW0MEqfpetxvGxSjX8 d/0A== X-Gm-Message-State: APjAAAXuAetU8DcG1sHnKgZU5h8PZHY7cdrFe8BZ1uMyPIvRaiuqTB8Z 1SgivkyusmeDaz3kjy68qRYAnvS0heJsyFVo39LyKQ== X-Google-Smtp-Source: APXvYqzi3EnTZ1KMFxye0+5jbHtiCf8IFQD8yvq/eW4sse6N2ayL2s4w16V6SESU3k/Phb2+qyxyywGkTbdiYf2XdWQ= X-Received: by 2002:a9d:402:: with SMTP id 2mr12102708otc.357.1579452864825; Sun, 19 Jan 2020 08:54:24 -0800 (PST) MIME-Version: 1.0 References: <878sm611yh.fsf@gnu.org> In-Reply-To: <878sm611yh.fsf@gnu.org> From: Prafulla Giri Date: Sun, 19 Jan 2020 22:39:13 +0545 Message-ID: Subject: Re: [bug#39049] guix-install.sh: Create an init profile for better out-of-the-box experience on foreign distros To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: multipart/alternative; boundary="000000000000f28f24059c81061a" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::343 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 39049 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000f28f24059c81061a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Wow. Mr. Courtes, it is an honour, sir. Thank you very much. /etc/profile.d/*.sh seems to be the norm these days. All the debian-based distros that I have used seem to have it (Mint, Elementary, Ubuntu, etc.) and even Alpine Linux's docker containers support them. I didn't really think this patch will get merged in one go. I did find another thing that I could add to this patch the other day but had not gotten around to updating this. It is regarding the infopath: setting it to contain _GUIX_PROFILE/share/info seems to be a good default to have, esp. because it isn't exported by `guix package --search-paths`. I ran into this issue just the other day, myself. I wish I had made haste to send in an update. Should I send in a patch, sir? And do I send it in this thread or should I do it in another one, please? On Fri, Jan 17, 2020 at 10:14 PM Ludovic Court=C3=A8s wrote: > Hello Prafulla, > > Prafulla Giri skribis: > > > Attached is a patch that I think improves the guix user experience on a > > foreign distro. It creates a guix.sh init profile at /etc/profile.d (in > the > > same vein as flatpak with it's /etc/profile.d/flatpak.sh). I have been > > using the init file on few of my friends computers with no regressions. > > That=E2=80=99s a great idea! Do you know how common the /etc/profile.d/*= .sh > convention is? > > > I have tried my best to emulate the commit-logs as seen from `git log > > etc/guix-install.sh`. Please do let me know if I am doing anything wron= g. > > This is my first real contribution to a GNU project, ever. I am still a > > n00b, and only have had experiences with GitHub based PRs so far, and > still > > have a lot to learn. Please forgive my klutzes. > > You did very well, no worries! (And it=E2=80=99s normal to need some tim= e to > discover a project=E2=80=99s conventions when one joins it.) > > > From 527d82c66a1e80779f75a16cfdd65634d55f32c1 Mon Sep 17 00:00:00 2001 > > From: Prafulla Giri > > Date: Sat, 28 Dec 2019 12:48:52 +0545 > > Subject: [PATCH] guix-install.sh: Create an init profile during > installation > > > > Create an init profile (/etc/profile.d/guix.sh) during installation for > > better integration with foreign distros. This file, read by login-shell= s > > sets a few environment variables (PATH, GUIX_PROFILE, GUIX_LOCALE, alon= g > > with XDG_DATA_DIRS) and makes guix-installed packages readily available > > for the users. Other environment variables, as listed by `guix package > > --search-paths=3Dprefix`, are also exported. > > > > Checks are in place to prevent the init profile from needlessly polluti= ng > > the user's environment. > > > > * etc/guix-install.sh (sys_create_init_profile): New function to create > > /etc/profile.d/guix.sh init profile. > > Applied, thanks! > > Ludo=E2=80=99. > --000000000000f28f24059c81061a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Wow. Mr. Courtes, it is an honour, sir. Thank you ver= y much.

/etc/profile.d/*.sh seems to be the norm t= hese days. All the debian-based distros that I have used seem to have it (M= int, Elementary, Ubuntu, etc.) and even Alpine Linux's docker container= s support them.

I didn't=C2=A0 really think th= is patch will get merged in one go. I did find another thing that I could a= dd to this patch=C2=A0 the other day but had not gotten around to updating = this. It is regarding the infopath: setting it to contain _GUIX_PROFILE/sha= re/info seems to be a good default to have, esp. because it isn't expor= ted by `guix package --search-paths`. I ran into this issue just the other = day, myself. I wish I had made haste to send in an update.
Should I send in a patch, sir? And do I send it in this thread= or should I do it in another one, please?



On Fri, Jan 17, 2020 at 10:14 PM Ludovic Court=C3=A8s <ludo@gnu.org> wrote:
Hello Prafulla,

Prafulla Giri <pratheblackdiamond@gmail.com> skribis:

> Attached is a patch that I think improves the guix user experience on = a
> foreign distro. It creates a guix.sh init profile at /etc/profile.d (i= n the
> same vein as flatpak with it's /etc/profile.d/flatpak.sh). I have = been
> using the init file on few of my friends computers with no regressions= .

That=E2=80=99s a great idea!=C2=A0 Do you know how common the /etc/profile.= d/*.sh
convention is?

> I have tried my best to emulate the commit-logs as seen from `git log<= br> > etc/guix-install.sh`. Please do let me know if I am doing anything wro= ng.
> This is my first real contribution to a GNU project, ever. I am still = a
> n00b, and only have had experiences with GitHub based PRs so far, and = still
> have a lot to learn. Please forgive my klutzes.

You did very well, no worries!=C2=A0 (And it=E2=80=99s normal to need some = time to
discover a project=E2=80=99s conventions when one joins it.)

> From 527d82c66a1e80779f75a16cfdd65634d55f32c1 Mon Sep 17 00:00:00 2001=
> From: Prafulla Giri <pratheblackdiamond@gmail.com>
> Date: Sat, 28 Dec 2019 12:48:52 +0545
> Subject: [PATCH] guix-install.sh: Create an init profile during instal= lation
>
> Create an init profile (/etc/profile.d/guix.sh) during installation fo= r
> better integration with foreign distros. This file, read by login-shel= ls
> sets a few environment variables (PATH, GUIX_PROFILE, GUIX_LOCALE, alo= ng
> with XDG_DATA_DIRS) and makes guix-installed packages readily availabl= e
> for the users. Other environment variables, as listed by `guix package=
> --search-paths=3Dprefix`, are also exported.
>
> Checks are in place to prevent the init profile from needlessly pollut= ing
> the user's environment.
>
> * etc/guix-install.sh (sys_create_init_profile): New function to creat= e
> /etc/profile.d/guix.sh init profile.

Applied, thanks!

Ludo=E2=80=99.
--000000000000f28f24059c81061a-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 03:38:48 2020 Received: (at 39049) by debbugs.gnu.org; 20 Jan 2020 08:38:48 +0000 Received: from localhost ([127.0.0.1]:44320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itSa4-0006D1-P8 for submit@debbugs.gnu.org; Mon, 20 Jan 2020 03:38:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itSZz-0006Cl-RL for 39049@debbugs.gnu.org; Mon, 20 Jan 2020 03:38:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1itSZu-0004mZ-MD; Mon, 20 Jan 2020 03:38:34 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=54488 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1itSZu-0004Pc-0D; Mon, 20 Jan 2020 03:38:34 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Prafulla Giri Subject: Re: [bug#39049] guix-install.sh: Create an init profile for better out-of-the-box experience on foreign distros References: <878sm611yh.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 =?utf-8?Q?Pluvi=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 20 Jan 2020 09:38:32 +0100 In-Reply-To: (Prafulla Giri's message of "Sun, 19 Jan 2020 22:39:13 +0545") Message-ID: <874kwqjzef.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39049 Cc: 39049@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, Prafulla Giri skribis: > /etc/profile.d/*.sh seems to be the norm these days. All the debian-based > distros that I have used seem to have it (Mint, Elementary, Ubuntu, etc.) > and even Alpine Linux's docker containers support them. OK, great. > I didn't really think this patch will get merged in one go. I did find > another thing that I could add to this patch the other day but had not > gotten around to updating this. It is regarding the infopath: setting it = to > contain _GUIX_PROFILE/share/info seems to be a good default to have, esp. > because it isn't exported by `guix package --search-paths`. I ran into th= is > issue just the other day, myself. I wish I had made haste to send in an > update. I agree that it=E2=80=99d be nice! > Should I send in a patch, sir? And do I send it in this thread or should I > do it in another one, please? Could you send another patch to guix-patches@gnu.org? Thank you, Ludo=E2=80=99. From unknown Mon Aug 18 00:06:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 Feb 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator