[Bug 289051] editors/helix: unable to extract due to missing directory structure

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 24 Aug 2025 09:50:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289051

            Bug ID: 289051
           Summary: editors/helix: unable to extract due to missing
                    directory structure
           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: Trond.Endrestol@ximalas.info
          Assignee: ashish@FreeBSD.org
             Flags: maintainer-feedback?(ashish@FreeBSD.org)

Created attachment 263171
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=263171&action=edit
Patch for editors/helix/Makefile creating the missing directory structure at
${WRKSRC}/runtime/grammars/sources/qmljs.

${WRKSRC}/runtime/grammars/sources/qmljs/queries/highlights-javascript.scm and
${WRKSRC}/runtime/grammars/sources/qmljs/queries/highlights-typescript.scm
are in fact symlinks pointing to
../node_modules/tree-sitter-javascript/queries/highlights.scm and
../node_modules/tree-sitter-typescript/queries/highlights.scm, respectively.

Two solutions are possible:

1. Create the missing directory structure, or
2. Remove the offending symlinks prior to copying the two .scm files.

These are the error messages when editors/helix/Makefile is unpatched:

===>  Moving crates to
/construction/xports/editors/helix/work/helix-25.07.1/cargo-crates
cd
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources
&& cp -f -a typescript tsx
cd
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources
&& cp -f -a ocaml ocaml-interface
cd
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources
&& cp -f -a markdown markdown_inline
cd
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources
&& cp -f -a wast wat
/bin/mv
/construction/xports/editors/helix/work/tree-sitter-hare-07035a248943575444aa0b893ffe306e1444c0ab
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources/hare
/bin/mv
/construction/xports/editors/helix/work/tree-sitter-wren-6748694be32f11e7ec6b5faeb1b48ca6156d4e06
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources/wren
/bin/mv
/construction/xports/editors/helix/work/tree-sitter-gemini-3cc5e4bdf572d5df4277fc2e54d6299bd59a54b3
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources/gemini
/bin/mv /construction/xports/editors/helix/work/tree-sitter-prolog
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources/prolog
cp -f -R /distfiles/0ab9d99867435a7667c5548a6617a6bf73dbd830-ts-highlights.scm
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources/qmljs/queries/highlights-typescript.scm
cp:
/construction/xports/editors/helix/work/helix-25.07.1/runtime/grammars/sources/qmljs/queries/highlights-typescript.scm:
No such file or directory
*** Error code 1

Stop.
make: stopped making "extract" in /xports/editors/helix

-- 
You are receiving this mail because:
You are the assignee for the bug.