Re: Which version of ghc will stretch have?
Hi,
3) we need to patch ghc to work with llvm 3.8 and remove the armel stuff
I can do that.
>1) Every -doc package generated by ghc 8.0.1-3 has lintian errors
> because of <script> tags linking to cdn.mathjax.org.
> ghc 8.0.0.20160111-1's changelog mentions this exact issue, and
> ghc-doc still has a libjs-mathjax dependency, so someone will
> have to figure out what went wrong and fix it.
I can try to do that too
I will need help because I know *nothing* about haskell :)
a quick search reveals such code parsed in
./utils/haddock/haddock-api/src/Haddock/Backends/Xhtml.hs: mjUrl = maybe "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" id mathjax_url
this file seems to be used/built here
"inplace/bin/ghc-stage2" -hisuf dyn_hi -osuf dyn_o -hcsuf dyn_hc -fPIC -dynamic -H32m -O -lffi -optl-pthread -Wall -hide-all-packages -i -iutils/haddock/driver -iutils/haddock/haddock-api/src -iutils/haddock/haddock-library/vendor/attoparsec-0.12.1.1 -iutils/haddock/haddock-library/src -iutils/haddock/dist/build -iutils/haddock/dist/build/autogen -Iutils/haddock/dist/build -Iutils/haddock/dist/build/autogen -optP-DIN_GHC_TREE -optP-include -optPutils/haddock/dist/build/autogen/cabal_macros.h -package-id Cabal-1.24.0.0 -package-id array-0.5.1.1 -package-id base-4.9.0.0 -package-id bytestring-0.10.8.1 -package-id containers-0.5.7.1 -package-id deepseq-1.4.2.0 -package-id directory-1.2.6.2 -package-id filepath-1.4.1.0 -package-id ghc-8.0.1 -package-id ghc-boot-8.0.1 -package-id transformers-0.5.2.0 -package-id xhtml-3000.2.1 -funbox-strict-fields -Wall -fwarn-tabs -O2 -threaded -XHaskell2010 -no-user-package-db -rtsopts -Wno-unused-imports -Wno-deprecations -Wnoncanonical-monad-instances -odir utils/haddock/dist/build -hidir utils/haddock/dist/build -stubdir utils/haddock/dist/build -c utils/haddock/haddock-api/src/Haddock/Backends/Xhtml.hs -o utils/haddock/dist/build/Haddock/Backends/Xhtml.dyn_o
"inplace/bin/ghc-stage1" -hisuf p_hi -osuf p_o -hcsuf p_hc -static -prof -H32m -O -lffi -optl-pthread -Wall -this-unit-id xhtml-3000.2.1 -hide-all-packages -i -ilibraries/xhtml/. -ilibraries/xhtml/dist-install/build -ilibraries/xhtml/dist-install/build/autogen -Ilibraries/xhtml/dist-install/build -Ilibraries/xhtml/dist-install/build/autogen -Ilibraries/xhtml/. -optP-include -optPlibraries/xhtml/dist-install/build/autogen/cabal_macros.h -package-id base-4.9.0.0 -Wall -XHaskell98 -XCPP -O2 -no-user-package-db -rtsopts -Wno-unused-imports -Wno-tabs -Wno-deprecated-flags -Wnoncanonical-monad-instances -odir libraries/xhtml/dist-install/build -hidir libraries/xhtml/dist-install/build -stubdir libraries/xhtml/dist-install/build -split-objs -c libraries/xhtml/./Text/XHtml.hs -o libraries/xhtml/dist-install/build/Text/XHtml.p_o -dyno libraries/xhtml/dist-install/build/Text/XHtml.dyn_o
"/«PKGBUILDDIR»/inplace/bin/haddock" --verbosity=0 --odir="libraries/xhtml/dist-install/doc/html/xhtml" --no-tmp-comp-dir --dump-interface=libraries/xhtml/dist-install/doc/html/xhtml/xhtml.haddock --html --hoogle --title="xhtml-3000.2.1: An XHTML combinator library" --prologue="libraries/xhtml/dist-install/haddock-prologue.txt" --optghc="-D__HADDOCK_VERSION__=2172" --hide=Text.XHtml.Strict.Attributes --hide=Text.XHtml.Strict.Elements --hide=Text.XHtml.Frameset.Attributes --hide=Text.XHtml.Frameset.Elements --hide=Text.XHtml.Transitional.Attributes --hide=Text.XHtml.Transitional.Elements --hide=Text.XHtml.BlockTable --hide=Text.XHtml.Extras --hide=Text.XHtml.Internals --read-interface=../base-4.9.0.0,../base-4.9.0.0/src/%{MODULE/./-}.html\#%{NAME},libraries/base/dist-install/doc/html/base/base.haddock --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-H32m --optghc=-O --optghc=-lffi --optghc=-optl-pthread --optghc=-Wall --optghc=-this-unit-id --optghc=xhtml-3000.2.1 --optghc=-hide-all-packages --optghc=-i --optghc=-ilibraries/xhtml/. --optghc=-ilibraries/xhtml/dist-install/build --optghc=-ilibraries/xhtml/dist-install/build/autogen --optghc=-Ilibraries/xhtml/dist-install/build --optghc=-Ilibraries/xhtml/dist-install/build/autogen --optghc=-Ilibraries/xhtml/. --optghc=-optP-include --optghc=-optPlibraries/xhtml/dist-install/build/autogen/cabal_macros.h --optghc=-package-id --optghc=base-4.9.0.0 --optghc=-Wall --optghc=-XHaskell98 --optghc=-XCPP --optghc=-O2 --optghc=-no-user-package-db --optghc=-rtsopts --optghc=-Wno-unused-imports --optghc=-Wno-tabs --optghc=-Wno-deprecated-flags --optghc=-Wnoncanonical-monad-instances --optghc=-odir --optghc=libraries/xhtml/dist-install/build --optghc=-hidir --optghc=libraries/xhtml/dist-install/build --optghc=-stubdir --optghc=libraries/xhtml/dist-install/build --source-module=src/%{MODULE/./-}.html --source-entity=src/%{MODULE/./-}.html#%{NAME} libraries/xhtml/./Text/XHtml.hs libraries/xhtml/./Text/XHtml/Frameset.hs libraries/xhtml/./Text/XHtml/Strict.hs libraries/xhtml/./Text/XHtml/Transitional.hs libraries/xhtml/./Text/XHtml/Debug.hs libraries/xhtml/./Text/XHtml/Table.hs libraries/xhtml/./Text/XHtml/Strict/Attributes.hs libraries/xhtml/./Text/XHtml/Strict/Elements.hs libraries/xhtml/./Text/XHtml/Frameset/Attributes.hs libraries/xhtml/./Text/XHtml/Frameset/Elements.hs libraries/xhtml/./Text/XHtml/Transitional/Attributes.hs libraries/xhtml/./Text/XHtml/Transitional/Elements.hs libraries/xhtml/./Text/XHtml/BlockTable.hs libraries/xhtml/./Text/XHtml/Extras.hs libraries/xhtml/./Text/XHtml/Internals.hs --mathjax=file:///usr/share/javascript/mathjax/MathJax.js +RTS -t"libraries/xhtml/dist-install/haddock.t" --machine-readable
"inplace/bin/ghc-stage1" -M -fPIC -dynamic -H32m -O -lffi -optl-pthread -Wall -hide-all-packages -i -iutils/haddock/driver -iutils/haddock/haddock-api/src -iutils/haddock/haddock-library/vendor/attoparsec-0.12.1.1 -iutils/haddock/haddock-library/src -iutils/haddock/dist/build -iutils/haddock/dist/build/autogen -Iutils/haddock/dist/build -Iutils/haddock/dist/build/autogen -optP-DIN_GHC_TREE -optP-include -optPutils/haddock/dist/build/autogen/cabal_macros.h -package-id Cabal-1.24.0.0 -package-id array-0.5.1.1 -package-id base-4.9.0.0 -package-id bytestring-0.10.8.1 -package-id containers-0.5.7.1 -package-id deepseq-1.4.2.0 -package-id directory-1.2.6.2 -package-id filepath-1.4.1.0 -package-id ghc-8.0.1 -package-id ghc-boot-8.0.1 -package-id transformers-0.5.2.0 -package-id xhtml-3000.2.1 -funbox-strict-fields -Wall -fwarn-tabs -O2 -threaded -XHaskell2010 -no-user-package-db -rtsopts -Wno-unused-imports -Wno-deprecations -Wnoncanonical-monad-instances -odir utils/haddock/dist/build -hidir utils/haddock/dist/build -stubdir utils/haddock/dist/build -dep-makefile utils/haddock/dist/build/.depend.haskell.tmp -dep-suffix "dyn_" -include-pkg-deps utils/haddock/driver/Main.hs utils/haddock/driver/ResponseFile.hs utils/haddock/haddock-library/src/Documentation/Haddock/Parser.hs utils/haddock/haddock-library/src/Documentation/Haddock/Parser/Monad.hs utils/haddock/haddock-library/src/Documentation/Haddock/Types.hs utils/haddock/haddock-library/src/Documentation/Haddock/Doc.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/ByteString.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/ByteString/Buffer.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/ByteString/Char8.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/ByteString/FastSet.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/ByteString/Internal.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/Combinator.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/Internal.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/Internal/Fhthagn.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/Internal/Types.hs utils/haddock/haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/Number.hs utils/haddock/haddock-library/src/Documentation/Haddock/Utf8.hs utils/haddock/haddock-library/src/Documentation/Haddock/Parser/Util.hs utils/haddock/haddock-api/src/Documentation/Haddock.hs utils/haddock/haddock-api/src/Haddock.hs utils/haddock/haddock-api/src/Haddock/Interface.hs utils/haddock/haddock-api/src/Haddock/Interface/Rename.hs utils/haddock/haddock-api/src/Haddock/Interface/Create.hs utils/haddock/haddock-api/src/Haddock/Interface/AttachInstances.hs utils/haddock/haddock-api/src/Haddock/Interface/LexParseRn.hs utils/haddock/haddock-api/src/Haddock/Interface/ParseModuleHeader.hs utils/haddock/haddock-api/src/Haddock/Interface/Specialize.hs utils/haddock/haddock-api/src/Haddock/Parser.hs utils/haddock/haddock-api/src/Haddock/Utils.hs utils/haddock/haddock-api/src/Haddock/Backends/Xhtml.hs utils/haddock/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs utils/haddock/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs utils/haddock/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs utils/haddock/haddock-api/src/Haddock/Backends/Xhtml/Names.hs utils/haddock/haddock-api/src/Haddock/Backends/Xhtml/Themes.hs utils/haddock/haddock-api/src/Haddock/Backends/Xhtml/Types.hs utils/haddock/haddock-api/src/Haddock/Backends/Xhtml/Utils.hs utils/haddock/haddock-api/src/Haddock/Backends/LaTeX.hs utils/haddock/haddock-api/src/Haddock/Backends/HaddockDB.hs utils/haddock/haddock-api/src/Haddock/Backends/Hoogle.hs utils/haddock/haddock-api/src/Haddock/Backends/Hyperlinker.hs utils/haddock/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs utils/haddock/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs utils/haddock/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs utils/haddock/haddock-api/src/Haddock/Backends/Hyperlinker/Types.hs utils/haddock/haddock-api/src/Haddock/Backends/Hyperlinker/Utils.hs utils/haddock/haddock-api/src/Haddock/ModuleTree.hs utils/haddock/haddock-api/src/Haddock/Types.hs utils/haddock/haddock-api/src/Haddock/Doc.hs utils/haddock/haddock-api/src/Haddock/Version.hs utils/haddock/haddock-api/src/Haddock/InterfaceFile.hs utils/haddock/haddock-api/src/Haddock/Options.hs utils/haddock/haddock-api/src/Haddock/GhcUtils.hs utils/haddock/haddock-api/src/Haddock/Syb.hs utils/haddock/haddock-api/src/Haddock/Convert.hs
assuming that the problem is in the code (I can see the flag passed correctly)
./utils/haddock/haddock-api/src/Haddock/Backends/Xhtml.hs
-> Maybe String -- ^ The mathjax URL (--mathjax)
headHtml docTitle miniPage themes mathjax_url =
header << [
meta ! [httpequiv "Content-Type", content "text/html; charset=UTF-8"],
thetitle << docTitle,
styleSheet themes,
script ! [src jsFile, thetype "text/javascript"] << noHtml,
script ! [src mjUrl, thetype "text/javascript"] << noHtml,
script ! [thetype "text/javascript"]
-- NB: Within XHTML, the content of script tags needs to be
-- a <![CDATA[ section. Will break if the miniPage name could
-- have "]]>" in it!
<< primHtml (
"//<![CDATA[\nwindow.onload = function () {pageLoad();"
++ setSynopsis ++ "};\n//]]>\n")
]
where
setSynopsis = maybe "" (\p -> "setSynopsis(\"" ++ p ++ "\");") miniPage
mjUrl = maybe "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" id mathjax_url
I don't know what that maybe is, but seems that something here is not getting correctly the parameter passed.
Can anybody please help?
thanks!
(I'll hopefully upload something building with llvm 3.8 soon)
Gianfranco
Reply to: