From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: meson oddities |
Date: | 2023-01-19 20:45:49 |
Message-ID: | 20230119204549.poff6kuoqduqamw3@awork3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
On 2023-01-19 21:37:15 +0100, Peter Eisentraut wrote:
> On 11.01.23 12:05, Peter Eisentraut wrote:
> > I think there is also an adjacent issue: The subdir options may be
> > absolute or relative. So if you specify --prefix=/usr/local and
> > --sysconfdir=/etc/postgresql, then
> >
> > config_paths_data.set_quoted('SYSCONFDIR', dir_prefix / dir_sysconf)
> >
> > would produce something like /usr/local/etc/postgresql.
I don't think it would. The / operator understands absolute paths and doesn't
add the "first component" if the second component is absolute.
>
> dir_bin = get_option('bindir')
> +if not fs.is_absolute(dir_bin)
> + dir_bin = dir_prefix / dir_bin
> +endif
Hm, I'm not sure this works entirely right on windows. A path like /blub isn't
absolute on windows, but it's not really relative either. It's a "drive local"
path. I.e. relative to the current drive (c:/), but not the subdirectory
therein.
Greetings,
Andres Freund
From | Date | Subject | |
---|---|---|---|
Next Message | Jacob Champion | 2023-01-19 20:48:03 | Re: Transparent column encryption |
Previous Message | Peter Eisentraut | 2023-01-19 20:37:15 | Re: meson oddities |