delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F18AB1B.7020207@gmail.com> |
Date: | Thu, 19 Jan 2012 23:45:31 +0000 |
From: | Dave Korn <dave DOT korn DOT cygwin AT gmail DOT com> |
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
MIME-Version: | 1.0 |
To: | Cygwin Mailing List <cygwin AT cygwin DOT com> |
Subject: | cygport: broken vs. autotools by "set -e" |
X-IsSubscribed: | yes |
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 |
Hi list, I just updated my Cygwin installation for the first time since Oct 26 last year, and now I'm unable to successfully run cygport builds any more. The builds fail because of the spontaneous exiting of one or other of the scripts that cygport invokes - I've had autoconf-2.68 spontaneously exiting during the autoreconf stage, and if I skip over that the configure scripts do the same thing. On closer inspection, it turns out that they were exiting first time they executed subcommands that failed. I added 'set -o' to my cygport script, both inline so it would be executed when the script gets sourced, and inside my override of src_compile so I could see what was happening just before the configure call, and sure enough it showed me that errexit was off at the start of the run but had been set on by the time execution reached src_compile. Commenting-out the "set -e;" line at the start of /usr/bin/cygport has fixed this problem, and my builds now run just fine, but huh? I checked in git; that line has been there since like forever, so why is it giving me trouble now? Is there something I could have changed in my environment or startup scripts that is causing this -e to propagate to subshells that it didn't used to, or did there used to be a mechanism in cygport that would have had the effect of turning it off for subshells that has now been removed for some reason? cheers, DaveK -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |