Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-17 Thread Wols Lists
On 15/06/2024 21:10, Alan Mackenzie wrote: Why didn't you keep a copy of the old file? Because that's one of the itsy-bitsy routine things that ought to be automatic, not something that each user should have to think out for himself. Dunno which update tool it is, but istr there is a tool

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-15 Thread Peter Humphrey
On Saturday, 15 June 2024 23:00:07 BST Jack wrote: > A bit of searching found the wiki page for dispatch-conf, which > includes: > > Before running dispatch-conf for the first time, the settings in > /etc/dispatch-conf.conf should be edited, and the archive directory > specified in

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-15 Thread Jack
On 2024.06.15 02:38, Vitaliy Perekhovy wrote: On Fri, Jun 14, 2024 at 04:54:09PM -0400, Jack wrote: > I don't have any such directory. What package does it belong to, or is > it a config setting for portage or another package? Yes, it is a configuration of portage itself. There is an env

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-15 Thread Alan Mackenzie
Hello, Vitaliy. On Fri, Jun 14, 2024 at 21:25:23 +0300, Vitaliy Perekhovy wrote: > On Fri, Jun 14, 2024 at 03:53:35PM +, Alan Mackenzie wrote: > > I think portage is at fault here - it should retain the older standard > > version of /etc/bash/bashrc so that users can resolve the differences >

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-15 Thread Alan Mackenzie
Hello, Netfab. On Fri, Jun 14, 2024 at 19:52:32 +0200, netfab wrote: > Le 14/06/24 à 19:33, Alan Mackenzie a tapoté : > > Are these files freely available, anywhere, perhaps? > Else, everything is also available from gentoo.org : > >

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-15 Thread Wol
On 14/06/2024 18:39, Alan Mackenzie wrote: Does etc-update or dispatch-conf not give you the option to selectively update and/or to diff the file? In theory, yes. In practice, dispatch-conf just offers a single ~130-line long hunk, which is useless for distinguishing wanted pieces of code

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-15 Thread Wol
On 14/06/2024 16:53, Alan Mackenzie wrote: I think portage is at fault here - it should retain the older standard version of /etc/bash/bashrc so that users can resolve the differences with a 3-way diff. Is it portage itself that DID the update, or it did it tell you to do the update with

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-15 Thread Peter Humphrey
On Friday, 14 June 2024 18:33:57 BST Alan Mackenzie wrote: > Are these files freely available, anywhere, perhaps? Your backup from last week? :) -- Regards, Peter.

Re[2]: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-15 Thread Stefan Schmiedl
-- Original Message -- From "Paul Colquhoun" To gentoo-user@lists.gentoo.org Date 15.06.2024 01:43:22 Subject Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc You edited the old file, not portage. Why didn't you keep a copy of the old file? I have this in th

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-15 Thread Vitaliy Perekhovy
On Fri, Jun 14, 2024 at 04:54:09PM -0400, Jack wrote: > I don't have any such directory. What package does it belong to, or is > it a config setting for portage or another package? Yes, it is a configuration of portage itself. There is an env variable CONFIG_PROTECT that contains a list of

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread Jack
On 2024.06.14 14:25, Vitaliy Perekhovy wrote: On Fri, Jun 14, 2024 at 03:53:35PM +, Alan Mackenzie wrote: > I think portage is at fault here - it should retain the older standard > version of /etc/bash/bashrc so that users can resolve the differences > with a 3-way diff. Before replace

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread Vitaliy Perekhovy
On Fri, Jun 14, 2024 at 03:53:35PM +, Alan Mackenzie wrote: > I think portage is at fault here - it should retain the older standard > version of /etc/bash/bashrc so that users can resolve the differences > with a 3-way diff. Before replace your old bashrc file, portage place the old one

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread Waldo Lemmer
On Fri, Jun 14, 2024, 19:39 Alan Mackenzie wrote: Maybe I should submit a feature request to Gentoo's bugzilla. > Occasionally a package updates a file in /etc/, and I can't remember whether the file was modified by me or not. This usually happens with things I don't completely understand and

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread netfab
Le 14/06/24 à 19:33, Alan Mackenzie a tapoté : > Are these files freely available, anywhere, perhaps? Else, everything is also available from gentoo.org : https://gitweb.gentoo.org/repo/gentoo.git/tree/app-shells/bash/files/bashrc Click on plain to get the raw version.

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread netfab
Le 14/06/24 à 19:33, Alan Mackenzie a tapoté : > Are these files freely available, anywhere, perhaps? > And if you try to get the raw version with wget ? > $ cd /tmp > $ wget > https://raw.githubusercontent.com/gentoo/gentoo/master/app-shells/bash/files/bashrc

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread Alan Mackenzie
Hello, Mike. On Fri, Jun 14, 2024 at 17:19:31 +0100, Mike Civil wrote: > On 14/06/2024 17:00, Alan Mackenzie wrote: > > Right now, I have a problem. Is there any convenient way I can get the > > older standard file contents back again, so as to be able to do this > > 3-way diff? > Does

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread Alan Mackenzie
Hello, Netfab. On Fri, Jun 14, 2024 at 18:22:11 +0200, netfab wrote: > Le 14/06/24 à 17:53, Alan Mackenzie a tapoté : > > Right now, I have a problem. Is there any convenient way I can get > > the older standard file contents back again, so as to be able to do > > this 3-way diff? > The old

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread netfab
Le 14/06/24 à 17:53, Alan Mackenzie a tapoté : > Right now, I have a problem. Is there any convenient way I can get > the older standard file contents back again, so as to be able to do > this 3-way diff? The old bashrc file installed by previous versions of the ebuild :

Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread Mike Civil
On 14/06/2024 17:00, Alan Mackenzie wrote: Right now, I have a problem. Is there any convenient way I can get the older standard file contents back again, so as to be able to do this 3-way diff? Does etc-update or dispatch-conf not give you the option to selectively update and/or to diff the

[gentoo-user] Difficulty with updating /etc/basb/bashrc

2024-06-14 Thread Alan Mackenzie
Hello, Gentoo. I performed a portage update today, and at the end it informed me I had to deal with /etc/bash/bashrc. This file's standard version has changed, and I have apparently made changes in my own copy. But the new file from portage bears no resemblance to my existing version. It is