-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
autoconf: fix package info on windows #14118
Conversation
This comment has been minimized.
This comment has been minimized.
Conan v1 pipelineAll green in build 3 (
|
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.
Couple of minor remarks questions, but overall it looks good
autotools = Autotools(self) | ||
autotools.configure() | ||
autotools.make() | ||
|
||
def package(self): | ||
autotools = Autotools(self) | ||
autotools.install(args=[f"DESTDIR={unix_path(self, self.package_folder)}"]) # Need to specify the `DESTDIR` as a Unix path, aware of the subsystem | ||
# TODO: can be replaced by autotools.install() if required_conan_version = ">=1.54.0" | ||
autotools.install(args=[f"DESTDIR={unix_path(self, self.package_folder)}"]) |
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.
Maybe add a FIXME comment once CCI uses the Conan version with your pr conan-io/conan#12193
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's fixed in 1.54.0 so for me the TODO comment has already everything
test_type = "explicit" | ||
win_bash = True |
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.
Maybe move this to the build_requirements method for consistency
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.
no, it doesn't work in test package (conan bug I guess)
|
||
|
||
class TestPackageConan(ConanFile): | ||
settings = "os", "compiler", "build_type", "arch" | ||
exports_sources = "../test_package/configure.ac", "../test_package/config.h.in", "../test_package/Makefile.in", "../test_package/test_package_c.c", "../test_package/test_package_cpp.cpp", | ||
settings = "os", "arch", "compiler", "build_type" | ||
test_type = "explicit" | ||
|
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.
Shouldn't the win_bash
be set as well for test_v1_package
?
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.
no, in conan v1 it's a different mechanism with win_bash in self.run directly.
Fix regression on windows introduced in #12896
We must still use legacy unix_path in package_info().
see: conan-io/conan#12499 & conan-io/conan#12192 (comment)