[Bug 288476] nix: fix 2.20.2 build by disabling markdown support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Jul 2025 00:41:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288476
Bug ID: 288476
Summary: nix: fix 2.20.2 build by disabling markdown support
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ashish@FreeBSD.org
Reporter: jon@jh86.org
Assignee: ashish@FreeBSD.org
Flags: maintainer-feedback?(ashish@FreeBSD.org)
Created attachment 262467
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=262467&action=edit
disable markdown support patch
When building sysutils/nix from ports, it fails with:
src/libcmd/markdown.cc:21:10: error: field designator 'cols' does not refer to
any field in type 'struct lowdown_opts'
21 | .cols = (size_t) std::max(windowWidth - 5, 60),
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/libcmd/markdown.cc:22:10: error: field designator 'hmargin' does not refer
to any field in type 'struct lowdown_opts'
22 | .hmargin = 0,
| ~^~~~~~~~~~~
src/libcmd/markdown.cc:23:10: error: field designator 'vmargin' does not refer
to any field in type 'struct lowdown_opts'
23 | .vmargin = 0,
| ~^~~~~~~~~~~
The markdown feature of Nix is not explicitly necessary and can be disabled
with a configure flag. I've attached a patch which fixes the build.
When this feature is disabled, Nix simply prints out docs in a raw format,
without any processing. I'd like to get the port updated, but this might be
helpful to have in the mean time. Hopefully the port does not to be removed
since it is now fixed.
Thank you!
--
You are receiving this mail because:
You are the assignee for the bug.