GNU bug report logs - #59127
[PATCH] guix-install.sh: remove unnecessary XDG_DATA_DIRS export.

Previous Next

Package: guix-patches;

Reported by: Prafulla Giri <prafulla.giri <at> protonmail.com>

Date: Tue, 8 Nov 2022 17:25:02 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> envs.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59127 in the body.
You can then email your comments to 59127 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#59127; Package guix-patches. (Tue, 08 Nov 2022 17:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Prafulla Giri <prafulla.giri <at> protonmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 08 Nov 2022 17:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Prafulla Giri <prafulla.giri <at> protonmail.com>
To: "guix-patches <at> gnu.org" <guix-patches <at> gnu.org>
Subject: [PATCH] guix-install.sh: remove unnecessary XDG_DATA_DIRS export.
Date: Tue, 08 Nov 2022 09:47:57 +0000
[Message part 1 (text/plain, inline)]
Hello there,

Here's a small patch.

Regards.
[Message part 2 (text/html, inline)]
[0001-guix-install.sh-remove-unnecessary-XDG_DATA_DIRS-exp.patch (text/x-patch, attachment)]

Reply sent to 宋文武 <iyzsong <at> envs.net>:
You have taken responsibility. (Mon, 14 Nov 2022 02:28:02 GMT) Full text and rfc822 format available.

Notification sent to Prafulla Giri <prafulla.giri <at> protonmail.com>:
bug acknowledged by developer. (Mon, 14 Nov 2022 02:28:02 GMT) Full text and rfc822 format available.

Message #10 received at 59127-done <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> envs.net>
To: Prafulla Giri <prafulla.giri <at> protonmail.com>
Cc: 59127-done <at> debbugs.gnu.org
Subject: Re: bug#59127: [PATCH] guix-install.sh: remove unnecessary
 XDG_DATA_DIRS export.
Date: Mon, 14 Nov 2022 10:27:20 +0800
Prafulla Giri <prafulla.giri <at> protonmail.com> writes:

> Hello there,
>
> Here's a small patch.
>
> Regards.
>
> From 22a94cf122a8f01ba8078255031cc520f4f1b70d Mon Sep 17 00:00:00 2001
> From: Prafulla Giri <prafulla.giri <at> protonmail.com>
> Date: Tue, 8 Nov 2022 13:39:21 +0545
> Subject: [PATCH] guix-install.sh: remove unnecessary XDG_DATA_DIRS export.
>
> This started out as a bug-fix for a GUI login loop that was resulting from XDG_DATA_DIRS
> not including any of the host distro's directories. The solution was to export the vari-
> able (with fail-safe defaults) before source-ing GUIX_PROFILE/etc/profile. It turns out
> changes have already been made to ensure that XDG_DATA_DIRS, etc. are always exported
> before anything guix-specific. So, this export is no longer necessary.
>
> For reference, the aforementioned bug was found on a Debian 11 machine and it's guix.sh
> init profile for guix version 1.2.
> ---
>  etc/guix-install.sh | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/etc/guix-install.sh b/etc/guix-install.sh
> index c8ef59d4a4..21253f538b 100755
> --- a/etc/guix-install.sh
> +++ b/etc/guix-install.sh
> @@ -10,6 +10,7 @@
>  # Copyright © 2021 Jakub Kądziołka <kuba <at> kadziolka.net>
>  # Copyright © 2021 Chris Marusich <cmmarusich <at> gmail.com>
>  # Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
> +# Copyright © 2019, 2020, 2022 Prafulla Giri <prafulla.giri <at> protonmail.com>

I changed copyright years to only '2022'.

Pushed, thank you!




Information forwarded to guix-patches <at> gnu.org:
bug#59127; Package guix-patches. (Tue, 15 Nov 2022 05:12:02 GMT) Full text and rfc822 format available.

Message #13 received at 59127-done <at> debbugs.gnu.org (full text, mbox):

From: Prafulla Giri <prafulla.giri <at> protonmail.com>
To: 宋文武 <iyzsong <at> envs.net>
Cc: 59127-done <at> debbugs.gnu.org
Subject: Re: bug#59127: [PATCH] guix-install.sh: remove unnecessary
 XDG_DATA_DIRS export.
Date: Tue, 15 Nov 2022 05:11:31 +0000
Thank you.

The copyright year was because I introduced the guix.sh init profile back in 2019 but had not put the copyright year in (https://git.savannah.gnu.org/cgit/guix.git/log/?qt=author&q=Prafulla+Giri). But that's all right. (Turns out the first patch was committed in 2020 - authored in 2019 - so it was wrong anyways)

Cheers!

------- Original Message -------
On Monday, November 14th, 2022 at 8:12 AM, 宋文武 <iyzsong <at> envs.net> wrote:


> Prafulla Giri prafulla.giri <at> protonmail.com writes:
> 
> > Hello there,
> > 
> > Here's a small patch.
> > 
> > Regards.
> > 
> > From 22a94cf122a8f01ba8078255031cc520f4f1b70d Mon Sep 17 00:00:00 2001
> > From: Prafulla Giri prafulla.giri <at> protonmail.com
> > Date: Tue, 8 Nov 2022 13:39:21 +0545
> > Subject: [PATCH] guix-install.sh: remove unnecessary XDG_DATA_DIRS export.
> > 
> > This started out as a bug-fix for a GUI login loop that was resulting from XDG_DATA_DIRS
> > not including any of the host distro's directories. The solution was to export the vari-
> > able (with fail-safe defaults) before source-ing GUIX_PROFILE/etc/profile. It turns out
> > changes have already been made to ensure that XDG_DATA_DIRS, etc. are always exported
> > before anything guix-specific. So, this export is no longer necessary.
> > 
> > For reference, the aforementioned bug was found on a Debian 11 machine and it's guix.sh
> > init profile for guix version 1.2.
> > ---
> > etc/guix-install.sh | 4 +---
> > 1 file changed, 1 insertion(+), 3 deletions(-)
> > 
> > diff --git a/etc/guix-install.sh b/etc/guix-install.sh
> > index c8ef59d4a4..21253f538b 100755
> > --- a/etc/guix-install.sh
> > +++ b/etc/guix-install.sh
> > @@ -10,6 +10,7 @@
> > # Copyright © 2021 Jakub Kądziołka kuba <at> kadziolka.net
> > # Copyright © 2021 Chris Marusich cmmarusich <at> gmail.com
> > # Copyright © 2021, 2022 Maxim Cournoyer maxim.cournoyer <at> gmail.com
> > +# Copyright © 2019, 2020, 2022 Prafulla Giri prafulla.giri <at> protonmail.com
> 
> 
> I changed copyright years to only '2022'.
> 
> Pushed, thank you!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Dec 2022 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.