Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a variant without features to use latest sysroot outside conda-build #75

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ cross_target_platform:
ctng_vendor:
- conda
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
sysroot_cdt_arch:
- aarch64
sysroot_cdt_name:
- conda_2_28
- quay.io/condaforge/linux-anvil-alma-x86_64:8
target_machine:
- aarch64
with_features:
- 'false'
- 'true'
zip_keys:
- - target_machine
- cross_target_platform
- centos_machine
- sysroot_cdt_arch
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ cross_target_platform:
ctng_vendor:
- conda
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
sysroot_cdt_arch:
- ppc64le
sysroot_cdt_name:
- conda_2_28
- quay.io/condaforge/linux-anvil-alma-x86_64:8
target_machine:
- powerpc64le
with_features:
- 'false'
- 'true'
zip_keys:
- - target_machine
- cross_target_platform
- centos_machine
- sysroot_cdt_arch
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ cross_target_platform:
ctng_vendor:
- conda
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
sysroot_cdt_arch:
- s390x
sysroot_cdt_name:
- conda_2_28
- quay.io/condaforge/linux-anvil-alma-x86_64:8
target_machine:
- s390x
with_features:
- 'false'
- 'true'
zip_keys:
- - target_machine
- cross_target_platform
- centos_machine
- sysroot_cdt_arch
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ cross_target_platform:
ctng_vendor:
- conda
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
sysroot_cdt_arch:
- x86_64
sysroot_cdt_name:
- conda_2_28
- quay.io/condaforge/linux-anvil-alma-x86_64:8
target_machine:
- x86_64
with_features:
- 'false'
- 'true'
zip_keys:
- - target_machine
- cross_target_platform
- centos_machine
- sysroot_cdt_arch
2 changes: 2 additions & 0 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ cross_target_platform:
- linux-aarch64
- linux-ppc64le
- linux-s390x
sysroot_cdt_arch:
- x86_64
- aarch64
- ppc64le
- s390x

ctng_vendor:
- conda
sysroot_cdt_name:
- conda_2_28

docker_image:
- quay.io/condaforge/linux-anvil-alma-x86_64:8

zip_keys:
- - target_machine
- cross_target_platform
- centos_machine
- sysroot_cdt_arch

with_features:
- true
- false
27 changes: 4 additions & 23 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set version = "2.28" %}
{% set kernel_headers_version = "4.18.0" %}
{% set build_number = "3" %}
{% set build_number = "4" %}
{% set rpm_url = "https://repo.almalinux.org/vault/8.7/BaseOS/" ~ centos_machine ~ "/os/Packages" %}
{% set appstream_rpm_url = "https://repo.almalinux.org/vault/8.7/AppStream/" ~ centos_machine ~ "/os/Packages" %}
{% set powertools_rpm_url = "https://repo.almalinux.org/vault/8.7/PowerTools/" ~ centos_machine ~ "/os/Packages" %}
Expand Down Expand Up @@ -126,13 +126,14 @@ outputs:
binary_relocation: False
detect_binary_files_with_prefix: False
track_features:
- sysroot_{{ cross_target_platform }}_{{ version }}
- sysroot_{{ cross_target_platform }}_{{ version }}_feature_2
- sysroot_{{ cross_target_platform }}_{{ version }} # [with_features]
- sysroot_{{ cross_target_platform }}_{{ version }}_feature_2 # [with_features]
run_exports:
strong:
- __glibc >={{ version }},<3.0.a0
requirements:
run:
- __glibc >={{ version }} # [not with_features]
- {{ pin_subpackage('kernel-headers_' ~ cross_target_platform, exact=True) }}
test:
commands:
Expand All @@ -148,26 +149,6 @@ outputs:
- find "${PREFIX}" \( -name 'libnsl*' -o -path '*/rpcsvc/yp*' \) | { ! grep . ; }
- find "${PREFIX}" \( -name 'libcrypt*' -o -name 'crypt.*' \) | { ! grep . ; }

- name: sysroot-{{ sysroot_cdt_name }}-{{ sysroot_cdt_arch }}
build:
noarch: generic
requirements:
run:
- sysroot_{{ cross_target_platform }} =={{ version }}
test:
commands:
- test -f $PREFIX/{{ target_machine }}-conda-linux-gnu/sysroot/lib/libc.so.6
- test -f $PREFIX/{{ target_machine }}-conda-linux-gnu/sysroot/sbin/ldconfig
- test -f $PREFIX/{{ target_machine }}-conda-linux-gnu/sysroot/usr/lib/crt1.o
- test -f $PREFIX/{{ target_machine }}-conda-linux-gnu/sysroot/usr/include/limits.h
- test -f $PREFIX/{{ target_machine }}-conda-linux-gnu/sysroot/usr/include/gnu/stubs-64.h # [cross_target_platform == "linux-64"]
- test -f $PREFIX/{{ target_machine }}-conda-linux-gnu/sysroot/usr/include/gnu/stubs.h # [cross_target_platform != "linux-64"]
- test -d $PREFIX/{{ target_machine }}-conda-linux-gnu/sysroot/usr/share/locale
- test -f $PREFIX/{{ target_machine }}-conda-linux-gnu/sysroot/usr/bin/ldd
- test -f $PREFIX/{{ target_machine }}-{{ ctng_vendor }}-linux-gnu/sysroot/lib/libc.so.6
- find "${PREFIX}" \( -name 'libnsl*' -o -path '*/rpcsvc/yp*' \) | { ! grep . ; }
- find "${PREFIX}" \( -name 'libcrypt*' -o -name 'crypt.*' \) | { ! grep . ; }

about:
home: https://repo.almalinux.org/vault/8.7
license: LGPL-2.0-or-later AND LGPL-2.0-or-later WITH exceptions AND GPL-2.0-or-later AND MPL-2.0
Expand Down