meson: Stop using deprecated way getting path of files

Andres Freund <andres@anarazel.de>

Commit: aa11a9c14902b7bcb1d73533a0403dc50361112a
Author: Andres Freund <andres@anarazel.de>
Date: 2023-12-01T03:25:40Z
Releases: 17.0
meson: Stop using deprecated way getting path of files

The just released meson 1.3 strongly deprecated a hack we were using, emitting
a noisy warning (the hack basically depended on an implementation detail to
work). Turns out there has been a better way available for a while, I just
hadn't found it. 1.4 added a more convenient approach, but we can't rely on
that.

Reviewed-by: Tristan Partin <tristan@neon.tech>
Discussion: https://postgr.es/m/20231129185053.s6c7f73eg7b4ztfi@awork3.anarazel.de
Backpatch: 16-, where the meson build was added.

Files

PathChange+/−
meson.build modified +6 −2

Discussion