From 03079213a4fab27d14d20a6cc2a2090eaf07832f Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Sat, 22 Oct 2022 00:24:10 +1100 Subject: [PATCH] abseil has no minor numbers for pkgconfig metadata --- recipe/meta.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 5a554d0..9cd1e0c 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,4 +1,5 @@ {% set version = "20220623.0" %} +{% set v_major = version.split(".")[0] %} # shared builds for flags_* libraries are not supported on windows, see # https://github.com/abseil/abseil-cpp/pull/1115 @@ -88,11 +89,11 @@ outputs: {% endif %} # pkg-config (should point to abseil_dll on shared windows builds) - - pkg-config --print-errors --exact-version "{{ version }}" absl_{{ each_lib }} + - pkg-config --print-errors --exact-version "{{ v_major }}" absl_{{ each_lib }} {% endfor %} # pkg-config (abseil_dll) - - pkg-config --print-errors --exact-version "{{ version }}" abseil_dll # [win] + - pkg-config --print-errors --exact-version "{{ v_major }}" abseil_dll # [win] {% else %} # shared_libs == "OFF" @@ -129,7 +130,7 @@ outputs: - test ! -f $PREFIX/lib/libabsl_{{ each_lib }}${SHLIB_EXT} # [unix] # pkg-config - - pkg-config --print-errors --exact-version "{{ version }}" absl_{{ each_lib }} + - pkg-config --print-errors --exact-version "{{ v_major }}" absl_{{ each_lib }} {% endfor %} {% endif %} # shared_libs == "ON" / "OFF"