new 'temp' directory in CVS cinstall contains dependency WIP

Gerrit P. Haase gp@familiehaase.de
Sun Sep 23 16:47:00 GMT 2001


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


-- 
=^..^=



More information about the Cygwin-apps mailing list