Skip to content

Commit

Permalink
ensure libre2-{{ soversion }} is not co-installable for different s…
Browse files Browse the repository at this point in the history
…oversions

because any new soversion (which is validated also by the pkg-config check)
will then have a non-overlapping constraint for the allowed re2-version
  • Loading branch information
h-vetinari committed Jun 18, 2023
1 parent 8c2de94 commit f1666a3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# see https://github.com/google/re2/blob/2023-06-01/CMakeLists.txt#L32-L34
# changes more rarely than version
{% set soversion = "11" %}
# if you change the soversion, you MUST update the below to avoid broken metadata
{% set soversion_last_updated = "2023.06.02" %}

package:
name: re2-split
Expand Down Expand Up @@ -91,8 +93,12 @@ outputs:
- {{ compiler('cxx') }}
host:
- libabseil
run_constrained:
- re2 {{ version }} *_{{ PKG_BUILDNUM }}
run:
# keep expanding the valid range until the soversion gets bumped;
# this is a run-dep (not just a constraint) to avoid that different
# libre2-{X,Y} builds can be co-installed (because any new soversion
# will then have a non-overlapping range for the allowed re2-version)
- re2 >={{ soversion_last_updated }},<={{ dotversion }}
test:
commands:
# presence of versioned shared lib (unix) & plain dll (win)
Expand Down

0 comments on commit f1666a3

Please sign in to comment.