ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/09/23/19:48:15

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Organization: Esse keine toten Tiere
To: cygwin-apps AT cygwin DOT com
Date: Mon, 24 Sep 2001 01:44:24 +0200
MIME-Version: 1.0
Subject: Re: new 'temp' directory in CVS cinstall contains dependency WIP
Reply-to: gp AT familiehaase DOT de
Message-ID: <3BAE8FF8.676.4476F406@localhost>
In-reply-to: <20010919225819.A26863@redhat.com>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)
X-Hops: 1
X-Sender: 320081107336-0001 AT t-dialin DOT net

Christopher Faylor schrieb am 2001-09-19, 22:58:

>"rh" is a perl script.  If you say "rh -d setup.ini.base > setup.ini"
>it will create a setup.ini that is loosely based on debian categories
>and descriptions.  setup.ini.base is any setup.ini created by DJ's
>update-setup script.  I've recently posted a pointer to this script.
>
>Without the "-d" the rh output is based on Red Hat's rpms.  You do need
>to have all of the packages on your system that are in the cygwin
>release to use this, though.

I have no rpm installed.  Is there a current version somewhere available?
But I think, it should not try to access rpm database, if i call it
with -d option for 'debianish'

$ ./rh -d setup.ini.base > setup.ini
rpmQuery: rpmdbOpen() failed
cannot open file /var/lib/rpm/nameindex.rpm: No such file or directory
rpmQuery: rpmdbOpen() failed
cannot open file /var/lib/rpm/nameindex.rpm: No such file or directory
rpmQuery: rpmdbOpen() failed
cannot open file /var/lib/rpm/nameindex.rpm: No such file or directory
rpmQuery: rpmdbOpen() failed
cannot open file /var/lib/rpm/nameindex.rpm: No such file or directory
rpmQuery: rpmdbOpen() failed
cannot open file /var/lib/rpm/nameindex.rpm: No such file or directory
rpmQuery: rpmdbOpen() failed
cannot open file /var/lib/rpm/nameindex.rpm: No such file or directory
rpmQuery: rpmdbOpen() failed
cannot open file /var/lib/rpm/nameindex.rpm: No such file or directory
rpmQuery: rpmdbOpen() failed
cannot open file /var/lib/rpm/nameindex.rpm: No such file or directory
rpmQuery: rpmdbOpen() failed

>setup.ini.base is the current setup.ini.
>setup.ini.rpm is the rpm version of setup.ini with dependencies,
>categories, and descriptions.
>setup.ini is the debian version.

Most category names are short (which is good), but one is:
'System Environments / Libraries' which is long (bad).

If I activate the 'Full view', there are more categories now
as in 'category view'. The packages which are not listed in
the 'category view' are only listed in 'Full view'.

The bug:
========
(gdb) run
Starting program: /cygdrive/d/ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/mirrors/cygnus/setup.exe
warning: LOG: 2 2001/09/23 21:52:50 Starting cygwin install, version 2.98
warning: LOG: 0 Current Directory: d:\
warning: LOG: 0 source: from cwd
warning: LOG: 0 Selected local directory: D:\ftp.uni-erlangen.de\pub\pc\gnuwin32\cygwin\mirrors\cygnus
warning: LOG: 0 mbox yesno: Warning: we recommend you do NOT use the root of your hard drive as the cygwin root.
  Proceed anyway?
warning: LOG: 0 root: H:\ binary system
warning: LOG: 1 get_url_to_string ./setup.ini
warning: setup_version is 2.78.2.9, our_version is 2.98

Program received signal SIGSEGV, Segmentation fault.
strcasecmp (sz1=0x563cf0 "ash", sz2=0x563cf0 "ash")
    at ../../../../winsup/winsup/mingw/string_old.c:33
33      ../../../../winsup/winsup/mingw/string_old.c: No such file or directory.
        in ../../../../winsup/winsup/mingw/string_old.c
(gdb) finish
Run till exit from #0  strcasecmp (sz1=0x563cf0 "ash", sz2=0x563cf0 "ash")
    at ../../../../winsup/winsup/mingw/string_old.c:33
0x00402edf in _view::insert_under (this=0x570270, linen=3, line={pkg = 0x10b6488, cat = 0x0})
    at /winsup/src/winsup/cinstall/choose.cc:903
903               && strcasecmp (line.get_pkg ()->name, lines[n].get_pkg ()->name) < 0))
Value returned is $1 = 0
Current language:  auto; currently c++
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x78012965 in ?? ()
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x78012965 in ?? ()
(gdb) continue
Continuing.

Program exited with code 0200.

string_old.c:
=============
#include <string.h>

int
strcasecmp (const char *sz1, const char *sz2)
{
  return _stricmp (sz1, sz2);   <===============line 33
}

int
strncasecmp (const char *sz1, const char *sz2, size_t sizeMaxCompare)
{
  return _strnicmp (sz1, sz2, sizeMaxCompare);
}

int
wcscmpi (const wchar_t * ws1, const wchar_t * ws2)
{
  return _wcsicmp (ws1, ws2);
}

No idea what the problem may be here, sorry.

Gerrit


-- 
=^..^=

- Raw text -


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