Issue: Unpacking of source file fails in osx - libarchive. This does not happen on other platforms, and the file downloads and unpacks fine on the (windows) desktop.
Environment (conda list):
conda-forge build
Log from CI build:
==============================================================================
Task : Command line
Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version : 2.151.2
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
========================== Starting Command Output ===========================
[command]/bin/bash --noprofile --norc /Users/vsts/agent/2.158.0/work/_temp/e48cc68c-d2fb-402d-8338-135e92c09be2.sh
/usr/local/miniconda/lib/python3.7/site-packages/conda_build/utils.py:1209: UserWarning: RECIPE_PATH received is a file. File: ./recipe/meta.yaml
It should be a path to a folder.
Forcing conda-build to use the recipe file.
UserWarning
No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
Adding in variants from internal_defaults
Adding in variants from ./.ci_support/osx_python3.7.yaml
INFO:conda_build.variants:Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from ./.ci_support/osx_python3.7.yaml
Attempting to finalize metadata for orekit
INFO:conda_build.metadata:Attempting to finalize metadata for orekit
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Adding .* to spec 'openjdk 8.0.152' to ensure satisfiability. Please consider putting {{ var_name }}.* or some relational operator (>/>=/<=) on this spec in meta.yaml, or if req is also a build req, using {{ pin_compatible() }} jinja2 function instead. See https://conda.io/docs/user-guide/tasks/build-packages/variants.html#pinning-at-the-variant-level
WARNING:conda_build.utils:Adding .* to spec 'openjdk 8.0.152' to ensure satisfiability. Please consider putting {{ var_name }}.* or some relational operator (>/>=/<=) on this spec in meta.yaml, or if req is also a build req, using {{ pin_compatible() }} jinja2 function instead. See https://conda.io/docs/user-guide/tasks/build-packages/variants.html#pinning-at-the-variant-level
WARNING conda_build.utils:ensure_valid_spec(1756): Adding .* to spec 'openjdk 8.0.152' to ensure satisfiability. Please consider putting {{ var_name }}.* or some relational operator (>/>=/<=) on this spec in meta.yaml, or if req is also a build req, using {{ pin_compatible() }} jinja2 function instead. See https://conda.io/docs/user-guide/tasks/build-packages/variants.html#pinning-at-the-variant-level
BUILD START: ['orekit-10.0-py37h4a8c4bd_6.tar.bz2']
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: /usr/local/miniconda/conda-bld/orekit_1571301676177/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh
The following NEW packages will be INSTALLED:
bzip2: 1.0.8-h01d97ff_1 conda-forge
ca-certificates: 2019.9.11-hecc5488_0 conda-forge
certifi: 2019.9.11-py37_0 conda-forge
jcc: 3.6-py37h4a8c4bd_1 conda-forge
libcxx: 9.0.0-0 conda-forge
libcxxabi: 9.0.0-0 conda-forge
libffi: 3.2.1-h6de7cb9_1006 conda-forge
ncurses: 6.1-h0a44026_1002 conda-forge
openjdk: 8.0.152-h393ad39_1 defaults
openssl: 1.1.1c-h01d97ff_0 conda-forge
python: 3.7.3-h93065d6_1 conda-forge
readline: 8.0-hcfe32e1_0 conda-forge
setuptools: 41.4.0-py37_0 conda-forge
sqlite: 3.30.1-h93121df_0 conda-forge
tk: 8.6.9-h2573ce8_1003 conda-forge
xz: 5.2.4-h1de35cc_1001 conda-forge
zlib: 1.2.11-h0b31af3_1006 conda-forge
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: /usr/local/miniconda/conda-bld/orekit_1571301676177/_build_env
The following NEW packages will be INSTALLED:
cctools: 921-h5ba7a2e_4 conda-forge
clang: 9.0.0-h28b9765_1 conda-forge
clang_osx-64: 9.0.0-h22b1bf0_3 conda-forge
clangxx: 9.0.0-1 conda-forge
clangxx_osx-64: 9.0.0-h22b1bf0_3 conda-forge
compiler-rt: 9.0.0-hce3ea14_0 conda-forge
ld64: 409.12-h3c32e8a_4 conda-forge
libcxx: 9.0.0-0 conda-forge
libcxxabi: 9.0.0-0 conda-forge
libllvm9: 9.0.0-h770b8ee_2 conda-forge
tapi: 1000.10.8-h770b8ee_3 conda-forge
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Source cache directory is: /usr/local/miniconda/conda-bld/src_cache
INFO:conda_build.source:Source cache directory is: /usr/local/miniconda/conda-bld/src_cache
INFO conda_build.source:download_to_cache(43): Source cache directory is: /usr/local/miniconda/conda-bld/src_cache
Downloading source to cache: v10_0_4_d2ac8c4d86.zip
INFO:conda_build.source:Downloading source to cache: v10_0_4_d2ac8c4d86.zip
INFO conda_build.source:download_to_cache(66): Downloading source to cache: v10_0_4_d2ac8c4d86.zip
Downloading https://github.com/petrushy/orekit_python_artifacts/archive/v10_0_4.zip
INFO:conda_build.source:Downloading https://github.com/petrushy/orekit_python_artifacts/archive/v10_0_4.zip
INFO conda_build.source:download_to_cache(80): Downloading https://github.com/petrushy/orekit_python_artifacts/archive/v10_0_4.zip
Success
INFO:conda_build.source:Success
INFO conda_build.source:download_to_cache(91): Success
Extracting download
Traceback (most recent call last):
File "/usr/local/miniconda/bin/conda-build", line 11, in
sys.exit(main())
File "/usr/local/miniconda/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 449, in main
execute(sys.argv[1:])
File "/usr/local/miniconda/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 440, in execute
verify=args.verify, variants=args.variants)
File "/usr/local/miniconda/lib/python3.7/site-packages/conda_build/api.py", line 209, in build
notest=notest, need_source_download=need_source_download, variants=variants)
File "/usr/local/miniconda/lib/python3.7/site-packages/conda_build/build.py", line 2339, in build_tree
notest=notest,
File "/usr/local/miniconda/lib/python3.7/site-packages/conda_build/build.py", line 1413, in build
try_download(m, no_download_source=False, raise_error=True)
File "/usr/local/miniconda/lib/python3.7/site-packages/conda_build/render.py", line 628, in try_download
source.provide(metadata)
File "/usr/local/miniconda/lib/python3.7/site-packages/conda_build/source.py", line 652, in provide
timeout=metadata.config.timeout, locking=metadata.config.locking)
File "/usr/local/miniconda/lib/python3.7/site-packages/conda_build/source.py", line 148, in unpack
tar_xf(src_path, tmpdir)
File "/usr/local/miniconda/lib/python3.7/site-packages/conda_build/utils.py", line 830, in tar_xf
libarchive.extract_file(tarball, flags)
File "/usr/local/miniconda/lib/python3.7/site-packages/libarchive/extract.py", line 70, in extract_file
extract_entries(archive, flags)
File "/usr/local/miniconda/lib/python3.7/site-packages/libarchive/extract.py", line 50, in extract_entries
write_header(write_p, entry._entry_p)
File "/usr/local/miniconda/lib/python3.7/site-packages/libarchive/ffi.py", line 91, in check_int
raise archive_error(args[0], retcode)
File "/usr/local/miniconda/lib/python3.7/site-packages/libarchive/ffi.py", line 75, in archive_error
raise ArchiveError(msg, errno(archive_p), retcode, archive_p)
libarchive.exception.ArchiveError: Could not open orekit_python_artifacts-10_0_4 (errno=22, retcode=-30, archive_p=140701866191232)
##[error]Bash exited with code '1'.
##[section]Finishing: Build recipe
Issue: Unpacking of source file fails in osx - libarchive. This does not happen on other platforms, and the file downloads and unpacks fine on the (windows) desktop.
Environment (
conda list
): conda-forge build