From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123026 invoked by alias); 16 Apr 2019 09:09:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 122994 invoked by uid 89); 16 Apr 2019 09:09:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-105.4 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*R:U*cygwin, Attached, H*F:D*cygwin.com, explain X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (217.72.192.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Apr 2019 09:09:51 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M9Evp-1hB5AJ0rDT-006RdQ for ; Tue, 16 Apr 2019 11:09:48 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 291A8A80742; Tue, 16 Apr 2019 11:09:47 +0200 (CEST) Date: Tue, 16 Apr 2019 09:09:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Setup.exe: solution to misbehaviour Message-ID: <20190416090947.GM3599@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <550c60bc7704a5955804e38504cbc4f1@xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="924gEkU1VlJlwnwX" Content-Disposition: inline In-Reply-To: <550c60bc7704a5955804e38504cbc4f1@xs4all.nl> User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-04/txt/msg00111.txt.bz2 --924gEkU1VlJlwnwX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1748 On Apr 16 09:19, Houder wrote: > L.S., >=20 > Setup.exe writes "user defaults" to /etc/setup/setup.rc in the root > directory. Among these user defaults (which should override program > defaults) are "last-action" and "last-cache". >=20 > last-cache is an alias for the Local Package Directory (abbreviated > to local directory), the directory where the tarballs (or packages) > will be stored. >=20 > When setup.exe starts, one has to choose between "Download to local > directory", "Install fr. local directory" or "Download end Install". >=20 > As a reminder, setup.exe will show you the "last-action", i.e. what > action was chosen by you when you last invoked setup.exe. >=20 > However "all of the above" is in vain, if setup.exe fails to select > the correct root directory. >=20 > Currently, setup.exe fails to honour the -R option, which one uses > to specify a different location for the root directory. >=20 > setup.exe also fails to look for /etc/setup/setup.rc in the current > directory when setup.exe is started from the root directory. >=20 > I have written about this misbehaviour of setup.exe here: >=20 > https://cygwin.com/ml/cygwin/2019-04/msg00032.html > ( Setup: why consult registry (rootdir) if -R has been specified? ) >=20 > Attached (I hope) to this post you will find a corrected version of > the UserSettings::open_settings() method; it determines the location > of the root directory as follows: Thanks, but the form you chose is not that helpful to discuss a patch. Just send a patch in `git format-patch' style to the cygwin-apps mailing list. Please keep the extensive commenting out of your code and rather explain this in your commit message. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer --924gEkU1VlJlwnwX Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAly1m9sACgkQ9TYGna5E T6DZkg//eCYKkaGzge7p/t/yDYHLlJ+yLf12TV+JJF2zb4P8ak86FYm77Dq7/A0b ydrMbU8+dwI+7nkFJPPmnqQd71/TZRTo+EeYcKTDZPh+zAxdKBHr1dBdgJTDArE0 3nL9gwMadkETwqJyOl+U2uqX5A1DGSyV2BPXex9C94vGAepRjYoAPmQlpYC6ul0N 9YkKrZYffQjaau3g/H4cv4i4NoMC3bDP1onVNSuMV+Fr9zEuKtfhO/HyAx3tI+k6 pEKV0h8wLEX4O5h7jPiqupVeCXi483uFlSKA4WNq99EnZI9G1l1tzEQO7fkbGQIm ZIgJv/0RX58TgBqwnnawlixFVuA4dAQwKnjxlyi2Z/2tz/B0VzKqhoFekPuFDY9S LuKAqzeM31uD+Au7OL20gNQtWFv+hS6ZoWSBPsX7E4oMRqQZytI+MMO3rOZccE/y 3q3Z3Ict8iImkqBGcSLyALuniwnGSR33xM0UfbdiCALPxSTlH1+kJCoShP/gFK9g bXBi87JqQHkHf0lAmH+sEuSlNfzQBBf/FbYkDUdHjDVqBgpJaWeTiGs8uH0E/rci vdqxCvdwQh7zs/nXiyVNlqoLlupAUbQQy7+hF8L12xhHjWrA2WkY2xsk9zJXU3Hg 2ZmLbDZEpluP/FRUlgLVTQalF/2HXlKVYIIgTt5fK3brdiSX5HY= =dgjH -----END PGP SIGNATURE----- --924gEkU1VlJlwnwX--