public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* setup -g ???
@ 2018-03-13 15:28 Lee
  2018-03-14 19:08 ` David Allsopp
  0 siblings, 1 reply; 7+ messages in thread
From: Lee @ 2018-03-13 15:28 UTC (permalink / raw)
  To: cygwin

Should we still be using the -g (--upgrade-also) flag on setup?

---------- Forwarded message ----------
From: Jon Turney
Date: Fri, 3 Nov 2017 15:26:27 +0000
Subject: Re: Problem running the latest python2-2.7.14-1 under AppVeyor
To: The Cygwin Mailing List <cygwin@cygwin.com>

On 03/11/2017 14:45, Vadim Zeitlin wrote:
> Our build has started on AppVeyor, a continuous integration provider,
> started failing since a couple of days as a makefile command running a
> Python script started failing with exit code 127 without any more
> information. This is a strange situation as I can't reproduce the problem
> locally, but something definitely seems to be wrong with this package on
> the AppVeyor machine as Python just doesn't seem to be executable, e.g. the
> output of these commands in our batch file driving the build:

Perhaps you need to provide the -g (--upgrade-also) flag to cygwin's setup.

Due to setup terribleness, without this flag, it will install the
requested packages, and any missing dependencies of them, but not
upgrade any of the dependencies which are already installed to the
current (and perhaps needed) version...

See also [1].

[1] https://sourceware.org/ml/cygwin/2017-03/msg00365.html


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: setup -g ???
  2018-03-13 15:28 setup -g ??? Lee
@ 2018-03-14 19:08 ` David Allsopp
  2018-03-17 22:51   ` Lee
  2018-03-22 23:10   ` Jon Turney
  0 siblings, 2 replies; 7+ messages in thread
From: David Allsopp @ 2018-03-14 19:08 UTC (permalink / raw)
  To: Lee, cygwin

[reformatted for top-posting]

Lee wrote:
> > ---------- Forwarded message ----------
> > From: Jon Turney
> > Date: Fri, 3 Nov 2017 15:26:27 +0000
> > Subject: Re: Problem running the latest python2-2.7.14-1 under AppVeyor
> > To: The Cygwin Mailing List <cygwin@cygwin.com>
> > 
> > On 03/11/2017 14:45, Vadim Zeitlin wrote:
> > > Our build has started on AppVeyor, a continuous integration provider,
> > > started failing since a couple of days as a makefile command running a
> > > Python script started failing with exit code 127 without any more
> > > information. This is a strange situation as I can't reproduce the
> > > problem locally, but something definitely seems to be wrong with this
> > > package on the AppVeyor machine as Python just doesn't seem to be
> > > executable, e.g. the output of these commands in our batch file
> > driving the build:
> > 
> > Perhaps you need to provide the -g (--upgrade-also) flag to cygwin's
> > setup.
> > 
> > Due to setup terribleness, without this flag, it will install the
> > requested packages, and any missing dependencies of them, but not
> > upgrade any of the dependencies which are already installed to the
> > current (and perhaps needed) version...
> > 
> > See also [1].
> > 
> > [1] https://sourceware.org/ml/cygwin/2017-03/msg00365.html
>
> Should we still be using the -g (--upgrade-also) flag on setup?

I believe so (or at least hope so). I think it's the case that setup should now know to upgrade a dependency if you install a new package which requires a newer version of it, but I hope that's not become the same as setup effectively acting with --upgrade-also every time you run it (that would be a real nuisance, unless the entire Cygwin package universe is going to be recompiled on every new Cygwin release).


David

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: setup -g ???
  2018-03-14 19:08 ` David Allsopp
@ 2018-03-17 22:51   ` Lee
  2018-03-18 13:52     ` David Allsopp
  2018-03-22 23:10   ` Jon Turney
  1 sibling, 1 reply; 7+ messages in thread
From: Lee @ 2018-03-17 22:51 UTC (permalink / raw)
  To: cygwin

On 3/14/18, David Allsopp wrote:
> [reformatted for top-posting]
>
> Lee wrote:
>> > ---------- Forwarded message ----------
>> > From: Jon Turney
>> > Date: Fri, 3 Nov 2017 15:26:27 +0000
>> > Subject: Re: Problem running the latest python2-2.7.14-1 under AppVeyor
>> > To: The Cygwin Mailing List <cygwin@cygwin.com>
>> >
>> > On 03/11/2017 14:45, Vadim Zeitlin wrote:
>> > > Our build has started on AppVeyor, a continuous integration provider,
>> > > started failing since a couple of days as a makefile command running
>> > > a
>> > > Python script started failing with exit code 127 without any more
>> > > information. This is a strange situation as I can't reproduce the
>> > > problem locally, but something definitely seems to be wrong with this
>> > > package on the AppVeyor machine as Python just doesn't seem to be
>> > > executable, e.g. the output of these commands in our batch file
>> > driving the build:
>> >
>> > Perhaps you need to provide the -g (--upgrade-also) flag to cygwin's
>> > setup.
>> >
>> > Due to setup terribleness, without this flag, it will install the
>> > requested packages, and any missing dependencies of them, but not
>> > upgrade any of the dependencies which are already installed to the
>> > current (and perhaps needed) version...
>> >
>> > See also [1].
>> >
>> > [1] https://sourceware.org/ml/cygwin/2017-03/msg00365.html
>>
>> Should we still be using the -g (--upgrade-also) flag on setup?
>
> I believe so (or at least hope so).

So if I run setup and it says there are no pending updates it might be
lying to me?

I need to run setup -g and only then if there are no pending updates
do I know that my cygwin installation is up to date?

Thanks,
Lee

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: setup -g ???
  2018-03-17 22:51   ` Lee
@ 2018-03-18 13:52     ` David Allsopp
  2018-03-18 18:23       ` Lee
  0 siblings, 1 reply; 7+ messages in thread
From: David Allsopp @ 2018-03-18 13:52 UTC (permalink / raw)
  To: Lee, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 4654 bytes --]

Lee wrote:
> On 3/14/18, David Allsopp wrote:
> > [reformatted for top-posting]
> >
> > Lee wrote:
> >> > ---------- Forwarded message ----------
> >> > From: Jon Turney
> >> > Date: Fri, 3 Nov 2017 15:26:27 +0000
> >> > Subject: Re: Problem running the latest python2-2.7.14-1 under
> >> > AppVeyor
> >> > To: The Cygwin Mailing List <cygwin@cygwin.com>
> >> >
> >> > On 03/11/2017 14:45, Vadim Zeitlin wrote:
> >> > > Our build has started on AppVeyor, a continuous integration
> >> > > provider, started failing since a couple of days as a makefile
> >> > > command running a Python script started failing with exit code
> >> > > 127 without any more information. This is a strange situation as
> >> > > I can't reproduce the problem locally, but something definitely
> >> > > seems to be wrong with this package on the AppVeyor machine as
> >> > > Python just doesn't seem to be executable, e.g. the output of
> >> > > these commands in our batch file
> >> > driving the build:
> >> >
> >> > Perhaps you need to provide the -g (--upgrade-also) flag to
> >> > cygwin's setup.
> >> >
> >> > Due to setup terribleness, without this flag, it will install the
> >> > requested packages, and any missing dependencies of them, but not
> >> > upgrade any of the dependencies which are already installed to the
> >> > current (and perhaps needed) version...
> >> >
> >> > See also [1].
> >> >
> >> > [1] https://sourceware.org/ml/cygwin/2017-03/msg00365.html
> >>
> >> Should we still be using the -g (--upgrade-also) flag on setup?
> >
> > I believe so (or at least hope so).
> 
> So if I run setup and it says there are no pending updates it might be
> lying to me?
> 
> I need to run setup -g and only then if there are no pending updates do
> I know that my cygwin installation is up to date?

No - the original question here was about running setup with a command line and the --packages argument. If you run setup interactively (with no arguments), you should be told if any packages need upgrading, just as before, without needing -g.

My assumption is that the new dependency solver means that installing a package with --packages should install that and upgrade *only* required dependencies, not the entire system. The OP's issue here with AppVeyor is one I see too, because the AppVeyor team are relatively slow to update the Cygwin installation in their images (that's their call, of course).

However, I workaround that using a script which installs required packages and then tests a known command from the package with --version - if I get a non-zero exit code, then I know that the package probably depends on a newer Cygwin DLL and the whole system needs upgrading. For example, quoting https://ci.appveyor.com/project/dra27/opam/build/1.0.210/job/21p7e382hp3q9lh7#L11:

 > Cygwin package patch will be installed
 > Cygwin package unzip will be installed
 > Cygwin package vim will be installed
 > Cygwin package flexdll will be installed
<< at this point, the script will have run setup with --packages=patch,unzip,vim,flexdll >>
 > Cygwin Package Information
 > Package              Version
 > curl                 7.56.1-1
 > cygwin               2.9.0-3
 > diffutils            3.5-2
 > flexdll              0.35-2
 > gcc-g++              6.4.0-4
 > make                 4.2.1-2
 > patch                2.7.4-1
 > tar                  1.29-1
 > unzip                6.0-17
 > vim                  8.0.1567-1
 > Cygwin package upgrade required - please go and drink coffee
<< at this point, the script runs setup a second time with --upgrade-also >>
 > Cygwin Package Information
 > Package              Version
 > curl                 7.56.1-1
 > cygwin               2.10.0-1
 > diffutils            3.5-2
 > flexdll              0.35-2
 > gcc-g++              6.4.0-5
 > make                 4.2.1-2
 > patch                2.7.4-1
 > tar                  1.29-1
 > unzip                6.0-17
 > vim                  8.0.1567-1

This build was on March 11th, and the problem package was Vim - the patch, unzip and flexdll packages hadn't been recompiled against Cygwin 2.10 and so could be installed without a full package upgrade. You can see from my message about coffee why I'd care if -g had become the default, because it takes ages to run (obviously), and I don't want my CI slowed down unnecessarily...


David 

\0ТÒÐÐ¥\a&ö&ÆVÒ\a&W\x06÷'G3¢\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒ÷\a&ö&ÆV×2æ‡FÖÀФd\x15\x13¢\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöf\x17\x12ðФFö7VÖVçF\x17F–öã¢\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R\x06–æfó¢\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×\x06ÆPРÐ

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: setup -g ???
  2018-03-18 13:52     ` David Allsopp
@ 2018-03-18 18:23       ` Lee
  2018-03-19 13:32         ` David Allsopp
  0 siblings, 1 reply; 7+ messages in thread
From: Lee @ 2018-03-18 18:23 UTC (permalink / raw)
  To: cygwin

On 3/18/18, David Allsopp   wrote:
> Lee wrote:
>> On 3/14/18, David Allsopp wrote:
>> > [reformatted for top-posting]
>> >
>> > Lee wrote:
>> >> > ---------- Forwarded message ----------
>> >> > From: Jon Turney
>> >> > Date: Fri, 3 Nov 2017 15:26:27 +0000
>> >> > Subject: Re: Problem running the latest python2-2.7.14-1 under
>> >> > AppVeyor
>> >> > To: The Cygwin Mailing List <cygwin@cygwin.com>
>> >> >
>> >> > On 03/11/2017 14:45, Vadim Zeitlin wrote:
>> >> > > Our build has started on AppVeyor, a continuous integration
>> >> > > provider, started failing since a couple of days as a makefile
>> >> > > command running a Python script started failing with exit code
>> >> > > 127 without any more information. This is a strange situation as
>> >> > > I can't reproduce the problem locally, but something definitely
>> >> > > seems to be wrong with this package on the AppVeyor machine as
>> >> > > Python just doesn't seem to be executable, e.g. the output of
>> >> > > these commands in our batch file
>> >> > driving the build:
>> >> >
>> >> > Perhaps you need to provide the -g (--upgrade-also) flag to
>> >> > cygwin's setup.
>> >> >
>> >> > Due to setup terribleness, without this flag, it will install the
>> >> > requested packages, and any missing dependencies of them, but not
>> >> > upgrade any of the dependencies which are already installed to the
>> >> > current (and perhaps needed) version...
>> >> >
>> >> > See also [1].
>> >> >
>> >> > [1] https://sourceware.org/ml/cygwin/2017-03/msg00365.html
>> >>
>> >> Should we still be using the -g (--upgrade-also) flag on setup?
>> >
>> > I believe so (or at least hope so).
>>
>> So if I run setup and it says there are no pending updates it might be
>> lying to me?
>>
>> I need to run setup -g and only then if there are no pending updates do
>> I know that my cygwin installation is up to date?
>
> No - the original question here was about running setup with a command line
> and the --packages argument. If you run setup interactively (with no
> arguments), you should be told if any packages need upgrading, just as
> before, without needing -g.

