public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: The Cygwin Mailing List <cygwin@cygwin.com>,
	Vanda Vodkamilkevich <vanda.vodkamilkevich@gmail.com>
Subject: Re: Switch to a new PC
Date: Thu, 10 Feb 2022 13:53:35 +0000	[thread overview]
Message-ID: <59444fc7-cb7f-4673-3ceb-a55980085e53@dronecode.org.uk> (raw)
In-Reply-To: <20220209180559.fpct3h75glg4rvuh@lucy.dinwoodie.org>

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.


  reply	other threads:[~2022-02-10 13:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-04 10:09 Vanda Vodkamilkevich
2022-02-04 10:26 ` Russell VT
2022-02-04 10:52   ` Thomas Wolff
2022-02-04 12:11     ` marco atzeri
2022-02-09 15:12       ` Vanda Vodkamilkevich
2022-02-09 18:05         ` Adam Dinwoodie
2022-02-10 13:53           ` Jon Turney [this message]
2022-02-10 14:41             ` Vanda Vodkamilkevich
2022-02-04 17:15   ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59444fc7-cb7f-4673-3ceb-a55980085e53@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin@cygwin.com \
    --cc=vanda.vodkamilkevich@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).