bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indentation mistake


From: Simon Josefsson
Subject: Re: Indentation mistake
Date: Thu, 02 May 2024 20:25:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Erik Auerswald <auerswal@unix-ag.uni-kl.de> writes:

> Hi Simon,
>
> On Thu, May 02, 2024 at 08:08:07PM +0200, Simon Josefsson wrote:
>> tor 2024-05-02 klockan 20:05 +0200 skrev Erik Auerswald:
>> > On Thu, May 02, 2024 at 07:55:23PM +0200, Simon Josefsson via Bug
>> > reports for the GNU Internet utilities wrote:
>> > > [...]
>> > > I worry about self-tests though, it would be nice to beef up on
>> > > that.
>> > > There is a pretty substantial GNU/Linux-centric self-test pipeline
>> > > here
>> > > (I just noticed the last commit broke this due to indentation
>> > > changes):
>> > > 
>> > > https://gitlab.com/gsasl/inetutils/-/pipelines
>> > 
>> > Sorry!
>> > 
>> > I did not notice a missing dependency during "make syntax-check":
>> > 
>> >     $ make syntax-check
>> >     ...
>> >     indent
>> >     maint.mk: sc_indent: GNU indent is missing
>> >     0.01 indent
>> >     ...
>> > 
>> > Thus I did not see this problem.
>> 
>> Don't worry -- that's what the pipeline is there for, and it is easy to
>> fix.  Could you run 'make indent' using a recent GNU indent and push
>> the fix?
>
> Sadly, I cannot do this, at least not easily.  After installing GNU
> indent, "make syntax-check" complains about many files:
>
>     $ indent --version
>     GNU indent 2.2.12

You need 2.2.13 :-)

> But I can manually break the line as shown in
> <https://gitlab.com/gsasl/inetutils/-/jobs/6731453789>:
>
>     -     addr.s_addr = n ? htonl (INADDR_BROADCAST << (32 - n)) : INADDR_ANY;
>     +     addr.s_addr =
>     +       n ? htonl (INADDR_BROADCAST << (32 - n)) : INADDR_ANY;
>           str = strdup (inet_ntoa (addr));
>
> Do I need specific indent configuration for GNU Inetutils' "make
> syntax-check"?  Or just a newer version?
>
> Anyway, manually adding the line break and further indentation removes
> "ifconfig" from the output of "make syntax-check", so I'll just push
> that in a moment.

Thank you,
Simon

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]