delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/03/18/06:08:02

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=ovtbxRwgHJ4bwpM3sirBj0DIEtieq
mMVt1tviqGzurGRUQSNn5H6AdOOeD8msb8N+62zkKzsY4u/u/+vpxy21WKWbL56f
jJxvp3CcYwsw0iz5a+27JHmyPB3otTovlgl/b9P0w3mr/z4tRbHLYJO+xeGaozOZ
HVWdm90EL4/dOo=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=phFC+47BoV1/3wj+it9LtVqdT8U=; b=R7c
t9FsjOeXF3FzzECCYU1hye+3uW0IRma7cuIripA9ed9e5LuW96wJ+cKKWh2ejjU1
fAadLJyi/IVHfjhQ7VK8w5KcIgzF3BZlI88QpI0q8hHoq60LGW9SgYmphoGJTz1e
TXYltVluNr9yFJ2WMqaO617LVO1Y3ErBbk450uTU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-6.6 required=5.0 tests=BAYES_00,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=op's, ages, unzip, 2.10
X-HELO: outmail148161.authsmtp.com
From: David Allsopp <David DOT Allsopp AT cl DOT cam DOT ac DOT uk>
To: Lee <ler762 AT gmail DOT com>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: setup -g ???
Date: Sun, 18 Mar 2018 10:07:45 +0000
Message-ID: <E51C5B015DBD1348A1D85763337FB6D90189B72D75@Remus.metastack.local>
References: <CAD8GWstM+H9_FBFvCF44vv1PMOgndLEgy3GvXon5UDDon9qZ6A AT mail DOT gmail DOT com> <E51C5B015DBD1348A1D85763337FB6D90189B4A99A AT Remus DOT metastack DOT local> <CAD8GWssWPUX7k5mwte5EA3EYqpTRNjBrRCH8moeTvBU7gyRGsA AT mail DOT gmail DOT com>
In-Reply-To: <CAD8GWssWPUX7k5mwte5EA3EYqpTRNjBrRCH8moeTvBU7gyRGsA@mail.gmail.com>
MIME-Version: 1.0
X-Server-Quench: 33c35dc3-2a94-11e8-9f3c-9cb654bb2504
X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse
X-AuthRoute: OCd1ZAARAlZ5RRob BmUtCCtbTh09DhZI RxQKKE1TKxwUVhJU L0JGL0JXPR1GBEcA C3l2ChZLUl1wUXN0 awBRag9ZZgRMXgZ0 UUhMXFBTFhtpABge BBsBU1c1dXw3fyYN A0ZgV3lTXwp7cUN+ RABXFj4FYDMza30d AUlcagJVJQtXd0lG OU12ByELZGFVNHhl R1MlBR1jdS5SNDlN CkQCZQVFFi4I
X-Authentic-SMTP: 61633634383431.1039:706
X-AuthFastPath: 0 (Was 255)
X-AuthSMTP-Origin: 213.105.212.114/25
X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system.
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id w2IA80e3012638

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 AT cygwin DOT 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 


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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019