Skip to content

Pass short path names to configure scripts on Windows #3185

Closed

Description

@23Skidoo

In #2946 we changed Cabal to use the standard mechanism when passing the gcc path to configure scripts. Unfortunately, it looks like this feature is still broken (at least on Windows) when the path contains spaces (a bug in Autoconf). A workaround that is confirmed to work is to use short path names. We should change Cabal to do that automatically.

Activity

  1. added this to the milestone on Feb 24, 2016
  2. gbaz commented on Feb 24, 2016

    @gbaz
    Collaborator
  3. 23Skidoo commented on Feb 24, 2016

    @23Skidoo
    MemberAuthor

    Is GetShortPathName unreliable?

  4. gbaz commented on Feb 24, 2016

    @gbaz
    Collaborator

    Calling the function directly should work fine too. I just tend to prefer to shell out rather than deal with more bindings...

  5. modified the milestones: Cabal 1.24, on Feb 29, 2016
  6. Mistuke commented on Apr 4, 2016

    @Mistuke
    Collaborator

    8.3 short names can be disabled for performance reasons https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#short_vs._long_names
    So I don't particularly like this as the default. Isn't there another possible fix?

  7. 23Skidoo commented on Apr 4, 2016

    @23Skidoo
    MemberAuthor

    @Mistuke

    8.3 short names can be disabled for performance reasons

    The documentation for GetShortPathName says:

    If you call GetShortPathName on a path that doesn't have any short names on-disk, the call will succeed, but will return the long-name path instead. This outcome is also possible with NTFS volumes because there's no guarantee that a short name will exist for a given long name.

    So it looks like using GetShortPathName will be no worse than status quo when 8.3 names are disabled.

  8. added 5 commits that reference this issue on Apr 8, 2016
    1854b96
    590af97
    6692d16
    c3c0736
    b946c05
  9. self-assigned this
    on Apr 8, 2016
  10. added a commit that references this issue on Apr 8, 2016
    2e211bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions