Skip to content

Commit a00fae9

Browse files
committed
Fallback to uuid for ossp-uuid with meson
The upstream name for the ossp-uuid package / pkg-config file is "uuid". Many distributions change this to be "ossp-uuid" to not conflict with e2fsprogs. This lookup fails on distributions which don't change this name, for example NixOS / nixpkgs. Both "ossp-uuid" and "uuid" are also checked in configure.ac. Author: Wolfgang Walther Reviewed-by: Nazir Bilal Yavuz, Alvaro Herrera, Peter Eisentraut Reviewed-by: Tristan Partin Discussion: https://www.postgresql.org/message-id/ca8f37e1-a2c3-40e2-91f6-59c3d3652ad4@technowledgy.de Backpatch: 16-, where meson support was added
1 parent c9e2457 commit a00fae9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,16 +1416,16 @@ if uuidopt != 'none'
14161416
uuidfunc = 'uuid_to_string'
14171417
uuidheader = 'uuid.h'
14181418
elif uuidopt == 'ossp'
1419-
uuid = dependency('ossp-uuid', required: false)
1419+
# In upstream, the package and library is called just 'uuid', but many
1420+
# distros change it to 'ossp-uuid'.
1421+
uuid = dependency('ossp-uuid', 'uuid', required: false)
14201422
uuidfunc = 'uuid_export'
14211423
uuidheader = 'uuid.h'
14221424

14231425
# Hardcoded lookup for ossp-uuid. This is necessary as ossp-uuid on
14241426
# windows installs neither a pkg-config nor a cmake dependency
14251427
# information. Nor is there another supported uuid implementation
14261428
# available on windows.
1427-
#
1428-
# Sometimes the ossp-uuid library is named 'uuid' sometimes 'ossp-uuid'
14291429
if not uuid.found()
14301430
uuid = cc.find_library('ossp-uuid',
14311431
required: false, dirs: test_lib_d,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy