X-Spam-Check-By: sourceware.org Date: Thu, 12 Oct 2006 22:12:50 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: John Morrison cc: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated: vim-7.0.122-1 In-Reply-To: <40944.84.246.168.11.1160663798.squirrel@mail.morrison.mine.nu> Message-ID: References: <452D2696 DOT 3060602 AT users DOT sourceforge DOT net> <014c01c6ed5b$d6a1e9a0$a501a8c0 AT CAM DOT ARTIMI DOT COM> <20061012065523 DOT GP13105 AT calimero DOT vinschen DOT de> <20061012111836 DOT GA29649 AT trixie DOT casa DOT cgf DOT cx> <20061012115416 DOT GB8323 AT calimero DOT vinschen DOT de> <51442 DOT 84 DOT 246 DOT 168 DOT 11 DOT 1160654571 DOT squirrel AT mail DOT morrison DOT mine DOT nu> <40944 DOT 84 DOT 246 DOT 168 DOT 11 DOT 1160663798 DOT squirrel AT mail DOT morrison DOT mine DOT nu> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1804928587-1160705570=:2556" Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com ---559023410-1804928587-1160705570=:2556 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 12 Oct 2006, John Morrison wrote: > On Thu, October 12, 2006 2:41 pm, Igor Peshansky wrote: > > On Thu, 12 Oct 2006, John Morrison wrote: > > > >> On Thu, October 12, 2006 12:54 pm, Corinna Vinschen wrote: > >> > > >> > I think it is needed. At least the base-files-mketc.sh postinstall > >> > script creates paths which point outside the Cygwin root, so it > >> > either needs to reference cygdrive paths, or use DOS paths. Using > >> > cygdrives paths is preferable, IMHO. Since the cygdrive path is > >> > not fixed, and can even differ between different users on the same > >> > machine, there must be a fixed method to reference these paths. > >> > > >> > Personally I'd rather not further clutter the root directory, which > >> > is why /proc seems to me to be a better place to point to the > >> > cygdrive paths in a constant fashion. But that is only a mild > >> > opposition. I'd also go along with /cygdrive. > >> > >> I've changed the script (which I didn't write!) to use cygpath > >> --sysdir which outputs cygdrive paths. I should be able to get a new > >> release out by the weekend, but I'll hold off until this discussion > >> is decided. Personally I don't mind either an always existing > >> /cygdrive or something in /proc. Only thing that would ask is; what > >> would cygpath output? > > > > John, > > > > I wrote the script originally, and the initial version did use POSIX > > paths. > > I thought you did and was suprised to find it not using POSIX paths but > assumed that there was a reason... > > > I've just re-read the early discussions, and found this: > > > > . > > and there it is. > > > I think the issue is still valid -- if the installing user has the > > user-level cygdrive prefix set, "cygpath --sysdir" will output > > something that won't work for other users on the machine, and the > > links will be broken. > > > > If we add a standard /cygdrive prefix, we'll also need to change > > cygpath to force that standard prefix for out-of-tree paths (otherwise > > user and system mounts take precedence). Something like "cygpath -S > > -s" (or "cygpath --sysdir --standard")... > > > > However, if we really want to make this more robust, we'd need something > > like this: > > > > SAVED_CYGDRIVE="`mount -m | grep '^mount -u -[bt] -\?-c'`" > > mount -u -b -c '/cygdrive' > > # Do the path manipulation here > > umount -u -c > > [ -n "$SAVED_CYGDRIVE" ] && eval "$SAVED_CYGDRIVE" > > > > Opinions? > > Can you write the new version and I'll just package it? ;) Sure. But Corinna provided a much simpler solution (which works, at least on my machine). Attached is the new version of the script. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" ---559023410-1804928587-1160705570=:2556 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=base-files-mketc.sh Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=base-files-mketc.sh IyEvYmluL3NoDQoNCiMgYmFzZS1maWxlcyB2ZXJzaW9uIDMuNy0xDQoNCiMt LQ0KIyBDcmVhdGUgc3ltYm9saWMgbGlua3MgZnJvbSBzb21lIC9ldGMgZmls ZXMgdG8gdGhlIFdpbmRvd3MgZXF1aXZhbGVudHMNCiMtLQ0KDQpGSUxFUz0i aG9zdHMgcHJvdG9jb2xzIHNlcnZpY2VzIG5ldHdvcmtzIg0KDQpPU05BTUU9 ImAvYmluL3VuYW1lIC1zYCINCldJTkhPTUU9ImAvYmluL2N5Z3BhdGggLW0g LVdgIg0KDQpDWUdXSU49IiRDWUdXSU4gY2hlY2tfY2FzZTpyZWxheGVkIg0K ZXhwb3J0IENZR1dJTg0KDQpjYXNlICIkT1NOQU1FIiBpbg0KICBDWUdXSU5f TlQqKSBXSU5FVEM9IiRXSU5IT01FL3N5c3RlbTMyL2RyaXZlcnMvZXRjIiA7 Ow0KICBDWUdXSU5fOSp8Q1lHV0lOX01FKikgV0lORVRDPSIkV0lOSE9NRSIg OzsNCiAgKikNCiAgICBlY2hvICJVbmtub3duIHN5c3RlbSB0eXBlICRPU05B TUU7IGV4aXRpbmciID4mMg0KICAgIGV4aXQgMA0KICAgIDs7DQplc2FjDQoN CmlmIFsgISAtZCAiJFdJTkVUQyIgXQ0KdGhlbg0KICBlY2hvICJEaXJlY3Rv cnkgJFdJTkVUQyBkb2VzIG5vdCBleGlzdDsgZXhpdGluZyIgPiYyDQogIGVj aG8gIklmIGRpcmVjdG9yeSBuYW1lIGlzIGdhcmJhZ2UgeW91IG5lZWQgdG8g dXBkYXRlIHlvdXIgY3lnd2luIHBhY2thZ2UiID4mMg0KICBleGl0IDANCmZp DQoNCmZvciBta2V0YyBpbiAkRklMRVMNCmRvDQogIGlmIFsgISAtZSAiL2V0 Yy8kbWtldGMiIC1hICEgLUwgIi9ldGMvJG1rZXRjIiBdDQogIHRoZW4NCiAg ICAjIFdpbmRvd3Mgb25seSB1c2VzIHRoZSBmaXJzdCA4IGNoYXJhY3RlcnMN CiAgICBXRklMRT0iJFdJTkVUQy9gZXhwciBzdWJzdHIgIiRta2V0YyIgMSA4 YCINCiAgICAvYmluL2xuIC1zIC12ICIkV0ZJTEUiICIvZXRjLyRta2V0YyIN CiAgZmkNCmRvbmUNCg0K ---559023410-1804928587-1160705570=:2556 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ---559023410-1804928587-1160705570=:2556--