delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/16/17:22:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Date: Thu, 16 Feb 2012 23:21:46 +0100
From: David Sastre Medina <d DOT sastre DOT medina AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: base-files 4.0-9: LANG is set to the system default, why not the user selection?
Message-ID: <20120216222146.GD9451@jethro.local.lan>
References: <CAHWeT-YdkjH1dRwS+GuTmzoP7QO2P1w1Jr_tBNkj3224P--axQ AT mail DOT gmail DOT com> <20120215221458 DOT GA6842 AT jethro DOT local DOT lan> <4F3C99B2 DOT 9000507 AT lysator DOT liu DOT se> <4F3CD659 DOT 7070109 AT lysator DOT liu DOT se> <4F3CE52C DOT 70409 AT gmail DOT com> <4F3CFEB0 DOT 3040307 AT lysator DOT liu DOT se> <4F3D06A9 DOT 5000602 AT gmail DOT com> <4F3D11AF DOT 4090005 AT lysator DOT liu DOT se> <20120216200538 DOT GA9451 AT jethro DOT local DOT lan> <4F3D6B36 DOT 3080500 AT lysator DOT liu DOT se>
MIME-Version: 1.0
In-Reply-To: <4F3D6B36.3080500@lysator.liu.se>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--0IvGJv3f9h+YhkrH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Feb 16, 2012 at 09:46:46PM +0100, Peter Rosin wrote:
> David Sastre Medina skrev 2012-02-16 21:05:
> As I understand it, base-files contains the file
> /etc/defaults/etc/skel/.bash_profile.
> At installation, /etc/postinstall/base-files.sh copies that to
> /etc/skel/.bash_profile, if it that file doesn't exist already.
> Then at uninstall, if /etc/preremove/base-files.sh finds that
> /etc/skel/.bash_profile is not changed, it is removed (so that
> an updated package feels free to copy over the new version).
>=20
> Further, when a user *first* logs in, /etc/skel/.bash_profile
> is copied to ~/.bash_profile by the /etc/profile script.  At no
> other point are files in ~ modified, as I understand it.  The
> way I read your explanation above, you are implying that your
> ~/.bash_profile is updated along with /etc/skel/.bash_profile,
> and I simply fail to see where that is happening.  It is also
> counter to the message from /etc/profile (also quoted by Mike):
>=20
>   Copying skeleton files.
>   These files are for the users to personalise their cygwin experience.
>=20
>   They will never be overwritten nor automatically updated.

This describes the whole process accurately.

> I.e. my /etc/skel/.bash_profile is version 4.0-9 as I expect,
> but my ~/.bash_profile is the old 4.0-6 version from when I
> first logged in, and I see no code anywhere that checks if
> ~/.bash_profile matches /etc/skel/.bash_profile and updates
> if it is pristine.
> So, the question remains, why is your
> ~/.bash_profile updated when you upgrade the base-files package?

It is not.
I re-read the whole thread and found where I lead to you assume that:

In http://cygwin.com/ml/cygwin/2012-02/msg00477.html
I wrote: "Probably you have a customized ~/.bash_profile, so updating to
base-files-4.0-9 didn't replace it."

But I meant: "Probably you have a customized (/etc/skel/).bash_profile, so =
updating
to base-files-4.0-9 didn't replace it."

That alone lead to the rest of the mess. Sorry.

You need to manually apply changes that happen in skeletal files onto
your $HOME if you want them.
Also, it should have been explicitly emphasized that, for users in your sit=
uation
(windows system locale in language A, but user-defined preference to lang B=
),
a manual change was needed to preserve such config.

--=20
Huella de clave primaria: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56

--0IvGJv3f9h+YhkrH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iF4EAREIAAYFAk89gXoACgkQ95urBFKZ7FZ8VAD+OoHtG84xl0uhZuYaMBLR6X5H
sTksR5eMBMsFv7BIt6oA/1uBF6xCPhU/0jGSCkipe2CrXLg408feA9iK+0OASFnl
=Q65Z
-----END PGP SIGNATURE-----

--0IvGJv3f9h+YhkrH--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019