[GHC] #11949: ghc bindist doesn't bundle up the assets needed for hyperlinked-source properly and doesn't treat certain base modules right

#11949: ghc bindist doesn't bundle up the assets needed for hyperlinked-source properly and doesn't treat certain base modules right -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- i've had to copy some files that aren't shipped with ghc, or perhaps i need to reinstall haddock in userland? {{{ ~ $ haddock --hyperlinked-source haddock: internal error: /Users/carter/.install- ghc/ghc-8.0.0.20160417/lib/ghc-8.0.0.20160417/html/solarized.css: copyFile: does not exist (No such file or directory) ~ $ cp /Users/carter/.install- ghc/ghc-8.0.0.20160417/share/doc/ghc-8.0.0.20160417/html/libraries/base-4.9.0.0/src/style.css /Users/carter/.install- ghc/ghc-8.0.0.20160417/lib/ghc-8.0.0.20160417/html/solarized.css cp /Users/carter/.install- ghc/ghc-8.0.0.20160417/share/doc/ghc-8.0.0.20160417/html/libraries/base-4.9.0.0/src/highlight.js /Users/carter/.install- ghc/ghc-8.0.0.20160417/lib/ghc-8.0.0.20160417/html/highlight.js }}} additionally i need to set {{{ haddock-options: --hyperlinked-source }}} correctly in the ~/.cabal/config file, and if thats set wrong, source files are silently not generated as part of the docs, so debugging a typo there is pretty confusing! sooo... either way, there seems to be two missing asset files in my build! namely those two files i had to CP! as additional data, heres the customized perf build way i did {{{ EXTRA_HADDOCK_OPTS=--hyperlinked-source HADDOCK_DOCS = YES BUILD_SPHINX_HTML = YES BUILD_SPHINX_PDF = YES libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-intree- gmp }}} my "debugging technique" was to run `haddock --hyperlinked-source` and figure out what file is in the pretty builds and CP that over to the location haddock was complaining about and repeat -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11949 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11949: ghc bindist doesn't bundle up the assets needed for hyperlinked-source properly and doesn't treat certain base modules right -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by carter): Hvr mentioned on IRC that something along these lines has been a bug for a while now. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11949#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11949: ghc bindist doesn't bundle up the assets needed for hyperlinked-source properly and doesn't treat certain base modules right -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by carter): {{{ /usr/bin/install -c -m 755 -d "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/" /usr/bin/install -c -m 755 -d "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Classic.theme/" /usr/bin/install -c -m 755 -d "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Ocean.std-theme/" /usr/bin/install -c -m 755 -d "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/latex/" /usr/bin/install -c -m 644 utils/haddock/haddock- api/resources/html/frames.html "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/" /usr/bin/install -c -m 644 utils/haddock/haddock-api/resources/html /haddock-util.js "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/" /usr/bin/install -c -m 644 utils/haddock/haddock- api/resources/html/Classic.theme/haskell_icon.gif "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Classic.theme/" /usr/bin/install -c -m 644 utils/haddock/haddock- api/resources/html/Classic.theme/minus.gif "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Classic.theme/" /usr/bin/install -c -m 644 utils/haddock/haddock- api/resources/html/Classic.theme/plus.gif "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Classic.theme/" /usr/bin/install -c -m 644 utils/haddock/haddock- api/resources/html/Classic.theme/xhaddock.css "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Classic.theme/" /usr/bin/install -c -m 644 utils/haddock/haddock-api/resources/html/Ocean .std-theme/hslogo-16.png "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Ocean.std-theme/" /usr/bin/install -c -m 644 utils/haddock/haddock-api/resources/html/Ocean .std-theme/minus.gif "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Ocean.std-theme/" /usr/bin/install -c -m 644 utils/haddock/haddock-api/resources/html/Ocean .std-theme/ocean.css "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Ocean.std-theme/" /usr/bin/install -c -m 644 utils/haddock/haddock-api/resources/html/Ocean .std-theme/plus.gif "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Ocean.std-theme/" /usr/bin/install -c -m 644 utils/haddock/haddock-api/resources/html/Ocean .std-theme/synopsis.png "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/html/Ocean.std-theme/" /usr/bin/install -c -m 644 utils/haddock/haddock- api/resources/latex/haddock.sty "/Users/carter/.install- ghc/ghc-8.0.0.20160419/lib/ghc-8.0.0.20160419/latex/" }}} is the applicable set of commands that should be doing this stuff, and it looks like they're simply neglected because the current install make file is doing it item by item rather than "for each i in foo ; cp i target/directory/", which is done in later stuff in the make file, such as {{{ for i in docs/users_guide/build-html/users_guide; do \ cp -Rp $i "/Users/carter/.install- ghc/ghc-8.0.0.20160419/share/doc/ghc-8.0.0.20160419/html"; \ done }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11949#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11949: ghc bindist doesn't bundle up the assets needed for hyperlinked-source properly and doesn't treat certain base modules right -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by carter): this seems to then get into tracing out / understanding how ghc generates the bindist-list file via the make process. which i'll try to look at this evening -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11949#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11949: ghc bindist doesn't bundle up the assets needed for hyperlinked-source properly and doesn't treat certain base modules right -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by thomie): Those missing files should be mentioned in `utils/haddock/ghc.mk`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11949#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11949: ghc bindist doesn't bundle up the assets needed for hyperlinked-source properly and doesn't treat certain base modules right -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): I have a patch for this. Thanks for everyone who helped isolate the issue. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11949#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11949: ghc bindist doesn't bundle up the assets needed for hyperlinked-source
properly and doesn't treat certain base modules right
-------------------------------------+-------------------------------------
Reporter: carter | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 8.0.1-rc3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#11949: ghc bindist doesn't bundle up the assets needed for hyperlinked-source properly and doesn't treat certain base modules right -------------------------------------+------------------------------------- Reporter: carter | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed Comment: This has been fixed and merged to `ghc-8.0`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11949#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC