-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[mxml] New Port #39991
base: master
Are you sure you want to change the base?
[mxml] New Port #39991
Conversation
Do note that this PR is incomplete. I don't really know what I'm doing here, so any docs and extra help and info appreciated. Most of what's written here is copied from other ports. |
What's with the license fail? |
@Rossmaxx Thanks for this PR. I think we need to ask upstream whether to add it to vcpkg. In this way, I can help you complete this PR. :) |
I did ask about this upstream some time ago, and here's what the maintainer said. Forgot that i asked this in the first place. michaelrsweet/mxml#281 (comment) I initially asked for cmake support but the maintainer refused. It's after some time that I understand that vcpkg doesn't require ports to be in cmake and other build systems being supported. I personally need this port for a project which I'm involved with. I'm trying to add msvc support for a previously mingw built application. For my use case, I am thinking of disabling linux ports as I don't really want to deal with pkg config here. I'll update the vckpg.json when i start working on this again. I'm on a small break now. But i would like to collect as much info on this break. Thanks for your reply. |
(I don't understand the comments about upstream. No patches, no restriction, no need to ask.) |
Co-authored-by: Kai Pastor <[email protected]>
Quite a lot has happened since the last time, Upstream has moved on to version 4, while this port is at version 3. For convenience sake, I'll be working on version 3, and the upstream suggests mxml4 to be a seperate package because of a breakage in compatibility. @FrankXie05 @dg0yt sorry for the delay. Can you guys help me move this PR forward? |
AFAICT vcpkg is reluctant to accept a "separate package". Usually it is not possible to install two variants of a package at the same time, but this is what vcpkg CI does. |
For my use case, mxml 3 is fine. If need arises, I can make a seperate PR to bump the version. |
For !windows, try at least with |
Everything mostly seems to work now, except for a few loose ends.
can anyone help?
can you explain? |
|
Didn't I restrict builds for windows? |
I need help with post build validation, @dg0yt @FrankXie05 |
This port build does not install any header files available, |
I have upgraded this port to mxml v4, and it's better to leave v3 behind. I am also trying to add support for non-windows builds now, but the CI is failing, and the logs ain't really giving me much clues. I'll try troubleshooting from my linux partition later as i'm done with this for now. Did I make a mistake in the else part, or did I miss something? I did fix the empty include folder issue tho, and I think it's coming along nicely.
I remember seeing this before, but I forgot. Seeing this again now after putting the work into it. I now also need to figure out a way to make this port work on cmake projects, if it doesn't by default. @dg0yt more help please. |
x64-linux CI:
Strange, but it might have an easy explanation. I could check later. |
Is this now an issue with the upstream's makefile? |
here's the upstream, if it matters https://github.com/michaelrsweet/mxml/tree/v4.0.4 |
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.
For non-Windows, the key is DETERMINE_BUILD_TRIPLET
and COPY_SOURCE
.
Co-authored-by: Kai Pastor <[email protected]>
Co-authored-by: Kai Pastor <[email protected]>
Co-authored-by: Kai Pastor <[email protected]>
Co-authored-by: Kai Pastor <[email protected]>
I'm doing all this commits from my phone, I'll take some time to fix the versions. |
Co-authored-by: Kai Pastor <[email protected]>
What caused this build fail now? I'll investigate later. |
Well, this is strange, it builds fine locally. What's with the CI fail then? |
Locally, post-build checks are not fatal. For the official registry, they are.
So basically, it always builds DLLs, but this unexpected for static triplets.
|
Ahh, forgot that static builds are a thing. I should maybe patch in support for static builds as I'm pretty sure mxml is used as a static library in zyn. @JohannesLorenz is it so? |
@Rossmaxx When we compile, we just say link against it - it does not matter. For example, on my Linux, mxml is a shared library (sorry for the late reply!) |
fixes: #19042
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.