From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-041.btinternet.com (mailomta28-re.btinternet.com [213.120.69.121]) by sourceware.org (Postfix) with ESMTPS id 3D337385842D for ; Thu, 10 Feb 2022 13:54:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3D337385842D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk Received: from re-prd-rgout-005.btmx-prd.synchronoss.net ([10.2.54.8]) by re-prd-fep-041.btinternet.com with ESMTP id <20220210135408.HZQX24157.re-prd-fep-041.btinternet.com@re-prd-rgout-005.btmx-prd.synchronoss.net>; Thu, 10 Feb 2022 13:54:08 +0000 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 613A9124140BD2ED X-Originating-IP: [86.144.41.66] X-OWM-Source-IP: 86.144.41.66 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvvddriedugdehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepfedvhfdvgfeiieeigfeffeffieefuedtheetlefhhfevieeiudfgudetieehfeehnecuffhomhgrihhnpehsthgrtghkohhvvghrfhhlohifrdgtohhmnecukfhppeekiedrudeggedrgedurdeiieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtfegnpdhinhgvthepkeeirddugeegrdeguddrieeipdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdpnhgspghrtghpthhtohepvddprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhmpdhrtghpthhtohepvhgrnhgurgdrvhhoughkrghmihhlkhgvvhhitghhsehgmhgrihhlrdgtohhm X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.103] (86.144.41.66) by re-prd-rgout-005.btmx-prd.synchronoss.net (5.8.716.04) (authenticated as jonturney@btinternet.com) id 613A9124140BD2ED; Thu, 10 Feb 2022 13:54:08 +0000 Message-ID: <59444fc7-cb7f-4673-3ceb-a55980085e53@dronecode.org.uk> Date: Thu, 10 Feb 2022 13:53:35 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: Switch to a new PC Content-Language: en-GB To: The Cygwin Mailing List , Vanda Vodkamilkevich References: <1c710a38-0f55-e150-ea6d-83ce8de48557@towo.net> <20220209180559.fpct3h75glg4rvuh@lucy.dinwoodie.org> From: Jon Turney In-Reply-To: <20220209180559.fpct3h75glg4rvuh@lucy.dinwoodie.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3570.8 required=5.0 tests=BAYES_00, FORGED_SPF_HELO, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2022 13:54:11 -0000 On 09/02/2022 18:05, Adam Dinwoodie wrote: > On Wed, Feb 09, 2022 at 04:12:28PM +0100, Vanda Vodkamilkevich wrote: >> On Fri, Feb 4, 2022 at 13:12 AM marco.atzeri wrote: >> >>>> I wouldn't expect most tools to work on special files in /dev. Even tar >>>> fails on /proc, it would begin to pack your local registry... >>>> Make a basic installation on the new system, then sync the rest. >>>> An even cleaner way might be to clone your installation via setup, using >>>> /etc/setup/installed.db - maybe someone has a script for that - >>>> and then just sync the /home hierarchy. >>> >>> script I wrote some time ago for re-installation >>> >>> >> https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall/ >>> >>> >> Just for the record: >> I just played with the script provided in stackoverflow which generates a >> bat file, and it seems that the behaviour of the '-P' switch of setup has >> changed because now it explicitely needs the version of the package (at >> least for me it didn't worked without the version number: " -P >> package=version_as_seen_by_cygcheck") . Can someone (probably Jon Turney) >> confirm this usage of the '-P' switch (BTW the mandatory '=' is explained >> nowhere - Nor in 'setup -h' or the setup web pages - and can be seen only >> in the source code). It's not mandatory. If you're looking at the source code, you should see that the case where '=' is not present is also still handled. Yes, it should be documented, but so should the rest of the format of the string which -P accepts... > I don't think this is correct. I use the setup program's -P option > regularly, including with the latest 2.917 release, and it successfully > installs packages. Indeed, I've just tried running it to install > 2048-cli (given it's a package I know I don't have installed) and it > successfully installed the package without specifying a version number. > > Can you give a bit more information about exactly what commands you're > running, what you're expecting to happen, and what precisely happens > instead? Yeah, what he said :) That's not to say that -P isn't picky in the precise format of the package list it accepts (that might have unfortunately changed), and the error reporting when the package list doesn't meet it's expectations is weak, but it works for me, so an instance of a setup invocation which fails because it doesn't contain '=' would be very helpful.