Re: devel/gindent compile issues on 13.1

From: Stefan Esser <>
Date: Tue, 21 Jun 2022 08:53:54 UTC
Am 21.06.22 um 05:09 schrieb Jim Pazarena:
> I did not file a bug report .
> But I had hopes that after a month passed , someone , perhaps even the
> maintainer , this issue would have been corrected .
> Alas .
> I can't be the only one that wants to pretty up their source , and uses gindent
> to do it . So is no one concerned that this utility fails to compile ?

I do not use gindent, but I have looked into the build issue.

There is parens_indent as local variable in dump_line_code(), which
is only initialized and updated, but never used, and there is the
global array parser_state_tos->paren_indents[], and that is actually

Without trying to get a deep understanding of the code, I can only
assume that the local variable has been found to not suffice to
determine the correct indentation value, and that it has been
replaced by the array, but without removal of the now unused local

I can update the port to not define and update parens_indent, but
since I do not use that port and since I do not have the time and
motivation to analyze the logic used, I can only point out how to
make the port build, but will not commit the patch.

If you want to give the patch a try you can save the attached file
as devel/gindent/files/patch-src_output.c, replacing that file.

I have only commented out the code that causes the build to break.
A commit-ready patch would remove those lines from the sources.

If this patch works for you after some testing, I'll update the
patch to allow an official package to be built again.

Regards, STefan