This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: setup.exe crashs / setup.ini patch for perl


This patch (against cvs) should fix it all.

Index: choose.cc
===================================================================
RCS file: /cvs/src/src/winsup/cinstall/choose.cc,v
retrieving revision 2.47
diff -u -p -r2.47 choose.cc
--- choose.cc 2001/08/05 01:38:46 2.47
+++ choose.cc 2001/09/26 11:38:14
@@ -803,7 +803,10 @@ _view::insert_pkg (Package *pkg)
        /* this should be a generic call to list_sort_cmp */
        if (lines[n].get_category ()
     && cat->name == lines[n].get_category ()->name)
+  {
     insert_under (n, line);
+    n = nlines;
+  }
        n++;
      }
    if (n == nlines)
Index: iniparse.y
===================================================================
RCS file: /cvs/src/src/winsup/cinstall/iniparse.y,v
retrieving revision 2.11
diff -u -p -r2.11 iniparse.y
--- iniparse.y 2001/08/05 01:38:46 2.11
+++ iniparse.y 2001/09/26 11:38:14
@@ -188,6 +188,8 @@ register_category (char *name)
  }
       else
  {
+   tempcat->next = sortcat->next;
+   sortcat->next = tempcat;
    while (sortcat->next &&
    strcasecmp(sortcat->next->name, tempcat->name) < 0)
      {



ChangeLog
Web Sep 26 21:39:00  Robert Collins rbtcollins@hotmail.com

    * choose.cc (_view::insert_pkg): Correctly exit loop.
    * iniparse.y (register_category): Always insert new categories.

Rob
----- Original Message -----
From: "Robert Collins" <robert.collins@itdomain.com.au>
To: <gp@familiehaase.de>; <cygwin-apps@cygwin.com>
Cc: <cygwin-patches@cygwin.com>
Sent: Wednesday, September 26, 2001 9:09 PM
Subject: Re: setup.exe crashs / setup.ini patch for perl


> ----- Original Message -----
> From: "Gerrit P. Haase" <gp@familiehaase.de>
> To: <cygwin-apps@cygwin.com>
> Cc: <cygwin-patches@cygwin.com>
> Sent: Wednesday, September 26, 2001 5:40 PM
> Subject: setup.exe crashs / setup.ini patch for perl
>
>
> > Hi,
> >
> > I will be OOO (out of office:) the next week, unfortunately I will
not
> > be able to do more debugging on setup.exe <-> choose.cc, it just
> starts
> > making fun:)
> >
> > But some hints:
> > ===============
> > The original (CVS) setup.exe crashes only if you have some packages
> with
> > dependencies NOT installed.
>
> Thank you thank you thank you. I can reproduce the fault now.
>
> Rob
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]