From 91d74110fa1aa721fde97e51403d55a488f426d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=B6jdh?= Date: Mon, 18 Aug 2025 12:14:54 +0200 Subject: [PATCH] specified glibc in conda build (#222) Fixed a runtime error on older linux systems, since by mistake we used glibc from ubutu 24. Same code as in slsDetectorPackage now. --- RELEASE.md | 4 ++++ conda-recipe/conda_build_config.yaml | 11 +++++++++++ conda-recipe/meta.yaml | 2 ++ 3 files changed, 17 insertions(+) diff --git a/RELEASE.md b/RELEASE.md index a0c0704..d63be8b 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -10,6 +10,10 @@ Features: - calculate pedestal (also g0 version) +Bugfixes: + +- Now using glibc 2.17 in conda builds (was using the host) + ### 2025.07.18 Features: diff --git a/conda-recipe/conda_build_config.yaml b/conda-recipe/conda_build_config.yaml index 6d3d479..543bf00 100644 --- a/conda-recipe/conda_build_config.yaml +++ b/conda-recipe/conda_build_config.yaml @@ -3,3 +3,14 @@ python: - 3.12 - 3.13 +c_compiler: + - gcc # [linux] + +c_stdlib: + - sysroot # [linux] + +cxx_compiler: + - gxx # [linux] + +c_stdlib_version: # [linux] + - 2.17 # [linux] diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 8fea745..7aabea1 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -16,6 +16,8 @@ build: requirements: build: + - {{ compiler('c') }} + - {{ stdlib("c") }} - {{ compiler('cxx') }} - cmake - ninja