Skip to content

Commit

Permalink
liburing: override "liburing" dependency name
Browse files Browse the repository at this point in the history
The pkg-config name of liburing is "liburing", so ideally it would be
possible to use just

  dependency('liburing')

to find either the system provided liburing or fall back to the subproject.
However, that does not work since the liburing wrap project does not
override or provide the "liburing" dependency name, so one has to use

  dependency('liburing', fallback: ['liburing', 'uring'])

or

  dependency('liburing', 'uring')

This change makes it possible to use

  dependency('liburing')

with both system (pkg-config) and the wrapdb provided liburing.
  • Loading branch information
pobrn authored and neheb committed May 10, 2023
1 parent d41fd1d commit af29310
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -1350,9 +1350,11 @@
},
"liburing": {
"dependency_names": [
"liburing",
"uring"
],
"versions": [
"2.3-2",
"2.3-1",
"2.2-2",
"2.2-1",
Expand Down
2 changes: 1 addition & 1 deletion subprojects/liburing.wrap
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ source_hash = 60b367dbdc6f2b0418a6e0cd203ee0049d9d629a36706fcf91dfb9428bae23c8
patch_directory = liburing

[provide]
uring = uring
dependency_names = liburing, uring
3 changes: 3 additions & 0 deletions subprojects/packagefiles/liburing/src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ liburing = library('uring',

uring = declare_dependency(link_with: liburing,
include_directories: inc)

meson.override_dependency('liburing', uring)
meson.override_dependency('uring', uring)

0 comments on commit af29310

Please sign in to comment.