-
Notifications
You must be signed in to change notification settings - Fork 13
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
MinGW, CMake and project layout #15
Conversation
df4e7d4
to
c624953
Compare
I don't have any interesting in making this MinGW compatible. The changes are too extensive for something that won't be used (tested) by the majority of the users so it'll end up rotting. |
I need this for the Fedora Media Writer because it should work on Windows. I don't know who else is a user of isomd5sum apart from people using the command-line tool I can't find any projects that use it. I could have also changed the Makefile (less changes) but doing it properly using CMake seemed cleaner in the long run. |
2b7b789
to
0883be9
Compare
Why does media writer need it? Is it going to be doing a pre-check of the embedded checksums instead of (or in addition to) the SHA of the iso? |
It does an SHA-256 check after download. |
4a8bd89
to
c38053d
Compare
Ah, ok! Thanks for the explanation. |
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 think my biggest concern with this now is the .spec.in stuff. The spec file shouldn't really be in the upstream project, and it certainly shouldn't be running fedpkg commands from there.
We should also call this 1.3.0 instead of 1.2.2 (I'm going to do a build of current master as 1.2.2).
@@ -24,8 +24,8 @@ | |||
#include <popt.h> | |||
#include <termios.h> | |||
|
|||
#include "md5.h" | |||
#include "libcheckisomd5.h" | |||
#include "./include/libcheckisomd5.h" |
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 shouldn't be needed if you can pass the include path to it from cmake
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.
Well, do I want to tell CMake to search in ./include/
? I simply like being explicit about things.
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, telling cmake about ./include/ is the right way to do it.
@bcl Okay I removed all the packaging stuff from the PR. I'll leave that to the packager then. |
2d3f91a
to
f2faf89
Compare
I think there's a couple other things to add/figure out:
Thanks! |
Make the project buildable using MinGW.
cf2abcc
to
0f0f395
Compare
Sorry for the late response. I addressed your last comment. But AFAIK you can not add custom rules to the Makefile that cmake creates so instead I added a script which creates that archive at |
Thanks for the updated patches, but I'm going to have to nak these changes. I've spend the afternoon trying to get it working with an updated fedora spec file and I keep hitting problems. It just introduces too much change for my taste. |
I'm pretty unsure about the MinGW package name in other words this needs review.