[commit: ghc] master: Fix ghc-pkg when only prof way is enabled (e400b9b)

git at git.haskell.org git at git.haskell.org
Sun Oct 28 17:41:33 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e400b9babdcf11669f963aeec20078fe7ccfca0d/ghc

>---------------------------------------------------------------

commit e400b9babdcf11669f963aeec20078fe7ccfca0d
Author: Zejun Wu <watashi at fb.com>
Date:   Sun Oct 28 12:38:07 2018 -0400

    Fix ghc-pkg when only prof way is enabled
    
    Summary:
    We saw following errors:
    
    ```
    $ cabal install --disable-library-vanilla --disable-shared --enable-library-profiling
    hashable-1.2.7.0: cannot find any of
    ["libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ.a",
     "libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ.p_a",
     "libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ-ghc8.4.3.so",
     "libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ-ghc8.4.3.dylib",
     "HShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ-ghc8.4.3.dll"]
    ```
    
    This is because ghc-pkg is looking for
    `libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ.p_a` instead of
    `libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ_p.a`.
    
    Test Plan: ./validate
    
    Reviewers: simonmar, bgamari
    
    Reviewed By: simonmar
    
    Subscribers: rwbarton, carter
    
    Differential Revision: https://phabricator.haskell.org/D5234


>---------------------------------------------------------------

e400b9babdcf11669f963aeec20078fe7ccfca0d
 testsuite/tests/cabal/ghcpkg03.stderr         | 6 +++---
 testsuite/tests/cabal/ghcpkg03.stderr-mingw32 | 6 +++---
 testsuite/tests/cabal/ghcpkg05.stderr         | 2 +-
 testsuite/tests/cabal/ghcpkg05.stderr-mingw32 | 2 +-
 utils/ghc-pkg/Main.hs                         | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc e400b9babdcf11669f963aeec20078fe7ccfca0d


More information about the ghc-commits mailing list