1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-04 09:43:08 +02:00

Require the lz4 library in the meson build.

We would like to use lz4 for protocol compression instead of gz but first we need to make sure this is not going to cause a problem for packaging.

To do this make lz4 required in meson but make no changes to the code so this is an easy revert for packagers if there is an issue.
This commit is contained in:
David Steele 2024-06-25 16:04:02 +08:00
parent acb9b6ccbe
commit 0c32757fd9
3 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,9 @@
<release date="XXXX-XX-XX" version="2.53dev" title="UNDER DEVELOPMENT">
<release-core-list>
<text>
<p><b>NOTE TO PACKAGERS</b>: The <proper>lz4</proper> library is now required by the meson build.</p>
</text>
<release-bug-list>
<release-item>
<github-issue id="2358"/>

View File

@ -146,11 +146,9 @@ endif
lib_bz2 = cc.find_library('bz2')
# Find optional lz4 library
lib_lz4 = dependency('liblz4', required: get_option('liblz4'))
lib_lz4 = dependency('liblz4')
if lib_lz4.found()
configuration.set('HAVE_LIBLZ4', true, description: 'Is liblz4 present?')
endif
configuration.set('HAVE_LIBLZ4', true, description: 'Is liblz4 present?')
# Find required openssl library
lib_openssl = dependency('openssl')

View File

@ -1,5 +1,4 @@
option('configdir', type: 'string', value: '/etc/pgbackrest', description: 'Configuration directory')
option('fatal-errors', type: 'boolean', value: false, description: 'Stop compilation on first error')
option('liblz4', type: 'feature', value: 'auto', description: 'Enable LZ4 compression support')
option('libssh2', type: 'feature', value: 'auto', description: 'Enable SFTP storage support')
option('libzstd', type: 'feature', value: 'auto', description: 'Enable Zstandard compression support')