X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=eM3PHIYGOS18zdB2LNI3NdNv7qalVoYtyByp1crQqHe/XB4M2oRXS RL2xzwTj4DTvcjjh+SNrf+LVbUZtJU1/xT7sDiGiVyWjzLfYMnWjxNYVtCE8AHQy V4UmryzqYp4JCV9fk4k+A9PS6XRHW0X5KbtrqKb1o/SfrDRK26f85k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=szQjoYV7z59yxivD/KamHt9qbkk=; b=NQ75SeNMGX6fPiaQn9yi00qKCIIj fg0axZBR0X52YpEQnr0XzPwi9iJvj5EvINlarByN3DfdixWkd3LlmuizCQefq1ax 73SWq1lnzqSLUiA1ziUXfcXYNmBxOyDBXRDVIzpOOPoY1Ew/jm9Aiw8F8zD19VSC 0PRSiABYkCMZRyE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Sun, 6 Dec 2015 15:10:54 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Ability to specify /cygdrive mount value in setup Message-ID: <20151206141054.GC17433@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20151125140420 DOT 12415 AT web008 DOT roc2 DOT bluetie DOT com> <1447966985 DOT 20151125232513 AT yandex DOT ru> <56562105 DOT 5040500 AT gmail DOT com> <6CF2FC1279D0844C9357664DC5A08BA21BC3C3B8 AT msgb09 DOT nih DOT gov> <20151126134221 DOT GN2755 AT calimero DOT vinschen DOT de> <87mvtnucw6 DOT fsf AT Rainer DOT invalid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="da4uJneut+ArUgXk" Content-Disposition: inline In-Reply-To: <87mvtnucw6.fsf@Rainer.invalid> User-Agent: Mutt/1.5.23 (2014-03-12) --da4uJneut+ArUgXk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 6 10:47, Achim Gratz wrote: > Corinna Vinschen writes: > > The right thing to do is to change the base-files package to utilize > > /proc/cygdrive. It's a vrtual symlink pointing to the actual cygdrive > > prefix currently in use. If these symlinks under /etc used the > > /proc/cygdrive symlink, they would work all the time, independenly of > > the actual cygdrive prefix. >=20 > I've looked into it and I'd like to give that task back to the cygpath > maintainer. :-) >=20 > > Achim, any chance to tweak base-file accordingly? >=20 > At the moment I'm using $(/usr/bin/cygpath -S -u) to get the system > directory. Since the /cygdrive prefix could be anything, I'd either > have to first figure it out via $(dirname $(/usr/bin/cygpath -u C:)) > since the output from mount is a bit unwieldy. Maybe we should just > force the cygdrive prefix to be /cygdrive for postinstall scripts > anyway. No offense, but you didn't understand what I mean, it seems. Don't call cygpath. Just use /proc/cygdrive directly. It's that simple. While the cygdrive prefix changes, /proc/cygdrive will *never* change. E.g. Substitute $(dirname $(/usr/bin/cygpath -u C:)) with /proc/cygdrive/c Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --da4uJneut+ArUgXk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWZEHuAAoJEPU2Bp2uRE+gLuAP/3kRCcpzAfovY/MwytHQjQXh sECvSFEdVy8Qnu5hYZgtaUgmumKx8IZYMfxw+9Y4V8vPg4QA4prgHvXDsGsFa3kP qC6CGpYy24m5eD3CK0AXrhdTdZi/O0HU20BXlZqsA+60r/AROYhvBespGe6Nj9Nw iMJfVVeKLEPWoNFDKXaUFybEAGQhmOmQN5T2P9K6Tq/KKyGKNhsV4pPIyN9SnPgq P3NvWQMPpYWMBLi2r13mkNOg03O9iex6XgImVkhvZyvPjfWsZ9dr7/pXGixXrROa l2eP1jSR5VimZ8/jG360e7+Yd0hWAtp7C6Jzm5ZUX+JRdGdqQJ0VGtZzSeOAk1w3 Uc0SDzQdwODYshSd4Qj1Mzfz6qBvWIxBuvyVeotjcaVHMEcWL2xNRXNEICWDFtnW cXvIqepLNKoVsFcnuTskU20fPocTe/bQ8dhqSyBxMRBOp/bmFfhRVmxD8Rdm6ihZ 2zVFMjKi4tYwVVNGyjH7FAm0DtYp7fStPrTrW6vDtcrFK3f1bJhPTcN7eCzwtGyW T29frCpkVGchCU56AouSvco/f9j7A2/D31oEOO/a+SJkZP7SOKjfey4fu5rpyEAH osZuSkC/YBuS8xOrl2X7nyKbyXu0mCso48zYSjzm6XjkQo9Lz4zodBTc3IdAA4+O ivru9nkvQIkQzxQHIL0w =yZnH -----END PGP SIGNATURE----- --da4uJneut+ArUgXk--