-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
dcmtk: bump deps #21985
Closed
+26
−6
Closed
dcmtk: bump deps #21985
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fada8c5
dcmtk: bump deps
mayeut a5cc508
dcmtk: fix macOS build with host_arch=x86_64 & build_arch=arm64
mayeut d3e988a
Merge branch 'master' into dcmtk-bump-deps
mayeut 1e3dc38
check rosetta support
mayeut a6b5141
use version range for libxml2 & libpng
mayeut 858991d
Merge branch 'master' into dcmtk-bump-deps
mayeut File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
dcmtk: fix macOS build with host_arch=x86_64 & build_arch=arm64
Requires rosetta & `tools.build.cross_building:can_run=True`
commit a5cc5081c002e1557cfee8c3f415f51024057278
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the new macOS builders in CI using an arm64 build profile to build for x86_64 host, this recipe will now raise a ConanInvalidConfiguration exception.
Will the config be updated with
tools.build.cross_building:can_run=True
?If not, is there a simple workaround recommended ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@uilianries @danimtb Tagging you as you were the most visibly involved with the M2 upgrade.
Can the M2 machines run both
armv8
andx86_64
executables? And even if they can run both, should we still probably try to use thearmv8
versions of the executables?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this specific instance, there's no
armv8
version of the executable as it only there to allow sometry_run
calls in the CMake file.Having
tools.build.cross_building:can_run=True
would also mean that tests could run entirely which is not the case anymore for macOS x86_64 builds.I could add a specific
_can_run
property to the recipe in order not to requiretools.build.cross_building:can_run=True
if rosetta is available.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, M2 can build and run both amrv8 and x86_64. As M2 can run anything, there is no favorite target when running, when a Mac machine is available, it will run tests or build binaries as needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it won't run any executable built by the tests and protected with
if can_run(self):
while it could. That's what I meant by "tests could run entirely which is not the case anymore for macOS x86_64 builds".