From: alexei@taf.ru To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] Сборка расширений PostgreSQL Date: Wed, 9 Feb 2022 22:04:45 +0800 (IRKT) Message-ID: <419758722.890666.1644415485964.JavaMail.zimbra@taf.ru> (raw) In-Reply-To: <7480066.mvxVpQNFUy@zerg.malta.altlinux.ru> ----- Исходное сообщение ----- > От: "Sergey V Turchin" <zerg@altlinux.org> > Кому: "ALT Linux Team development discussions" <devel@lists.altlinux.org> > Отправленные: Среда, 9 Февраль 2022 г 21:43:03 > Тема: Re: [devel] Сборка расширений PostgreSQL > On Wednesday, 9 February 2022 16:25:43 MSK alexei wrote: > > [...] >> > Например, одна из реализаций может содержать >> > "Provides: postgresql-server-devel". >> >> Идея как раз в том, что если кому-то надо именно серверный API, то он должен >> четко понимать под какую ветку он собирает приложение, > Сейчас там "12" "11" "10" "9.6" "9.5" "9.4" "9.3" "9.2" "9.1" "9.0" "8.4" > "8.3" "8.2" "8.1" "8.0" в их FindPostgreSQL.cmake, поэтому лучше будет, если я > решу сделать > BuildRequires: postgresql-devel >= 8 > BuildRequires: postgresql-devel < 13 > Зачем мне для этого postgresql-непонялзачем-devel ? Потмоу что приложение явно хочет получить доступ к серверному API: cmake/modules/FindPostgreSQL.cmake: ... set(PostgreSQL_ADDITIONAL_SEARCH_PATHS ${PostgreSQL_ADDITIONAL_SEARCH_PATHS} "/usr/include/postgresql/${suffix}/server") ... Главным образом ему нужен файл find_path(PostgreSQL_TYPE_INCLUDE_DIR NAMES catalog/pg_type.h PATHS # Look in other places. ${PostgreSQL_ROOT_DIRECTORIES} PATH_SUFFIXES postgresql pgsql/server postgresql/server include/server # Help the user find it if we cannot. DOC "${PostgreSQL_INCLUDE_DIR_MESSAGE}" ) ... На протяжении длительного времени у нас h-файлы от libpq, нужные обычным клиентским программам, и серверные заголовки были свалены в одну кучу. По этой причине было невозможно собирать серверные расширения под все имеющиеся ветки сервера. Собственно, если приложение знать не знает про версии новее 12, то имеет смысл как раз задать ему зависимость postgresql12-server-devel, и тогда оно полоучит именно то, что ожидает.
next prev parent reply other threads:[~2022-02-09 14:04 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-04 17:50 alexei 2022-02-04 17:56 ` Anton V. Boyarshinov 2022-02-04 18:41 ` Dmitry V. Levin 2022-02-09 12:51 ` alexei 2022-02-09 13:14 ` Dmitry V. Levin 2022-02-09 13:25 ` alexei 2022-02-09 13:29 ` alexei 2022-02-09 13:34 ` Dmitry V. Levin 2022-02-09 13:43 ` Sergey V Turchin 2022-02-09 14:04 ` alexei [this message] 2022-02-09 14:15 ` Sergey V Turchin 2022-02-09 14:34 ` alexei 2022-02-09 14:45 ` Sergey V Turchin 2022-02-09 15:06 ` alexei 2022-02-10 6:51 ` Sergey V Turchin 2022-02-09 14:48 ` Sergey V Turchin 2022-02-09 15:03 ` alexei 2022-02-10 6:53 ` Sergey V Turchin 2022-02-10 9:41 ` alexei 2022-02-10 9:58 ` Sergey V Turchin 2022-02-10 10:15 ` alexei 2022-02-10 10:52 ` Sergey V Turchin 2022-02-10 11:10 ` alexei 2022-02-10 11:22 ` Sergey V Turchin 2022-02-10 11:44 ` alexei 2022-02-10 12:16 ` Sergey V Turchin 2022-02-09 16:03 ` Dmitry V. Levin 2022-02-09 13:30 ` Sergey V Turchin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=419758722.890666.1644415485964.JavaMail.zimbra@taf.ru \ --to=alexei@taf.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git