public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] News item: breaking change to app-misc/mc user-configuration handling
@ 2021-08-16 15:15 Marek Szuba
  2021-08-16 15:22 ` Lars Wendler
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Szuba @ 2021-08-16 15:15 UTC (permalink / raw
  To: gentoo-dev; +Cc: pr

Title: >=app-misc/mc-4.8.27 to drop support for ~/.mc
Author: Marek Szuba <marecki@gentoo.org>
Posted: 2021-08-19
Revision: 1
News-Item-Format: 2.0
Display-If-Installed: app-misc/mc

app-misc/mc versions between 4.8.1 and 4.8.26, inclusive, would look
for their user configuration in two possible places:

  * if built with USE=-xdg, only the legacy directory ~/.mc is used;

  * if built with USE=xdg, mc uses appropriate XDG user directories
    (e.g. ~/.config/mc, ~/.local/share/mc) if present and attempts
    to automatically migrate the contents of ~/.mc otherwise.

However, starting with version 4.8.27 Midnight Commander will use _only
XDG user directories_ for its configuration and no longer automatically
migrate the contents of ~/.mc. For more information, see:

     https://midnight-commander.org/wiki/NEWS-4.8.27
     https://midnight-commander.org/ticket/3682

For everyone who currently uses app-misc/mc[-xdg], or has not started
mc for so long that it hasn't had a chance to migrate its configuration,
upgrading to 4.8.27 or newer will result in Midnight Commander
effectively reverting to default user configuration. In order to prevent
this from happening, make sure automatic migration is available:

     echo 'app-misc/mc' >> /etc/portage/package.use
     emerge --oneshot <app-misc/mc-4.8.27

and have every user on your system with ~/.mc present run mc at least
once prior to the version upgrade.

No action is required of everyone currently using app-misc/mc
with USE=xdg enabled.

-- 
Marecki


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] News item: breaking change to app-misc/mc user-configuration handling
  2021-08-16 15:15 [gentoo-dev] News item: breaking change to app-misc/mc user-configuration handling Marek Szuba
@ 2021-08-16 15:22 ` Lars Wendler
  2021-08-16 15:42   ` Marek Szuba
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Wendler @ 2021-08-16 15:22 UTC (permalink / raw
  To: Marek Szuba; +Cc: gentoo-dev, pr

[-- Attachment #1: Type: text/plain, Size: 1983 bytes --]

Hi Marek,

thank you very much for wqriting this up. I highly appreciate this.

On Mon, 16 Aug 2021 16:15:06 +0100 Marek Szuba wrote:

>Title: >=app-misc/mc-4.8.27 to drop support for ~/.mc
>Author: Marek Szuba <marecki@gentoo.org>
>Posted: 2021-08-19
>Revision: 1
>News-Item-Format: 2.0
>Display-If-Installed: app-misc/mc
>
>app-misc/mc versions between 4.8.1 and 4.8.26, inclusive, would look
>for their user configuration in two possible places:
>
>  * if built with USE=-xdg, only the legacy directory ~/.mc is used;
>
>  * if built with USE=xdg, mc uses appropriate XDG user directories
>    (e.g. ~/.config/mc, ~/.local/share/mc) if present and attempts
>    to automatically migrate the contents of ~/.mc otherwise.
>
>However, starting with version 4.8.27 Midnight Commander will use _only
>XDG user directories_ for its configuration and no longer automatically
>migrate the contents of ~/.mc. For more information, see:
>
>     https://midnight-commander.org/wiki/NEWS-4.8.27
>     https://midnight-commander.org/ticket/3682
>
>For everyone who currently uses app-misc/mc[-xdg], or has not started
>mc for so long that it hasn't had a chance to migrate its
>configuration, upgrading to 4.8.27 or newer will result in Midnight
>Commander effectively reverting to default user configuration. In
>order to prevent this from happening, make sure automatic migration is
>available:
>
>     echo 'app-misc/mc' >> /etc/portage/package.use

I suppose that should be:

  echo 'app-misc/mc xdg' >> /etc/portage/package.use

>     emerge --oneshot <app-misc/mc-4.8.27
>
>and have every user on your system with ~/.mc present run mc at least

run mc _and_ mcedit once

>once prior to the version upgrade.
>
>No action is required of everyone currently using app-misc/mc

s/of/for/  ?

>with USE=xdg enabled.
>

Cheers
Lars
-- 
Lars Wendler
Gentoo package maintainer
GPG: 21CC CF02 4586 0A07 ED93  9F68 498F E765 960E 9B39

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] News item: breaking change to app-misc/mc user-configuration handling
  2021-08-16 15:22 ` Lars Wendler
@ 2021-08-16 15:42   ` Marek Szuba
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Szuba @ 2021-08-16 15:42 UTC (permalink / raw
  To: Lars Wendler; +Cc: gentoo-dev, pr


[-- Attachment #1.1: Type: text/plain, Size: 595 bytes --]

On 2021-08-16 16:22, Lars Wendler wrote:

> thank you very much for wqriting this up. I highly appreciate this.

Cheers!

>>      echo 'app-misc/mc' >> /etc/portage/package.use
> 
> I suppose that should be:
> 
>    echo 'app-misc/mc xdg' >> /etc/portage/package.use

Indeed. Fixed locally.

>> and have every user on your system with ~/.mc present run mc at least
> 
> run mc _and_ mcedit once

Good call. Also fixed locally.

>> No action is required of everyone currently using app-misc/mc
> 
> s/of/for/  ?

I think both are grammatically correct.

-- 
Marecki


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-16 20:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-16 15:15 [gentoo-dev] News item: breaking change to app-misc/mc user-configuration handling Marek Szuba
2021-08-16 15:22 ` Lars Wendler
2021-08-16 15:42   ` Marek Szuba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox