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

common: unset CMAKE_GENERATOR before sourcing templates #37413

Merged
merged 1 commit into from Jun 5, 2022

Conversation

JamiKettunen
Copy link
Contributor

When building dependencies of packages this has to be unset to avoid using e.g. CMAKE_GENERATOR="Unix Makefiles" for a package which expected to build with the default of make_cmd=ninja, and would subsequently fail with ninja: error: loading 'build.ninja': No such file or directory during do_build() if do_configure() generated a Makefile instead of a
build.ninja file.

Testing the changes

  • I tested the changes in this PR: YES

@@ -8,6 +8,7 @@ unset -v configure_script configure_args wrksrc build_wrksrc create_wrksrc
unset -v make_build_args make_check_args make_install_args
unset -v make_build_target make_check_target make_install_target
unset -v make_cmd meson_cmd gem_cmd fetch_cmd make_check_pre
unset -v CMAKE_GENERATOR
Copy link
Member

Choose a reason for hiding this comment

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

Put this under the CC block, as it's also an env var we export to children processes instead of only used by xbps-src.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hope I understood this correctly (and you didn't mean add it as an extension to the unset CC ... line) :)

Copy link
Member

Choose a reason for hiding this comment

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

You did :)

When building dependencies of packages this has to be unset to avoid
using e.g. CMAKE_GENERATOR="Unix Makefiles" for a package which expected
to build with the default of make_cmd=ninja, and would subsequently fail
with "ninja: error: loading 'build.ninja': No such file or directory"
during do_build() if do_configure() generated a Makefile instead of a
build.ninja file.
@ericonr ericonr merged commit 9f7f562 into void-linux:master Jun 5, 2022
@JamiKettunen JamiKettunen deleted the unset-CMAKE_GENERATOR branch June 18, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants