-
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
nasm - upgrade to conan v2, based on prior work done by @czoido #13485
nasm - upgrade to conan v2, based on prior work done by @czoido #13485
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Note: rolled back to #13485 (comment)
|
This comment has been minimized.
This comment has been minimized.
I'm not sure what to do about the errors in the build... help please? |
Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
This comment has been minimized.
This comment has been minimized.
Help please, I don't understand why this failed... looks like python failed to substitute asm_file variable contents into |
This comment has been minimized.
This comment has been minimized.
@czoido how does this look now? |
This comment has been minimized.
This comment has been minimized.
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.
Questions and some cleanup :)
replace_in_file(self, "Makefile", "-Werror=attributes", "") | ||
|
||
# Need "-arch" flag for the linker when cross-compiling. | ||
# FIXME: Revisit after https://github.com/conan-io/conan/issues/9069, using new Autotools integration |
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.
this issue is closed, is this code still required?
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.
I'm not sure, it is hard for me to comment on or test as I don't cross-compile locally.
Also, I see there are a bunch of PRs open on AutoTools so I didn't want to test anything related to AutoTools specifically as whatever problems I hit may already be in the pipeline...
This comment has been minimized.
This comment has been minimized.
1c230b1
to
2edf06f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
shutil.copy2("nasm.exe", "nasmw.exe") | ||
shutil.copy2("ndisasm.exe", "ndisasmw.exe") |
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.
Or the tools copy helper... since it's more robust
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 well I don't understand how I'd do this with conan.tools.files.copy(),
I'd have to copy to a temporary folder and then rename into the right place, and then delete the temp folder?
Seems crazy?
I think we should:
- leave it there, with a FIXME or something
- add a conan.tools.files.copy_file() to 1.54
- add a linter check for shutil.copy() and shutil.copy2()
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.
That does sound crazy 🤪 lol sorry I didn't realize it was not available 😅
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
nasm wouldn't build for me as I'm using the "msvc" compiler, not the "Visual Studio" compiler.
So I thought I'd upgrade to conan v2 at the same time, based on the work found here:
https://github.com/czoido/conan-center-index/blob/master/recipes/nasm/all/conanfile.py
mentioned here: conan-io/conan#11751