RE: Improve docs syntax checking and enable it in the meson build - Mailing list pgsql-hackers

From Hayato Kuroda (Fujitsu)
Subject RE: Improve docs syntax checking and enable it in the meson build
Date
Msg-id OS9PR01MB1214918B87CCD5DB66DB0173BF56DA@OS9PR01MB12149.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: Improve docs syntax checking and enable it in the meson build  (Nazir Bilal Yavuz <byavuz81@gmail.com>)
Responses Re: Improve docs syntax checking and enable it in the meson build
List pgsql-hackers
Dear Nazir,

> I think we might be using different meson versions, which could
> explain the difference. I am currently using meson v1.7.0.

I verified on my two environments, and both could work as expected.
Your patch was applied then doc/src/sgml/meson.build was updated
from the HEAD.

Almalinux 9:
```
$ meson -v
0.63.3
$ ninja clean && meson test --suite doc
[2/2] Cleaning
Cleaning... 8 files.
ninja: Entering directory `/home/hayato/builddir'
[8/8] Generating doc/src/sgml/postgres-full.xml with a custom command
1/1 postgresql:doc / doc/sgml_syntax_check        OK              0.39s

Ok:                 1   
Expected Fail:      0   
Fail:               0   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   

Full log written to /home/hayato/builddir/meson-logs/testlog.txt
```

Ubuntsu 24.04 LTS

```
$ meson -v
1.3.2
$ ninja clean && meson test --suite doc
[2/2] Cleaning
Cleaning... 8 files.
ninja: Entering directory `/home/hayato/builddir'
[8/8] Generating doc/src/sgml/postgres-full.xml with a custom command
1/1 postgresql:doc / doc/sgml_syntax_check        OK              0.50s

Ok:                 1   
Expected Fail:      0   
Fail:               0   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   

Full log written to /home/hayato/builddir/meson-logs/testlog.txt
```

As Álvaro pointed out [1], I also think there should be a way to build some
needed items.

[1]: https://www.postgresql.org/message-id/202602161234.ujd6lsyxxnh4%40alvherre.pgsql

Best regards,
Hayato Kuroda
FUJITSU LIMITED


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: generating function default settings from pg_proc.dat
Next
From: Ashutosh Bapat
Date:
Subject: Re: [PATCH] pgindent truncates last line of files missing a trailing newline