When I saw the msg about
> Perhaps you need to provide the -g (--upgrade-also) flag
I tried running setup & got a short list of updates.  Applied the
updates and ran setup again.. and had no pending updates listed as
expected.  Then I ran setup -g and a few libXXX things were listed as
pending :(

Maybe I got lucky & the lib<whatevers> showed up at the mirror I was
using just after running setup the second time??  dunno, but
unless/until I can duplicate setup not showing any pending updates &
setup -g saying there are pending updates, maybe we should just write
it off as a one time occurrence.

Thanks,
Lee

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: setup -g ???
  2018-03-18 18:23       ` Lee
@ 2018-03-19 13:32         ` David Allsopp
  0 siblings, 0 replies; 7+ messages in thread
From: David Allsopp @ 2018-03-19 13:32 UTC (permalink / raw)
  To: Lee, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 3938 bytes --]

Lee wrote:
> On 3/18/18, David Allsopp   wrote:
> > Lee wrote:
> >> On 3/14/18, David Allsopp wrote:
> >> > [reformatted for top-posting]
> >> >
> >> > Lee wrote:
> >> >> > ---------- Forwarded message ----------
> >> >> > From: Jon Turney
> >> >> > Date: Fri, 3 Nov 2017 15:26:27 +0000
> >> >> > Subject: Re: Problem running the latest python2-2.7.14-1 under
> >> >> > AppVeyor
> >> >> > To: The Cygwin Mailing List <cygwin@cygwin.com>
> >> >> >
> >> >> > On 03/11/2017 14:45, Vadim Zeitlin wrote:
> >> >> > > Our build has started on AppVeyor, a continuous integration
> >> >> > > provider, started failing since a couple of days as a makefile
> >> >> > > command running a Python script started failing with exit code
> >> >> > > 127 without any more information. This is a strange situation
> >> >> > > as I can't reproduce the problem locally, but something
> >> >> > > definitely seems to be wrong with this package on the AppVeyor
> >> >> > > machine as Python just doesn't seem to be executable, e.g. the
> >> >> > > output of these commands in our batch file
> >> >> > driving the build:
> >> >> >
> >> >> > Perhaps you need to provide the -g (--upgrade-also) flag to
> >> >> > cygwin's setup.
> >> >> >
> >> >> > Due to setup terribleness, without this flag, it will install
> >> >> > the requested packages, and any missing dependencies of them,
> >> >> > but not upgrade any of the dependencies which are already
> >> >> > installed to the current (and perhaps needed) version...
> >> >> >
> >> >> > See also [1].
> >> >> >
> >> >> > [1] https://sourceware.org/ml/cygwin/2017-03/msg00365.html
> >> >>
> >> >> Should we still be using the -g (--upgrade-also) flag on setup?
> >> >
> >> > I believe so (or at least hope so).
> >>
> >> So if I run setup and it says there are no pending updates it might
> >> be lying to me?
> >>
> >> I need to run setup -g and only then if there are no pending updates
> >> do I know that my cygwin installation is up to date?
> >
> > No - the original question here was about running setup with a command
> > line and the --packages argument. If you run setup interactively (with
> > no arguments), you should be told if any packages need upgrading, just
> > as before, without needing -g.
> 
> When I saw the msg about
> > Perhaps you need to provide the -g (--upgrade-also) flag
> I tried running setup & got a short list of updates.  Applied the
> updates and ran setup again.. and had no pending updates listed as
> expected.  Then I ran setup -g and a few libXXX things were listed as
> pending :(
> 
> Maybe I got lucky & the lib<whatevers> showed up at the mirror I was
> using just after running setup the second time??  dunno, but
> unless/until I can duplicate setup not showing any pending updates &
> setup -g saying there are pending updates, maybe we should just write it
> off as a one time occurrence.

It's possible that it was simply a mirror update - there are two ways to tell, if you see it again (or if you can remember what the actual packages were and the date you did it). One is to look in the history of this mailing list and see if there was an announce of a package update on or around the time you did the update. The other is to browse a mirror directly (e.g. https://mirrorservice.org/sites/sourceware.org/pub/cygwin/) and look at the timestamps of the files for the new package which appeared.

The third way, if it really worries you, is to use a private mirror (either via rsync or using Cygwin setup's "Download" option - though over the years I've found the latter remarkably unreliable) which allows completely repeatable installations.

HTH,


David 

\x03B‹KCB”\x1c›Ø›\x19[H\x1c™\^[ܝ\x1cΈ\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÜ\x1c›Ø›\x19[\Ëš\x1d^[[\x03B‘TNˆ\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ˜\KÃB‘^[ØÝ[Y[\x18]\x1a[ÛŽˆ\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ^[ØÜËš\x1d^[[\x03B•[œÝXœØÜšX™H\x1a[™›Îˆ\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÛ[\vÈÝ[œÝXœØÜšX™K\Ú[\^[\x19CBƒB

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: setup -g ???
  2018-03-14 19:08 ` David Allsopp
  2018-03-17 22:51   ` Lee
@ 2018-03-22 23:10   ` Jon Turney
  1 sibling, 0 replies; 7+ messages in thread
From: Jon Turney @ 2018-03-22 23:10 UTC (permalink / raw)
  To: The Cygwin Mailing List

On 14/03/2018 15:26, David Allsopp wrote:
> [reformatted for top-posting]
> 
> Lee wrote:
>>> ---------- Forwarded message ----------
>>> From: Jon Turney
>>> Date: Fri, 3 Nov 2017 15:26:27 +0000
>>> Subject: Re: Problem running the latest python2-2.7.14-1 under AppVeyor
>>> To: The Cygwin Mailing List <cygwin@cygwin.com>
>>>
>>> On 03/11/2017 14:45, Vadim Zeitlin wrote:
>>>> Our build has started on AppVeyor, a continuous integration provider,
>>>> started failing since a couple of days as a makefile command running a
>>>> Python script started failing with exit code 127 without any more
>>>> information. This is a strange situation as I can't reproduce the
>>>> problem locally, but something definitely seems to be wrong with this
>>>> package on the AppVeyor machine as Python just doesn't seem to be
>>>> executable, e.g. the output of these commands in our batch file
>>> driving the build:
>>>
>>> Perhaps you need to provide the -g (--upgrade-also) flag to cygwin's
>>> setup.
>>>
>>> Due to setup terribleness, without this flag, it will install the
>>> requested packages, and any missing dependencies of them, but not
>>> upgrade any of the dependencies which are already installed to the
>>> current (and perhaps needed) version...
>>>
>>> See also [1].
>>>
>>> [1] https://sourceware.org/ml/cygwin/2017-03/msg00365.html
>>
>> Should we still be using the -g (--upgrade-also) flag on setup?
> 
> I believe so (or at least hope so). I think it's the case that setup should now know to upgrade a dependency if you install a new package which requires a newer version of it, but I hope that's not become the same as setup effectively acting with --upgrade-also every time you run it (that would be a real nuisance, unless the entire Cygwin package universe is going to be recompiled on every new Cygwin release).

This is basically correct.

setup is now capable of being told about dependencies where upgrading an 
already installed package is required, but this information isn't 
currently collected

(For example, some packages now exist (e.g. vim [1]), which were built 
with gcc 6.4.0-5 and cygport 0.31.0-1.  These packages almost certainly 
use ssp/fortify functions in the cygwin DLL, and so require a cygwin 
package >=2.10.0-1 (technically, the requirement is cygwin API >=0.320), 
but the dependency recorded is only on the cygwin package at any version)

That's something someone could usefully work on, if they were so inclined.

So, yes, if you are using --packages, you should continue to use -g 
(unless you know what you are doing and/or like to live dangerously)

[1] https://cygwin.com/ml/cygwin/2018-03/msg00176.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-03-22 22:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-13 15:28 setup -g ??? Lee
2018-03-14 19:08 ` David Allsopp
2018-03-17 22:51   ` Lee
2018-03-18 13:52     ` David Allsopp
2018-03-18 18:23       ` Lee
2018-03-19 13:32         ` David Allsopp
2018-03-22 23:10   ` Jon Turney

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).