From b80cc32d0e5b06d387aab21e11c8cb39109591e4 Mon Sep 17 00:00:00 2001 From: regro-cf-autotick-bot <36490558+regro-cf-autotick-bot@users.noreply.github.com> Date: Wed, 7 Aug 2024 05:25:40 +0000 Subject: [PATCH 01/16] updated v3.12.5 --- recipe/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index fe32deb3..a9d726a6 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,4 +1,4 @@ -{% set version = "3.12.4" %} +{% set version = "3.12.5" %} {% set dev = "" %} {% set dev_ = "" %} {% set ver2 = '.'.join(version.split('.')[0:2]) %} @@ -46,7 +46,7 @@ source: {% else %} - url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}{{ dev }}.tar.xz # md5 from: https://www.python.org/downloads/release/python-{{ ver3nd }}{{ dev }}/ - md5: d68f25193eec491eb54bc2ea664a05bd + md5: 02c7d269e077f4034963bba6befdc715 {% endif %} patches: - patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch From e1354e51ef0962f08cf7a076037045bc537dfdb2 Mon Sep 17 00:00:00 2001 From: regro-cf-autotick-bot <36490558+regro-cf-autotick-bot@users.noreply.github.com> Date: Wed, 7 Aug 2024 05:26:26 +0000 Subject: [PATCH 02/16] MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.37.2, and conda-forge-pinning 2024.08.07.04.40.03 --- .azure-pipelines/azure-pipelines-win.yml | 2 +- ...pedebugchannel_targetsconda-forge_python_debug.yaml | 4 ++-- ...ild_typereleasechannel_targetsconda-forge_main.yaml | 4 ++-- .scripts/build_steps.sh | 10 ++++++++-- .scripts/run_osx_build.sh | 2 +- build-locally.py | 4 ++-- 6 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 8be59069..ae079344 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -25,7 +25,7 @@ jobs: scriptSource: inline script: | import urllib.request - url = 'https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe' + url = 'https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe' path = r"$(Build.ArtifactStagingDirectory)/Miniforge.exe" urllib.request.urlretrieve(url, path) diff --git a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debug.yaml b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debug.yaml index c29363c0..3b3d4b76 100644 --- a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debug.yaml +++ b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debug.yaml @@ -9,9 +9,9 @@ c_compiler_version: c_stdlib: - sysroot c_stdlib_version: -- '2.12' +- '2.17' cdt_name: -- cos6 +- cos7 channel_sources: - conda-forge channel_targets: diff --git a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_main.yaml b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_main.yaml index e36dd35f..44643869 100644 --- a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_main.yaml +++ b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_main.yaml @@ -9,9 +9,9 @@ c_compiler_version: c_stdlib: - sysroot c_stdlib_version: -- '2.12' +- '2.17' cdt_name: -- cos6 +- cos7 channel_sources: - conda-forge channel_targets: diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index 07d926d8..6c419723 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -43,6 +43,12 @@ setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" source run_conda_forge_build_setup +( +# Due to https://bugzilla.redhat.com/show_bug.cgi?id=1537564 old versions of rpm +# are drastically slowed down when the number of file descriptors is very high. +# This can be visible during a `yum install` step of a feedstock build. +# => Set a lower limit in a subshell for the `yum install`s only. +ulimit -n 1024 # Install the yum requirements defined canonically in the # "recipe/yum_requirements.txt" file. After updating that file, @@ -51,7 +57,8 @@ source run_conda_forge_build_setup /usr/bin/sudo -n yum install -y libx11 libXext-devel libXrender-devel libSM-devel libX11-devel -# make the build number clobber + +)# make the build number clobber make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" if [[ "${HOST_PLATFORM}" != "${BUILD_PLATFORM}" ]] && [[ "${HOST_PLATFORM}" != linux-* ]] && [[ "${BUILD_WITH_CONDA_DEBUG:-0}" != 1 ]]; then @@ -80,7 +87,6 @@ else --suppress-variables ${EXTRA_CB_OPTIONS:-} \ --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" \ --extra-meta flow_run_id="${flow_run_id:-}" remote_url="${remote_url:-}" sha="${sha:-}" - ( startgroup "Inspecting artifacts" ) 2> /dev/null # inspect_artifacts was only added in conda-forge-ci-setup 4.6.0 diff --git a/.scripts/run_osx_build.sh b/.scripts/run_osx_build.sh index 2e644779..26c31365 100755 --- a/.scripts/run_osx_build.sh +++ b/.scripts/run_osx_build.sh @@ -11,7 +11,7 @@ MINIFORGE_HOME=${MINIFORGE_HOME:-${HOME}/miniforge3} ( startgroup "Installing a fresh version of Miniforge" ) 2> /dev/null MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/latest/download" -MINIFORGE_FILE="Mambaforge-MacOSX-$(uname -m).sh" +MINIFORGE_FILE="Miniforge3-MacOSX-$(uname -m).sh" curl -L -O "${MINIFORGE_URL}/${MINIFORGE_FILE}" rm -rf ${MINIFORGE_HOME} bash $MINIFORGE_FILE -b -p ${MINIFORGE_HOME} diff --git a/build-locally.py b/build-locally.py index e0d408d0..d78427b5 100755 --- a/build-locally.py +++ b/build-locally.py @@ -3,11 +3,11 @@ # This file has been generated by conda-smithy in order to build the recipe # locally. # -import os import glob +import os +import platform import subprocess from argparse import ArgumentParser -import platform def setup_environment(ns): From 6691bd5e405670afbc4e6a718b41c13d68495a1f Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 7 Aug 2024 22:34:12 -0500 Subject: [PATCH 03/16] Update conda-forge.yml --- conda-forge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda-forge.yml b/conda-forge.yml index edc9c39a..9ee5f49f 100644 --- a/conda-forge.yml +++ b/conda-forge.yml @@ -1,4 +1,4 @@ -build_platform: {osx_arm64: osx_64} +build_platform: {osx_arm64: osx_64, linux_ppc64le: linux_64, linux_aarch64: linux_64} conda_forge_output_validation: true provider: {linux_aarch64: default, linux_ppc64le: native} bot: From 1c5bf510264158e1bfe6a9ea7c8929eb99361d14 Mon Sep 17 00:00:00 2001 From: "conda-forge-webservices[bot]" <91080706+conda-forge-webservices[bot]@users.noreply.github.com> Date: Thu, 8 Aug 2024 03:50:21 +0000 Subject: [PATCH 04/16] MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.37.2, and conda-forge-pinning 2024.08.08.01.34.24 --- .azure-pipelines/azure-pipelines-linux.yml | 20 ++++++++++ ...annel_targetsconda-forge_python_debug.yaml | 2 +- ...eleasechannel_targetsconda-forge_main.yaml | 2 +- ...annel_targetsconda-forge_python_debug.yaml | 2 +- ...eleasechannel_targetsconda-forge_main.yaml | 2 +- .travis.yml | 40 ------------------- README.md | 25 +++++------- 7 files changed, 33 insertions(+), 60 deletions(-) delete mode 100644 .travis.yml diff --git a/.azure-pipelines/azure-pipelines-linux.yml b/.azure-pipelines/azure-pipelines-linux.yml index 84a05ec3..acf21ca6 100755 --- a/.azure-pipelines/azure-pipelines-linux.yml +++ b/.azure-pipelines/azure-pipelines-linux.yml @@ -18,6 +18,26 @@ jobs: UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 SHORT_CONFIG: linux_64_build_typereleasechannel_t_h0a44af7c38 + linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debug: + CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debug + UPLOAD_PACKAGES: 'True' + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 + SHORT_CONFIG: linux_aarch64_build_typedebugchanne_h4e1127e844 + linux_aarch64_build_typereleasechannel_targetsconda-forge_main: + CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_main + UPLOAD_PACKAGES: 'True' + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 + SHORT_CONFIG: linux_aarch64_build_typereleasechan_hcde066807d + linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debug: + CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debug + UPLOAD_PACKAGES: 'True' + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 + SHORT_CONFIG: linux_ppc64le_build_typedebugchanne_he8193b4f7f + linux_ppc64le_build_typereleasechannel_targetsconda-forge_main: + CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_main + UPLOAD_PACKAGES: 'True' + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 + SHORT_CONFIG: linux_ppc64le_build_typereleasechan_h12bca821c7 timeoutInMinutes: 360 variables: {} diff --git a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debug.yaml b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debug.yaml index f8c064ec..8959a117 100644 --- a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debug.yaml +++ b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debug.yaml @@ -25,7 +25,7 @@ cxx_compiler: cxx_compiler_version: - '12' docker_image: -- quay.io/condaforge/linux-anvil-aarch64 +- quay.io/condaforge/linux-anvil-cos7-x86_64 expat: - '2' libffi: diff --git a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_main.yaml b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_main.yaml index 116d25a4..256d6c49 100644 --- a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_main.yaml +++ b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_main.yaml @@ -25,7 +25,7 @@ cxx_compiler: cxx_compiler_version: - '12' docker_image: -- quay.io/condaforge/linux-anvil-aarch64 +- quay.io/condaforge/linux-anvil-cos7-x86_64 expat: - '2' libffi: diff --git a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debug.yaml b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debug.yaml index 663fa252..16804e7b 100644 --- a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debug.yaml +++ b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debug.yaml @@ -21,7 +21,7 @@ cxx_compiler: cxx_compiler_version: - '12' docker_image: -- quay.io/condaforge/linux-anvil-ppc64le +- quay.io/condaforge/linux-anvil-cos7-x86_64 expat: - '2' libffi: diff --git a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_main.yaml b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_main.yaml index 8b77b890..d955476d 100644 --- a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_main.yaml +++ b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_main.yaml @@ -21,7 +21,7 @@ cxx_compiler: cxx_compiler_version: - '12' docker_image: -- quay.io/condaforge/linux-anvil-ppc64le +- quay.io/condaforge/linux-anvil-cos7-x86_64 expat: - '2' libffi: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 31daf299..00000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This file was generated automatically from conda-smithy. To update this configuration, -# update the conda-forge.yml and/or the recipe/meta.yaml. - -language: shell - - - -jobs: - include: - - env: CONFIG=linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debug UPLOAD_PACKAGES=True PLATFORM=linux-aarch64 DOCKER_IMAGE=quay.io/condaforge/linux-anvil-aarch64 - os: linux - arch: arm64 - dist: focal - - - env: CONFIG=linux_aarch64_build_typereleasechannel_targetsconda-forge_main UPLOAD_PACKAGES=True PLATFORM=linux-aarch64 DOCKER_IMAGE=quay.io/condaforge/linux-anvil-aarch64 - os: linux - arch: arm64 - dist: focal - - - env: CONFIG=linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debug UPLOAD_PACKAGES=True PLATFORM=linux-ppc64le DOCKER_IMAGE=quay.io/condaforge/linux-anvil-ppc64le - os: linux - arch: ppc64le - dist: focal - - - env: CONFIG=linux_ppc64le_build_typereleasechannel_targetsconda-forge_main UPLOAD_PACKAGES=True PLATFORM=linux-ppc64le DOCKER_IMAGE=quay.io/condaforge/linux-anvil-ppc64le - os: linux - arch: ppc64le - dist: focal - -script: - - export CI=travis - - export GIT_BRANCH="$TRAVIS_BRANCH" - - export flow_run_id="travis_$TRAVIS_JOB_ID" - - export sha="$TRAVIS_COMMIT" - - export remote_url="https://github.com/$TRAVIS_REPO_SLUG" - - export FEEDSTOCK_NAME=$(basename ${TRAVIS_REPO_SLUG}) - - if [[ "${TRAVIS_PULL_REQUEST:-}" == "false" ]]; then export IS_PR_BUILD="False"; else export IS_PR_BUILD="True"; fi - - - - if [[ ${PLATFORM} =~ .*linux.* ]]; then CONDA_FORGE_DOCKER_RUN_ARGS="--network=host --security-opt=seccomp=unconfined" ./.scripts/run_docker_build.sh; fi \ No newline at end of file diff --git a/README.md b/README.md index 758d0244..1562065d 100644 --- a/README.md +++ b/README.md @@ -25,14 +25,7 @@ Current build status ==================== - - - - +
Travis - - linux - -
@@ -141,14 +134,14 @@ Current release info Installing python ================= -Installing `python` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: +Installing `python` from the `conda-forge/label/python_debug` channel can be achieved by adding `conda-forge/label/python_debug` to your channels with: ``` -conda config --add channels conda-forge +conda config --add channels conda-forge/label/python_debug conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `libpython-static, python` can be installed with `conda`: +Once the `conda-forge/label/python_debug` channel has been enabled, `libpython-static, python` can be installed with `conda`: ``` conda install libpython-static python @@ -163,26 +156,26 @@ mamba install libpython-static python It is possible to list all of the versions of `libpython-static` available on your platform with `conda`: ``` -conda search libpython-static --channel conda-forge +conda search libpython-static --channel conda-forge/label/python_debug ``` or with `mamba`: ``` -mamba search libpython-static --channel conda-forge +mamba search libpython-static --channel conda-forge/label/python_debug ``` Alternatively, `mamba repoquery` may provide more information: ``` # Search all versions available on your platform: -mamba repoquery search libpython-static --channel conda-forge +mamba repoquery search libpython-static --channel conda-forge/label/python_debug # List packages depending on `libpython-static`: -mamba repoquery whoneeds libpython-static --channel conda-forge +mamba repoquery whoneeds libpython-static --channel conda-forge/label/python_debug # List dependencies of `libpython-static`: -mamba repoquery depends libpython-static --channel conda-forge +mamba repoquery depends libpython-static --channel conda-forge/label/python_debug ``` From 9abe24a2ae0db7790692680ec4770df74e7ec67a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 08:28:17 -0500 Subject: [PATCH 05/16] fix cross compile --- recipe/build_base.sh | 8 +++++--- recipe/meta.yaml | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index 96221de2..0effffeb 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -174,15 +174,17 @@ if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then ln -s ${BUILD_PYTHON_PREFIX}/bin/python${VER} ${BUILD_PYTHON_PREFIX}/bin/python popd echo "ac_cv_file__dev_ptmx=yes" > config.site - echo "ac_cv_file__dev_ptc=yes" >> config.site + echo "ac_cv_file__dev_ptc=no" >> config.site echo "ac_cv_pthread=yes" >> config.site echo "ac_cv_little_endian_double=yes" >> config.site - if [[ ${target_platform} == osx-arm64 ]]; then + if [[ "${target_platform}" == "osx-arm64" || "${target_platform}" == "linux-ppc64le" || "${target_platform}" == "linux-aarch64" ]]; then echo "ac_cv_aligned_required=no" >> config.site - echo "ac_cv_file__dev_ptc=no" >> config.site echo "ac_cv_pthread_is_default=yes" >> config.site echo "ac_cv_working_tzset=yes" >> config.site echo "ac_cv_pthread_system_supported=yes" >> config.site + else + echo "unknown cross compiling platform" + exit 1 fi export CONFIG_SITE=${PWD}/config.site # This is needed for libffi: diff --git a/recipe/meta.yaml b/recipe/meta.yaml index a9d726a6..1799baf5 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -164,6 +164,7 @@ outputs: - readline # [build_platform != target_platform] - ncurses # [build_platform != target_platform] - zlib # [build_platform != target_platform] + - xz # [build_platform != target_platform] host: - bzip2 - sqlite From 8e18490a3e97de3bebd5be3edf3149ae05b37cb8 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 09:09:00 -0500 Subject: [PATCH 06/16] Fix cross compile deps --- recipe/meta.yaml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 1799baf5..64186732 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -160,11 +160,19 @@ outputs: {% if 'conda-forge' in channel_targets %} - binutils_impl_{{ target_platform }} # [linux] {% endif %} - - tk # [build_platform != target_platform] - - readline # [build_platform != target_platform] - - ncurses # [build_platform != target_platform] - - zlib # [build_platform != target_platform] - - xz # [build_platform != target_platform] + - bzip2 # [build_platform != target_platform] + - sqlite # [build_platform != target_platform] + - xz # [build_platform != target_platform] + - zlib # [build_platform != target_platform] + - openssl # [build_platform != target_platform] + - readline # [not win and build_platform != target_platform] + - tk # [build_platform != target_platform] + - ncurses # [unix and build_platform != target_platform] + - libffi # [build_platform != target_platform] + - libnsl # [linux and build_platform != target_platform] + - libuuid # [linux and build_platform != target_platform] + - libxcrypt # [linux and build_platform != target_platform] + - expat # [build_platform != target_platform] host: - bzip2 - sqlite From 9c4da4c73e1f47b966b9b9bf9579f278b51f97a7 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 09:20:05 -0500 Subject: [PATCH 07/16] Fix flags --- recipe/build_base.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index 0effffeb..acc68b70 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -156,8 +156,8 @@ if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then export CC=${CC_FOR_BUILD} \ CXX=${CXX_FOR_BUILD} \ CPP="${CC_FOR_BUILD} -E" \ - CFLAGS="-O2" \ - LDFLAGS=${LDFLAGS//${PREFIX}/${CONDA_PREFIX}} \ + CFLAGS="-O2 -I${BUILD_PREFIX}" \ + LDFLAGS=${LDFLAGS//${PREFIX}/${BUILD_PREFIX}} \ PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig \ AR="$(${CC_FOR_BUILD} --print-prog-name=ar)" \ RANLIB="$(${CC_FOR_BUILD} --print-prog-name=ranlib)" \ From e39a18a86a1e4a63a5ead9d9d2580318312cea1c Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 09:30:29 -0500 Subject: [PATCH 08/16] fix CPPFLAGS --- recipe/build_base.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index acc68b70..9ed0b660 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -152,11 +152,11 @@ if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then BUILD_PYTHON_PREFIX=${PWD}/build-python-install mkdir build-python-build pushd build-python-build - (unset CPPFLAGS; - export CC=${CC_FOR_BUILD} \ + (export CC=${CC_FOR_BUILD} \ CXX=${CXX_FOR_BUILD} \ CPP="${CC_FOR_BUILD} -E" \ CFLAGS="-O2 -I${BUILD_PREFIX}" \ + CPPFLAGS="-O2 -I${BUILD_PREFIX}" \ LDFLAGS=${LDFLAGS//${PREFIX}/${BUILD_PREFIX}} \ PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig \ AR="$(${CC_FOR_BUILD} --print-prog-name=ar)" \ From 875fdd2e0b75e10776b159d29c4e41da7689fa8b Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 09:42:03 -0500 Subject: [PATCH 09/16] Fix typo --- recipe/build_base.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index 9ed0b660..3c09c291 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -155,8 +155,8 @@ if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then (export CC=${CC_FOR_BUILD} \ CXX=${CXX_FOR_BUILD} \ CPP="${CC_FOR_BUILD} -E" \ - CFLAGS="-O2 -I${BUILD_PREFIX}" \ - CPPFLAGS="-O2 -I${BUILD_PREFIX}" \ + CFLAGS="-O2 -I${BUILD_PREFIX}/include" \ + CPPFLAGS="-O2 -I${BUILD_PREFIX}/include" \ LDFLAGS=${LDFLAGS//${PREFIX}/${BUILD_PREFIX}} \ PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig \ AR="$(${CC_FOR_BUILD} --print-prog-name=ar)" \ From b50dee99095b5ea1b40d4e32041f6d6ce104a83b Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 10:33:12 -0500 Subject: [PATCH 10/16] Update if_runnable patch --- .../0020-Don-t-checksharedmods-if-cross-compiling.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch index 450beeac..922045e0 100644 --- a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch +++ b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch @@ -27,9 +27,10 @@ new file mode 100755 index 0000000000..14f84a8597 --- /dev/null +++ b/if_runnable.sh -@@ -0,0 +1,5 @@ +@@ -0,0 +1,6 @@ +#!/bin/bash + +if [[ "${target_platform}" == "${build_platform}" || "${CROSSCOMPILING_EMULATOR:-}" != "" ]]; then -+ exec $* ++ export ${@:1:$#-2} ++ exec ${@: -2} +fi From 1839854d7f011e838261f8cca5071b0ca0dd7ba2 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 10:57:16 -0500 Subject: [PATCH 11/16] Fix if_runnable again --- .../0020-Don-t-checksharedmods-if-cross-compiling.patch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch index 922045e0..1a3acc91 100644 --- a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch +++ b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch @@ -27,10 +27,14 @@ new file mode 100755 index 0000000000..14f84a8597 --- /dev/null +++ b/if_runnable.sh -@@ -0,0 +1,6 @@ +@@ -0,0 +1,10 @@ +#!/bin/bash + +if [[ "${target_platform}" == "${build_platform}" || "${CROSSCOMPILING_EMULATOR:-}" != "" ]]; then ++ if [[ "$1" == "./python" ]]; then ++ exec $@ ++ else + export ${@:1:$#-2} + exec ${@: -2} ++ fi +fi From dc5fdcc21f31e8dc72fbbbf95308796e7ab54597 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 11:13:04 -0500 Subject: [PATCH 12/16] Fix again --- .../patches/0020-Don-t-checksharedmods-if-cross-compiling.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch index 1a3acc91..ac282264 100644 --- a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch +++ b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch @@ -31,7 +31,7 @@ index 0000000000..14f84a8597 +#!/bin/bash + +if [[ "${target_platform}" == "${build_platform}" || "${CROSSCOMPILING_EMULATOR:-}" != "" ]]; then -+ if [[ "$1" == "./python" ]]; then ++ if [[ "$1" == "./"* ]]; then + exec $@ + else + export ${@:1:$#-2} From 2dd81ac44a67533653fd8d0edb0d9317d6aed05c Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 11:43:17 -0500 Subject: [PATCH 13/16] fix yum --- recipe/yum_requirements.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/recipe/yum_requirements.txt b/recipe/yum_requirements.txt index 8991c682..e05f1a42 100644 --- a/recipe/yum_requirements.txt +++ b/recipe/yum_requirements.txt @@ -1,5 +1,3 @@ libx11 -libXext-devel -libXrender-devel -libSM-devel -libX11-devel +libxcb +libxau From a7d8dc58efdbc6b12b7b13834c33d49d20a34a25 Mon Sep 17 00:00:00 2001 From: "conda-forge-webservices[bot]" <91080706+conda-forge-webservices[bot]@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:45:04 +0000 Subject: [PATCH 14/16] MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.37.2, and conda-forge-pinning 2024.08.08.12.42.10 --- .scripts/build_steps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index 6c419723..c6835249 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -54,7 +54,7 @@ ulimit -n 1024 # "recipe/yum_requirements.txt" file. After updating that file, # run "conda smithy rerender" and this line will be updated # automatically. -/usr/bin/sudo -n yum install -y libx11 libXext-devel libXrender-devel libSM-devel libX11-devel +/usr/bin/sudo -n yum install -y libx11 libxcb libxau From dfc668dece5e1f06708cfc6f5c5b355c3cdf2af0 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 8 Aug 2024 12:07:31 -0500 Subject: [PATCH 15/16] fix typo --- recipe/yum_requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/yum_requirements.txt b/recipe/yum_requirements.txt index e05f1a42..cfb2ee6b 100644 --- a/recipe/yum_requirements.txt +++ b/recipe/yum_requirements.txt @@ -1,3 +1,3 @@ -libx11 +libX11 libxcb libxau From 8001887b9d1287195ed55cea9a372c2cc0a88182 Mon Sep 17 00:00:00 2001 From: "conda-forge-webservices[bot]" <91080706+conda-forge-webservices[bot]@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:09:09 +0000 Subject: [PATCH 16/16] MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.37.2, and conda-forge-pinning 2024.08.08.12.42.10 --- .scripts/build_steps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index c6835249..837e09f1 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -54,7 +54,7 @@ ulimit -n 1024 # "recipe/yum_requirements.txt" file. After updating that file, # run "conda smithy rerender" and this line will be updated # automatically. -/usr/bin/sudo -n yum install -y libx11 libxcb libxau +/usr/bin/sudo -n yum install -y libX11 libxcb libxau
Azure