From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96299 invoked by alias); 18 Oct 2015 15:38:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 96291 invoked by uid 89); 18 Oct 2015 15:38:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: limerock01.mail.cornell.edu Received: from limerock01.mail.cornell.edu (HELO limerock01.mail.cornell.edu) (128.84.13.241) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 18 Oct 2015 15:38:07 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id t9IFc5s9009996 for ; Sun, 18 Oct 2015 11:38:05 -0400 Received: from [192.168.1.7] (cpe-67-249-176-138.twcny.res.rr.com [67.249.176.138]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id t9IFc4AA032597 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 18 Oct 2015 11:38:05 -0400 Subject: Re: Error Installing Cygwin (setup-x86_64.exe & setup-x86) - No setup.ini.sig found. To: cygwin@cygwin.com References: <8737xawn6j.fsf@Rainer.invalid> <56216C25.6090104@cornell.edu> <878u72eyy2.fsf@Rainer.invalid> <56223B5E.50309@cornell.edu> <5622BA2F.7040205@tiscali.co.uk> <87mvvg2ya8.fsf@Rainer.invalid> <56239C46.2040708@cornell.edu> <87a8rg2tni.fsf@Rainer.invalid> <5623A2E0.9070800@cornell.edu> From: Ken Brown Message-ID: <5623BCDB.50502@cornell.edu> Date: Sun, 18 Oct 2015 15:38:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5623A2E0.9070800@cornell.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00284.txt.bz2 On 10/18/2015 9:47 AM, Ken Brown wrote: > On 10/18/2015 9:28 AM, Achim Gratz wrote: >> Ken Brown writes: >>> Are you saying you've never tested local installs without the -m >>> switch? >> >> No, I'm saying that the "-m" switch should reduce the possibility of >> setup doing something unwanted, because it eliminates the possibility of >> it switching into ad-hoc mode (where it searches the subdirs for >> setup.ini and package files to full depth). >> >>> If so, that explains why you haven't been able to reproduce >>> the problems that several of us have reported. I just verified that >>> setup does indeed correctly descend into subdirectories with the -m >>> switch. >> >> That still doesn't tell me what about your mirror directories triggers >> it to not use local mirror mode when not using that switch. If the >> directory structure is correct that is in theory impossible since it >> tries mirror mode first and only if it doesn't find a useable setup file >> that way would it fall back to ad-hoc mode. Please run the commands in >> my other replay to David Stacey and tell me the result. > > $ find -mindepth 1 -maxdepth 1 -name $arch | \ > > xargs -I: sh -c 'for f in :/setup.{xz,bz2,ini}; \ > > do [ -e $f ] && { echo $f ; break; } done' && \ > > find -mindepth 2 -maxdepth 2 -name $arch | \ > > xargs -I: sh -c 'for f in :/setup.{xz,bz2,ini}; \ > > do [ -e $f ] && { echo $f ; break; } done' > ./http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin%2f/x86/setup.ini > ./http%3a%2f%2fsanibeltranquility.com%2fcygwin%2f/x86/setup.ini > ./myrepo/x86/setup.xz Just for the record, I did a git bisection, showing (unsurprisingly) that the first bad commit is one of the following two: commit 18837afa64984e98476401e99dcd772970cf9736 Author: Achim Gratz Date: Sat Jul 11 21:58:30 2015 +0200 Refactor setup search and implement XZ compressed setup files * ini.cc: Construct setup_ext_list from array until we can use C++11 aggregate initializers. Clean up function parenthesis. (decompress_ini): Refactored for use from do_local_ini and do_remote_ini. Change outdated comment about setup.ini uncompressed size. (check_ini_sig): Factor out signature check. (fetch_remote_ini): Refactored for use from do_remote_ini. (do_local_ini): Iterate over search results in found_ini_list. Use decompress_ini and check_ini_sig. (do_remote_ini): Iterate over known setup file extensions from setup_ext_list with early-out semantics, preferring ".xz" over ".bz2" over ".ini" extension. Use fetch_remote_ini and check_ini_sig. * ini.h: Remove unused macros. * IniParseFindVisitor.cc: Remove, the search is already done by SetupFindVisitor in do_from_local_dir. * IniParseFindVisitor.cc: Ditto. * Makefile.am (@SETUP@_SOURCES): Ditto. commit 35addac4a65a1d70ab02b8d175f71efa83cf74ba Author: Achim Gratz Date: Wed Jul 1 21:36:12 2015 +0200 Correct local directory search * fromcwd.cc: Remove unused includes. Add global found_ini_list to record the search result. (SetupFindVisitor): Make setup.{ini,bz2,xz} known and provide bool private variables to record whether we found them. Another bool inidir to indicate whether we are currently inside a directory where setup.ini files should exist. (SetupFindVisitor::visitFile): When inidir is true, check if a setup file with one of the known extensions was found and set the corresponding bool variables. (SetupFindVisitor::visitDirectory): Set inidir when appropriate. Recurse into directories only if they are potential mirror dirs, based on level. Truncate search and recurse into inidir. Record any setup files in found_ini_list while preferring ".xz" over ".bz2" over ".ini" extension. (SetupFindVisitor::operator bool): Return true when found_ini_list is non-empty. (do_from_local_dir): Restrict search to either a single mirror hierarchy or multiple mirror hierarchy; setup files directly in local directory or mixed hierarchies are no longer recognized. The setup files must be present in an architecture dependent directory of "x86/" or "x86_64/", either in the local directory for single mirror or one level down for multiple mirrors. This patch already finds setup.xz files, but the code to deal with them will be in a later patch. The current code re-does the search and ignores the results from here. setup didn't build after 35addac, so I can't pin it down further. Unfortunately, those two commits seem to involve fairly substantial changes. As test case for the bisection, I used step 4 of the recipe I posted in https://www.cygwin.com/ml/cygwin/2015-10/msg00267.html. Ken -- 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