From: | 'Alvaro Herrera' <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Regina Obe <lr(at)pcorp(dot)us> |
Cc: | 'Postgres hackers' <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Can't compile PG 17 (master) from git under Msys2 autoconf |
Date: | 2024-04-05 17:41:56 |
Message-ID: | 202404051741.2gdvgsesdsst@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2024-Apr-04, Regina Obe wrote:
> I think I got something not too far off from what's there now that works under my msys2 setup again. This is partly using your idea of using $(top_builddir) to qualify the path but in the LN_S section that is causing me grief.
> This seems to work okay building in tree and out of tree.
> By changing these lines in src/backend/Makefile
>
> $(top_builddir)/src/include/storage/lwlocknames.h: storage/lmgr/lwlocknames.h
> rm -f '$@'
> - $(LN_S) ../../backend/$< '$@'
> + $(LN_S) $(top_builddir)/src/backend/$< '$@'
>
> $(top_builddir)/src/include/utils/wait_event_types.h: utils/activity/wait_event_types.h
> rm -f '$@'
> - $(LN_S) ../../backend/$< '$@'
> + $(LN_S) $(top_builddir)/src/backend/$< '$@'
>
> I've also attached as a patch.
Hmm, that's quite strange ... it certainly doesn't work for me. Maybe
the LN_S utility is resolving the symlink at creation time, rather than
letting it be a reference to be resolved later. Apparently, the only Msys2 buildfarm animal is now using Meson,
so we don't have any representative animal for your situation.
What does LN_S do for you anyway? Looking at
https://stackoverflow.com/questions/61594025/symlink-in-msys2-copy-or-hard-link
it sounds like this would work if the MSYS environment variable was set
to winsymlinks (or maybe not. I don't know if a "windows shortcut" would
be usable in this case.)
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"Nadie está tan esclavizado como el que se cree libre no siéndolo" (Goethe)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2024-04-05 17:51:35 | Re: incremental backup breakage in BlockRefTableEntryGetBlocks |
Previous Message | Noah Misch | 2024-04-05 17:26:49 | Re: AIX support |