Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#75296 - [pandoc] lua-lpeg dependency missing

Attached to Project: Community Packages
Opened by Toni Dietze (Flupp) - Monday, 11 July 2022, 09:15 GMT
Last edited by Felix Yan (felixonmars) - Friday, 15 July 2022, 08:27 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Pandoc’s Lua filter functionality seems to depend on lua-lpeg, however, it is not listed as dependency. Without lua-lpeg being installed, Pandoc raises the following error when using Lua filters:

$ pandoc -f markdown -t html --lua-filter /dev/null <<<'Test'
Error running filter /dev/null:
module 'lpeg' not found:

lpeg is not one of pandoc's default packages
no field package.preload['lpeg']
no file '/usr/share/lua/5.4/lpeg.lua'
no file '/usr/share/lua/5.4/lpeg/init.lua'
no file '/usr/lib/lua/5.4/lpeg.lua'
no file '/usr/lib/lua/5.4/lpeg/init.lua'
no file './lpeg.lua'
no file './lpeg/init.lua'
no file '/usr/lib/lua/5.4/lpeg.so'
no file '/usr/lib/lua/5.4/loadall.so'
no file './lpeg.so'

lpeg was configured to be excluded from the binary.
return value 83


With lua-lpeg installed:

$ pandoc -f markdown -t html --lua-filter /dev/null <<<'Test'
<p>Test</p>


Note: Pandoc depends on haskell-lpeg so it might actually be a problem with that package. That package currently depends on lua53-lpeg – maybe this dependency is outdated.


Additional info:
* package version(s)
* pandoc 2.18-4
* haskell-lpeg 1.0.2-16
* lua53-lpeg 1.0.2-4
This task depends upon

Closed by  Felix Yan (felixonmars)
Friday, 15 July 2022, 08:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  haskell-lpeg 1.0.2-19

Loading...