Bug#1111165: ben: Building template fails: Error: Unbound module "Ben_frontends"
On 8/20/25 12:18 PM, Stéphane Glondu wrote:
Le 15/08/2025 à 12:15, Sebastiaan Couwenberg a écrit :>> Copying the .cmxs file to /usr/lib/ben/templates no longer works.
Even after setting BEN_TEMPLATES_DIR? Its default value is $(ocamlc -where)/ben/templates, as you've figured out.
Setting BEN_TEMPLATES_DIR didn't work, possibly because a subdirectory with the template name was not used.
This did work:
su -c "mkdir /usr/lib/x86_64-linux-gnu/ocaml/5.3.0/ben/templates/ debiangis"
su -c "cp -v _build/default/templates/debiangis.* /usr/lib/x86_64- linux-gnu/ocaml/5.3.0/ben/templates/debiangis/"
What is the recommended way to build & install a custom template?
There is no "recommended" way, the way you did seems fine.
If you do not want to fiddle with ben sources:
https://salsa.debian.org/debian/ben/-/tree/master/examples/custom-template
Should this replace the "HTML Templates" section in the reference manual?
https://debian.pages.debian.net/ben/#_html_templates
Those instructions no longer work, but I'm not sure what to replace it with.
Kind Regards,
Bas
--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
Reply to: