Re: Adding NetBSD and OpenBSD to Postgres CI - Mailing list pgsql-hackers

From Nazir Bilal Yavuz
Subject Re: Adding NetBSD and OpenBSD to Postgres CI
Date
Msg-id CAN55FZ0czTmfnfF=WOHJUZ0iZRiMz6Yf3FSMbPh4=Z5a_TDjKw@mail.gmail.com
Whole thread Raw
In response to Re: Adding NetBSD and OpenBSD to Postgres CI  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: Adding NetBSD and OpenBSD to Postgres CI
List pgsql-hackers
Hi,

Thanks for the feedback!

On Fri, 1 Nov 2024 at 14:16, Peter Eisentraut <peter@eisentraut.org> wrote:
>
> On 01.11.24 10:17, Nazir Bilal Yavuz wrote:
> > NetBSD and OpenBSD Postgres CI images are generated [1] but their tasks
> > are not added to the upstream Postgres yet. The attached patch adds
> > NetBSD and OpenBSD tasks to the Postgres CI.
> >
> > I made these tasks triggered manually like MinGW task to save CI credits
> > but a related line is commented out for now to trigger CFBot.
>
> This seems useful to me.  It would add some more testability for
> LibreSSL for example.
>
> I noticed that neither the existing FreeBSD task nor the new OpenBSD one
> find the bsd_auth.h header.  I thought this would be good to get more
> testing of that code.  Do you know why that is?

The 'bsd_auth.h' file does not exist in FreeBSD.

For the OpenBSD, it exists but its compilation fails with:
'''
/usr/include/bsd_auth.h:93:1: error: unknown type name 'quad_t'
/usr/include/bsd_auth.h:94:1: error: unknown type name 'quad_t
'''

These 'quad_t' types are defined in the 'sys/types.h' file. If I apply
the changes below:
"""
 if cc.check_header('bsd_auth.h', required: bsd_authopt,
-    args: test_c_args, include_directories: postgres_inc)
+    args: test_c_args, prefix: '#include <sys/types.h>',
+    include_directories: postgres_inc)
   cdata.set('USE_BSD_AUTH', 1)
   bsd_auth = declare_dependency()
 endif
"""

Then, meson is able to find "bsd_auth.h" in the OpenBSD task and CI
finishes successfully [1]. But I am not sure if this is enough. Do we
need additional changes for the BSD authentication?

[1] https://cirrus-ci.com/task/6516032758611968

--
Regards,
Nazir Bilal Yavuz
Microsoft



pgsql-hackers by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Add parallel columns for pg_stat_statements
Next
From: Junwang Zhao
Date:
Subject: Re: general purpose array_sort