X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_CG X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Sam Nelson Subject: Re: Something breaks unattended setup: think it's just version no / filename of latest gt5 release Date: Tue, 30 Oct 2012 00:19:55 +0000 (UTC) Lines: 76 Message-ID: References: <508D1C09 DOT 3000905 AT bonhard DOT uklinux DOT net> <20121028145437 DOT GB26905 AT ednor DOT casa DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Christopher Faylor cygwin.com> writes: > > On Sun, Oct 28, 2012 at 11:50:33AM +0000, Fergus wrote: > >Larry Hall (Cygwin) - Re: Cygwin 1.7.17 breaks unattended setup >> .. > >one could then narrow in on the package that's causing > > >> unattended mode to fail. > > > > > Assuming that's true, why is there still a "Cygwin 1.7.17" > > > in the subject? > > > >Sorry, just inherited that subject line. Now changed. Quick repeat: > >It's the @gt5 paragraph in setup.ini (I think). > >It certainly breaks the build process for me. > >Suspect it's the ~ in the filename. > >It is indeed the only occurrence of that punctuation under release/: > >version: 1.5.0~20111220+bzr29-1 > >install: release/gt5/gt5-1.5.0~20111220+bzr29-1.tar.bz2 17876 > >5665c1607f2b958b7edfa271b4d20aae > >source: release/gt5/gt5-1.5.0~20111220+bzr29-1-src.tar.bz2 105709 > >1f1ae1e59bf68448216800a4e2938ca0 > > I don't see anything in the setup.exe source code which would break > because there was a '~' in the filename. It just assigns the version > as the string between the first dash and the last without caring > about what's in between. > > cgf > > Hello, I was running into a identical issue today with the unattended install. I tried looking in the log files but they did not indicate specifically what was causing the failure. I was able to successfully complete an install if I removed the (-g) unattended install option and selected the default choices through the setup.exe GUI. On a hunch, I turned on the (-M) "Semi-attended chooser-only mode" option to see if there was some sort of unreported package conflict causing the issue. I was specifying the following packages for install on the command line (-P): openssh,vim,wget,curl,netcat,rsync,bc,colordiff,file,patch,binutils I found on the package selection screen that "netcat" was obsolete. After changing to the new package name "nc", the unattended install completed successfully. Here's an untested patch which should log this condition and would help troubleshoot this issue in the future. There is probably a better way to do this but you get the point :). diff --git old/choose.cc new/choose.cc index cf917cd..7e00121 100644 --- old/choose.cc +++ new/choose.cc @@ -256,7 +256,11 @@ ChooserPage::OnInit () i != db.packages.end (); ++i) { packagemeta & pkg = *(i->second); - if (pkg.installed) + if (isObsolete(pkg.categories)) + { + log (LOG_BABBLE) << "ERROR, Obsolete package: " << pkg.name << endLog; + } + else if (pkg.installed) { pkg.desired = pkg.installed; } Best regards, Sam -- 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