Ticket #4156 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

globbing not switched off? interferes with substring matching

Reported by: claus Owned by: igloo
Priority: normal Milestone:
Component: ghc-pkg Version: 6.12.3
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

On windows, ghc-pkg needs to be linked with a CRT_noglob.o (setting _CRT_glob to 0), so that it does not attempt its own globbing.

That does not seem to happen anymore (no sign of CRT_noglob in the  build log).

Result is that substring matching does not work correctly. The effect seems to be masked in the testsuite because the substring matches there happen to expand to themselves (no matching files in the current directory):

In a cmd.exe:

>ghc-pkg --version
GHC package manager version 6.12.3

>dir
 Volume in Laufwerk C: hat keine Bezeichnung.
 Volumeseriennummer: 6A99-2261

 Verzeichnis von C:\Users\claus\Desktop\tmp\alexy-husky-55d2d20\uuuu

27.06.2010  15:54    <DIR>          .
27.06.2010  15:54    <DIR>          ..
27.06.2010  15:54                 0 zlib
               1 Datei(en),              0 Bytes
               2 Verzeichnis(se), 380.470.370.304 Bytes frei

>ghc-pkg list *
C:/haskell/ghc/ghc-6.12.3\lib\package.conf.d:
    zlib-0.5.2.0

C:\Users\claus\AppData\Roaming\ghc\i386-mingw32-6.12.3\package.conf.d:

Change History

Changed 3 years ago by igloo

  • owner set to igloo

Changed 3 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Thanks for the report; fixed:

Sun Jul  4 06:26:12 PDT 2010  Ian Lynagh <igloo@earth.li>
  * Use Cabal to configure the dist-install ghc-pkg; fixes trac #4156
Note: See TracTickets for help on using tickets.