Re: meson oddities

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: meson oddities
Дата
Msg-id 13893d09-e53e-9f98-2c1c-2d1c5c14c010@enterprisedb.com
обсуждение исходный текст
Ответ на Re: meson oddities  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: meson oddities  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
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 think maybe we should make all the dir_* variables absolute right at 
> the beginning, like
> 
>      dir_lib = get_option('libdir')
>      if not fs.is_absolute(dir_lib)
>          dir_lib = dir_prefix / dir_lib
>      endif
> 
> And then the appending stuff could be done after that, keeping the 
> current code.

Here is a proposed patch.  This should fix all these issues.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BF animal malleefowl reported an failure in 001_password.pl
Следующее
От: Andres Freund
Дата:
Сообщение: Re: meson oddities