Re: BUG #16773: GSSAPI + Msys2/mingw64 + setenv() issue. - Mailing list pgsql-bugs

From Stephen Frost
Subject Re: BUG #16773: GSSAPI + Msys2/mingw64 + setenv() issue.
Date
Msg-id 20201214193835.GG16415@tamriel.snowman.net
Whole thread Raw
In response to BUG #16773: GSSAPI + Msys2/mingw64 + setenv() issue.  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16773: GSSAPI + Msys2/mingw64 + setenv() issue.
RE: BUG #16773: GSSAPI + Msys2/mingw64 + setenv() issue.
List pgsql-bugs
Greetings,

* PG Bug reporting form (noreply@postgresql.org) wrote:
> I am being engaged in PostgreSQL build process with GSSAPI support in
> msys2/mingw64 environment.
> Everything is good enough on REL_11_STABLE branch, but there are the
> following compilation and linking errors on newer versions/branches
> (12-stable, 13-stable, and 14-devel).
>
> Errors connect with setenv() call that isn't supported in msys2/mingw64.

Yeah, we had some discussion regarding that, as you noted.  There's been
a further discussion though, here:

https://postgr.es/m/CA+OCxowDNTXfHBruAryhZA0aMxHvqHL4uYk8APiZCqjWAM=M-w@mail.gmail.com

Which seems to indicate that fixing the setenv() issue isn't enough to
make things actually work.  I'd been hoping that Dave would get back to
that thread and provide some feedback on it, but that's not happened
yet.

Perhaps you could take his patch and see if it works for you though..?

> Is there a plan to clean code from setenv() call and will the proposed patch
> [3] or its revised versions be applied ??

Would really be helpful if we could have some confidence that such a
change would actually result in things working- so, if you could test
the patch that Dave posted in the thread I linked to above and let us
know if it works for you, that'd certainly be helpful.

> Also I have checked BuildFarm statuses and all mingw64-nodes build PG
> without GSSAPI/KRB5 support [4].
> It looks like the mingw64 platform is no longer being considered as LTS and
> will be in reduced feature list in the future.

I don't think there's any reason to jump to that assumption, however..

> Am i right?

.. if you'd like this to keep working then I would certainly encourage
you to set up a buildfarm animal which tests this case and register it
with the buildfarm.  The lack of one certainly means it's less likely
that this specific platform + configuration will be tested regularly.

Thanks,

Stephen

Attachment

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16773: GSSAPI + Msys2/mingw64 + setenv() issue.
Next
From: PG Bug reporting form
Date:
Subject: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA