Pandoc version 3 seems to have no Lua support: ``` /usr/bin/pandoc +RTS -K512m -RTS test.knit.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output test.html --lua-filter /usr/share/R/library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /usr/share/R/library/rmarkdown/rmarkdown/lua/latex-div.lua --embed-resources --standalone --section-divs --template /usr/share/R/library/rmarkdown/rmd/h/default.html --highlight-style pygments --css /usr/share/R/library/rmarkdown/rmarkdown/templates/html_vignette/resources/vignette.css --mathjax --variable 'mathjax-url=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --include-in-header /tmp/RtmpiekFs9/rmarkdown-str8ae41f9fc61.html This version of pandoc has been compiled without Lua support. Error: pandoc document conversion failed with error 89 ``` Please, add Lua support back, this breaks a bunch of stuff. Reproducible: Always Steps to Reproduce: Try to use Lua filters Actual Results: Error message: This version of pandoc has been compiled without Lua support. Expected Results: Lua support should be available.
Good call, thanks
Really wondering whether pandoc-server should be enabled or not as well... I probably won't enable server by default for now. Also the amount of packaging technical debt for this package is getting a bit out of control. Help with getting new deps reviewed would be much appreciated.
What help is needed to get Lua support back?
It is coming :-) I started working on improving cabal-rpm subpackaging handling, since it is tedious to work out the missing deps manually. Hopefully I can finish that off this week - personal life and all that too. If you want to help with (In reply to Jens Petersen from comment #2) > Also the amount of packaging technical debt for this package is getting a > bit out of control. > Help with getting new deps reviewed would be much appreciated. (see https://src.fedoraproject.org/rpms/pandoc/blob/rawhide/f/pandoc.spec#_7) you could start by reviewing https://bugzilla.redhat.com/show_bug.cgi?id=2163472 I am happy to file more review requests if people will help to review them.
Also this one https://bugzilla.redhat.com/show_bug.cgi?id=2068718
Okay little progress update: you can try this pandoc-cli scratch build locally if you want https://koji.fedoraproject.org/koji/taskinfo?taskID=106771401 which should have lua enabled. For example it should be installable on F39+ with `koji-tool install 106771401 -p pandoc-cli`.
And (probably noone cares), these are the changes I am making to cabal-rpm to implement this: cabal-rpm.cabal | 6 +++ src/Commands/Spec.hs | 74 +++++++++++++++++++------------------ src/Dependencies.hs | 44 ++++++++++++++-------- src/PackageUtils.hs | 22 ++++++++++- src/Stackage.hs | 92 ++++++++++++++++++++++++++++++---------------- src/Stackage/MajorVer.hs | 77 ++++++++++++++++++++++++++++++++++++++ src/Stackage/Snapshots.hs | 45 ++++++++++++++++++++++ 7 files changed, 278 insertions(+), 82 deletions(-) Though the main packaging painpoint was that pandoc-cli wasn't included in Stackage LTS 21 :-( Next I will fold pandoc-cli.spec into pandoc.spec <sadface/>
(I released cabal-rpm-2.1.3 for this) I kicked off a pandoc scratch build, which I hope should fix this: https://koji.fedoraproject.org/koji/taskinfo?taskID=106797301 Testing would be appreciated, once it finishes. If all goes well I should be able to start a sidetag tomorrow to build it for Rawhide.
Any examples of how to test this? I was looking for any build failures in Koji but didn't find any so far... It would be helpful to have that info in the bug report :-)
Alright I just tested with the first example from https://pandoc.org/lua-filters.html and that works for me, so hopefully this will be good now. f39$ echo '**hello**' | /usr/bin/pandoc --lua-filter ./smallcaps.lua This version of pandoc has been compiled without Lua support. f40$ echo '**hello**' | /usr/bin/pandoc --lua-filter ./smallcaps.lua <p><span class="smallcaps">hello</span></p>
For this who want to follow closely you can track the rawhide builds in f40-build-side-74646
https://src.fedoraproject.org/rpms/pandoc/c/6accb5f214a2b97e020acc2a16a837fe1ddd73f0?branch=rawhide .gitignore | 12 + pandoc.spec | 580 ++++++++++++++++++++++++++++++++++++++++++++++-------------- sources | 29 +-- 3 files changed, 484 insertions(+), 137 deletions(-) Also you can see there the ridiculous number of dependencies subpackaged (27 libs now). If you depend on and care about pandoc in Fedora, do please help to review package review requests for this (most are still pending to be submitted).
@petersen's build from comment 12 installs cleanly on f39 and works, at least from the perspective of podman CI. Thank you!
I am disabling LUA on ppc64le, to stop it crashing... (see bug 2172771)
(In reply to Ed Santiago from comment #13) > @petersen's build from comment 12 installs cleanly on f39 and works, at > least from the perspective of podman CI. Thank you! Thanks for testing, Ed
This has now been merged into Rawhide. More testing is welcome - and I will build it for F39 next.
Rawhide: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f8dffe28da
FEDORA-2023-aa61077305 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-aa61077305
FEDORA-2023-aa61077305 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-aa61077305` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-aa61077305 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-aa61077305 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.