delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.3.2 sourceware.org 4B027381DCE1 |
Authentication-Results: | sourceware.org; dmarc=none (p=none dis=none) |
header.from=SystematicSw.ab.ca | |
Authentication-Results: | sourceware.org; |
spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca | |
X-Authority-Analysis: | v=2.3 cv=ecemg4MH c=1 sm=1 tr=0 |
a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 | |
a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 | |
a=6N7BkYgRXsiAoJXpGaAA:9 a=QEXdDO2ut3YA:10 a=OO2XiV6ZNdAA:10 | |
a=sRI3_1zDfAgwuvI8zelB:22 | |
Subject: | Re: Conflict between Eclipse JGit and Cygwin HOME |
To: | cygwin AT cygwin DOT com |
References: | <CAA5t8Vo_B+yAwTkUsHFFM1oXo8ntvXduyG-ua-H7oGyenTm=ng AT mail DOT gmail DOT com> |
<528226091 DOT 20200317040308 AT yandex DOT ru> | |
<ea2832cb-21e0-e9cc-1cd1-2328030b65c4 AT SystematicSw DOT ab DOT ca> | |
<CAA5t8VoxA680p7xpOm+GgK5ZejiTuY-RXzuCpc_6TX5H7qAK3Q AT mail DOT gmail DOT com> | |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Autocrypt: | addr=Brian DOT Inglis AT SystematicSw DOT ab DOT ca; prefer-encrypt=mutual; |
keydata= | |
mQENBFg15Q0BCADc1LTYJN/oVKOJoXpIo+5yy+sBv535qYNRh5CFqp3pPZwIy6oILNKprWph | |
8J+sXMqYd5H0G1jMDlXendiQbn9SiORuqI7xkV8vzguoFEMhNTxnO1pOQjqRnEnG/W7/5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oA99OrFc7JKllHRGDLQ0B/HKAPgNnLCenzDuV/d+N1RDbbpa0c/uvmoptR | |
Aejlq3HszXYQ9wTmu8OwVSITSkzgP1lKzyDPZS9SGvlrQp8AEQEAAYkBPAQYAQIAJgIbDBYh | |
BEy/sJ49FaN/AfIQJjY9ewCxhxqTBQJai9GnBQkNRM0aAAoJEDY9ewCxhxqTuL8H/ivw0VXX | |
lQW4c9O8XsMafDcEyV23MH4fdZACss+ZWluda7xIRo78GCLXxARHwJdOE9Jk9+/fDQOTZd4m | |
KW0trLCfWvJnwNJfOLbqse7eydvgdj2UrTpy4DO/5+mAw/ilgZpEGgwMwyqb/2kFiKK7Q64B | |
NKl8Y2kRXltaiXfqyvG2U/NiE4GOPA3yZgXs4Mzd1pzV/nkEIzGkneaeE5WGEWj/8dCnn6a3 | |
zIuq0L59QInxKsTdt10OQiUoRKl8Nx0vDCOzMy0wlJc349gJbQBCAZcumtBBBqAzCAmJ3J7T | |
7ew8hznAEmOwr+LkSOdXFzEjdfTaryhN1AsRLYVUNloEWNA= | |
Organization: | Systematic Software |
Message-ID: | <7fb0d4ef-30c6-7c12-06d6-dc50a86aab9c@SystematicSw.ab.ca> |
Date: | Tue, 17 Mar 2020 14:55:01 -0600 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 |
Thunderbird/68.6.0 | |
MIME-Version: | 1.0 |
In-Reply-To: | <CAA5t8VoxA680p7xpOm+GgK5ZejiTuY-RXzuCpc_6TX5H7qAK3Q@mail.gmail.com> |
X-CMAE-Envelope: | MS4wfGOjsfzLYLtqyB9uO9pEVjUh5+cVxS2DnP/UmNXHySzITCYtQ4rr3u1+cZ0pMvsmX+BmVEMrVaLMYGE6psoqYu6c0opfZylIt4NsWQwKoBaoda06tNmX |
+76UHiDIpu9neQVe5YoaM6SdC4O9NXWljd+EagLfKYKmGqBFahEg5jElo/UX+4lM6nZnBDxXPTxzkQ== | |
X-Spam-Status: | No, score=0.3 required=5.0 tests=KAM_DMARC_STATUS, |
KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, | |
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, | |
SPF_NONE autolearn=no autolearn_force=no version=3.4.2 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.2 (2018-09-13) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | Cygwin mailing list <cygwin.cygwin.com> |
List-Unsubscribe: | <http://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <http://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <http://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Reply-To: | cygwin AT cygwin DOT com |
Errors-To: | cygwin-bounces AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
On 2020-03-17 07:45, David Karr via Cygwin wrote: > On Mon, Mar 16, 2020 at 11:20 PM Brian Inglis wrote: >> On 2020-03-16 19:03, Andrey Repin wrote: >>>> I've been running Cygwin on my Windows 10 laptop for quite a while. I >>>> use git in Eclipse and in the shell. >>>> >>>> What I'm describing isn't really a bug with Cygwin, but it breaks >>>> because of the interaction with Cygwin, and I'm trying to find out a >>>> reasonable way to fix this. >>>> >>>> Over the weekend, I upgraded Windows 10 from 1709 to 1809. Somehow >>>> after that I have messed up how git is used in Eclipse. >>>> >>>> The Eclipse JGit framework figures out where my git config is by >>>> checking things in the following order: >>>> >>>> - 1. %HOME% if set, >>>> - 2. %HOMEDRIVE%\%HOMEPATH%, if %HOMEDRIVE% is set, >>>> - 3. %HOMESHARE% if set, >>>> - 4. Java system property "user.home". >>>> >>>> The HOMEDRIVE, HOMEPATH, and HOMESHARE variables are set by my work >>>> infrastructure, and I appear to have no control over them. The resulting >>>> %HOMEDRIVE%\%HOMEPATH% doesn't even exist. >>> >>> It should, that's nonsense. File an issue with your infrastructure team. >>> >>>> The HOME variable is set by Cygwin, apparently. >>> >>> No, it only set HOME if it is not set yet, and even then only for login >>> shells. >>> >>>> It is set to "/home/<myuid>". >>> >>> What "myid" is supposed to mean? HOME is set to /home/$USER by default, >>> but can be overridden with proper nsswitch configuration. >>> >>>> I'm guessing that JGit looks at that and can't do >>>> anything with it, so it goes down the list and doesn't find anything >>>> useful. I end up with bad git config values. >>> >>> Just install Git for Windows, but don't add it to %PATH% in any way, >>> shape or form. Then configure Eclipse to use that git instead of Cygwin >>> one. >>> >>>> The workaround I've figured out is a batch file that sets HOME to the >>>> expected Windows HOME, and then executes its command-line parameters. I >>>> changed the target property in the Eclipse shortcut to add the full >>>> path to this batch file at the front of the command line, and then I >>>> have to find the eclipse.exe file and get the desktop icon from it. >>>> I'll have to do this every time I install a new Eclipse distribution.>>> >>> Start by solving the issue from its head. >>> Fix your %HOMEDRIVE%/%HOMEPATH%/%HOMESHARE%, configure your nsswitch to >>> point to an existing profile path. >> >> Your problem seems to be with your Windows network profile and Windows >> programs, nothing to do with Cygwin. >> Fixing the former will probably fix the latter. > > If it wasn't obvious, I'm trying to find a solution, not assign blame. Of > course it has "something to do with Cygwin", because I'm using it, and Cygwin > and WIndows are using a shared resource, the "HOME" variable. Cygwin and > Windows try to use it for different purposes. There's nothing I can do about > the "Windows network profile". Andrey and myself are trying to point you towards solving your problem, which appears to be from your Windows network profile, which is set up by your Windows support team, and is broken under your upgraded release. You need to contact your corporate Windows support team and have them help to fix your profile problem. You can try to do so yourself by renaming your profile folder and immediately restarting your system. You will of course lose your settings, but this is a standard corporate Windows support approach, as is reimaging your system. To that end, restoring your system, by rolling back the upgrade, to its pre-upgrade state, would also be a viable approach for you to try. We are unconcerned about blame, only pointing at the likely cause, and your denial that anything can be done about your broken profile settings. >> But if your work infrastructure does not yet support W10 1809 (do you >> really mean that release, not the current 1909 release?) you should not >> have upgraded, and any breakage is down to you. > > Again, you took this as me trying to assign blame, which is pointless. > > Yes, I meant 1809, and although I performed the upgrade manually, it would > have been done automatically in the near future if I hadn't, so there was > no choice there. Your corporate upgrade would have been applied using a different approach, with relevant settings saved and restored, or replaced in a way compatible with your corporate environment. A lot of work and testing is done by corporate Windows support groups to minimize problems and their subsequent support load after upgrades. >> For Cygwin options see: >> >> https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-desc > > Yes, I've seen that, and considered my options there, but I don't think > that will address this situation. The problem is the contents of the > "HOME" variable. It doesn't matter where my Cygwin HOME directory actually > resides. That section shows how to override HOME under Cygwin using an XML like SAM Comment: $ net user $USER /comment:"<cygwin home=\"/home/$USER\" />" which may need some extra quoting to get the quotes into the comment: you may then symlink your effective home directory to /home/$USER. The docs are available locally if you install cygwin-doc and use: $ cygstart /usr/share/doc/cygwin-doc/html/cygwin-ug-net/ntsec.html but cygstart does not support fragments in file URLs. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |