Skip to content

feat conan: add libpq patch support#1128

Open
vasily-sviridov wants to merge 1 commit intouserver-framework:developfrom
vasily-sviridov:sviridov-patch-conan-libpq-patch
Open

feat conan: add libpq patch support#1128
vasily-sviridov wants to merge 1 commit intouserver-framework:developfrom
vasily-sviridov:sviridov-patch-conan-libpq-patch

Conversation

@vasily-sviridov
Copy link
Contributor

@vasily-sviridov vasily-sviridov commented Feb 25, 2026

Проект успешно сконфигурировался: https://pastebin.com/NuU8x1ZQ подтянув openldap и kerberos из conan.

conan create . --version=2.15 --build=missing -s build_type=Debug -s:b build_type=Debug

Note: by creating a PR or an issue you automatically agree to the CLA. See CONTRIBUTING.md. Feel free to remove this note, the agreement holds.

Comment on lines +228 to +233
cmake_modules_path = os.path.join(self.source_folder, 'cmake', 'modules')
existing_module_path = tool_ch.cache_variables.get('CMAKE_MODULE_PATH', '')
if existing_module_path:
tool_ch.cache_variables['CMAKE_MODULE_PATH'] = f'{cmake_modules_path};{existing_module_path}'
else:
tool_ch.cache_variables['CMAKE_MODULE_PATH'] = cmake_modules_path
Copy link
Contributor Author

@vasily-sviridov vasily-sviridov Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот код мне совсем не нравится, мб это в какой-нибудь cmake-файл перенести? Посоветуйте место, пожалуйста.

Comment on lines +247 to +254
if self.options.with_postgresql_extra:
libpq = self.dependencies['libpq']
libpq_package_folder = libpq.package_folder

tool_ch.cache_variables['USERVER_PG_SERVER_INCLUDE_DIR'] = os.path.join(
libpq_package_folder, 'include', 'postgresql', 'server'
)
tool_ch.cache_variables['USERVER_PG_SERVER_LIBRARY_DIR'] = os.path.join(libpq_package_folder, 'lib')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не совсем очевидно, как это тестировать в рамках ci. libpq patch требует завендоренной версии libpq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant