Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Fix build of boost::iostreams zlib filter #115

Merged
merged 9 commits into from
Feb 6, 2022

Conversation

benmwebb
Copy link
Contributor

@benmwebb benmwebb commented Feb 5, 2022

Explicitly add zlib to the requirements so that
boost::iostreams gets built with the zlib filter.
This was being pulled in implicitly at one point
but recently stopped working; make it explicit.
Add a compile+link test to make sure the final
library includes the necessary symbols. Closes #114.

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

Explicitly add zlib to the requirements so that
boost::iostreams gets built with the zlib filter.
This was being pulled in implicitly at one point
but recently stopped working; make it explicit.
Add a compile+link test to make sure the final
library includes the necessary symbols. Closes conda-forge#114.
@benmwebb benmwebb changed the title Iostreams zlib Fix build of boost::iostreams zlib filter Feb 5, 2022
@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@@ -0,0 +1,8 @@
# Skip compile tests if we are cross-compiling
if echo ${CONDA_TOOLCHAIN_HOST} | grep -q arm64-apple; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if echo ${CONDA_TOOLCHAIN_HOST} | grep -q arm64-apple; then
if [[ "${CONDA_BUILD_CROSS_COMPILATION:-0}" == "1" && "${CMAKE_CROSSCOMPILING_EMULATOR:-}" == "" ]]; then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had something like that earlier but it didn't work - looks like activate_clang_osx-arm64.sh unsets CONDA_BUILD_CROSS_COMPILATION when run in the test environment.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's weird, I'm using exactly this in the go-activation-feedstock.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, you can see the failure at https://github.com/conda-forge/boost-cpp-feedstock/runs/5082034667 (and the corresponding run_test.sh). I can't see the Azure Pipelines logs right now (says "An unexpected error has occurred within this region of the page") but maybe it'll work for you. I'm certainly open to suggestions!

@isuruf isuruf added the automerge Merge the PR when CI passes label Feb 6, 2022
@github-actions github-actions bot merged commit cf96a2a into conda-forge:1.74.x Feb 6, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2022

Hi! This is the friendly conda-forge automerge bot!

I considered the following status checks when analyzing this PR:

  • linter: passed
  • azure: passed

Thus the PR was passing and merged! Have a great day!

benmwebb added a commit to benmwebb/boost-cpp-feedstock that referenced this pull request Apr 12, 2022
Explicitly add zlib to the requirements so that
boost::iostreams gets built with the zlib filter.
This was being pulled in implicitly at one point
but recently stopped working; make it explicit.
Add a compile+link test to make sure the final
library includes the necessary symbols. Closes conda-forge#122.

This is essentially the same as PR conda-forge#115 (which
fixed the issue for the 1.74.x branch) but for
the main branch.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge the PR when CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants