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

[portmidi] Updated portmidi package to use alternative code source #12046

Merged
merged 4 commits into from
Aug 21, 2020

Conversation

stekyne
Copy link
Contributor

@stekyne stekyne commented Jun 21, 2020

Describe the pull request
Updates the portmidi package to use the latest source. As discussed in #11974. Fixes #11974

  • What does your PR fix? Fixes #
    The previous version of the package was using a zip release from sourceforge which is 10 years old. It doesn't actually work with x64 Windows. There are commits after this release in the sourceforge repo that resolve the issue. I have migrated the sourceforge repo to git (under the Csound org github account). I'll update this going forward.

  • Which triplets are supported/not supported? Have you updated the CI baseline?
    x86/x64 windows are now supported

  • Does your PR follow the maintainer guide?

@JackBoosY JackBoosY added the category:port-update The issue is with a library, which is requesting update new revision label Jun 22, 2020
ports/portmidi/CONTROL Outdated Show resolved Hide resolved
ports/portmidi/portfile.cmake Outdated Show resolved Hide resolved
ports/portmidi/portfile.cmake Outdated Show resolved Hide resolved
ports/portmidi/portfile.cmake Outdated Show resolved Hide resolved
@stekyne
Copy link
Contributor Author

stekyne commented Jun 22, 2020

Thanks for the feedback. I've made the changes suggested except for the empty options one, this seems to be required by the package.

ports/portmidi/portfile.cmake Outdated Show resolved Hide resolved
@NancyLi1013
Copy link
Contributor

@stekyne
Thanks for your quick update.
Does this port support Linux and osx? Are you clear about this?

@stekyne
Copy link
Contributor Author

stekyne commented Jun 22, 2020

Portmidi is crossplatform so it should work yes. I haven't tested these specific package changes on OSX/Linux though. As far as I can tell, they're fairly platform agnostic?

Copy link
Contributor Author

@stekyne stekyne left a comment

Choose a reason for hiding this comment

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

Resolved changes requested

@NancyLi1013
Copy link
Contributor

Since I noticed that portmidi cannot build successfully on Linux and osx in CI build process.
Would you like to look into this?
https://dev.azure.com/vcpkg/public/_build/results?buildId=39183&view=logs&j=1d4f6642-7a41-537c-ff05-cbbc9ba4f53d&t=f56c2f90-bc2c-538e-3a85-64e370fdc032

You can enter the above link and search portmidi, then you will see the build results. If you have no linux or osx machine, you can remove portmidi:x64-linux=fail and portmidi:x64-osx=fail from ci.baseline.txt. Try to rebuild this, you can get the specific errors.

@stekyne
Copy link
Contributor Author

stekyne commented Jun 22, 2020

Ok I'll need to take a look. It's missing Java but can't see how to disable that with a single flag. I'll get back to this shortly.

@ras0219-msft
Copy link
Contributor

Could we use https://sourceforge.net/code-snapshots/svn/p/po/portmedia/code/portmedia-code-r234.zip instead, potentially with a small patch checked into this repo?

We strongly prefer not pulling unofficial forks if possible.

@stekyne
Copy link
Contributor Author

stekyne commented Jul 11, 2020

@ras0219-msft sure I can do that. Your link no longer works though. I see you can download a snapshot of the repo on the site directly but it seems to be an ephemeral thing? Is that used by other packages?

@NancyLi1013
Copy link
Contributor

@stekyne
Could you please resolve the conflicts?

@stekyne
Copy link
Contributor Author

stekyne commented Jul 16, 2020

@NancyLi1013 I will but I need some clarification on my last question. Is it ok to move forward with using a non-official fork of the source or do I need to use an official zip? The link provided doesn't work after a time, so I'm not sure it's viable to use that method.

@NancyLi1013
Copy link
Contributor

@stekyne
Where do you get the latest source code for portmidi?
We doesn't recommend to use unofficial forks.
So could you please update it as the original site?

@NancyLi1013
Copy link
Contributor

@stekyne
Could you please resolve the conflicts?

@stekyne
Copy link
Contributor Author

stekyne commented Aug 6, 2020

@NancyLi1013 Sorry for the delay. I managed (with help) to get the original author to release a new zip of the source. It's been updated and I think the CI is passing. Can this be merged?

@NancyLi1013
Copy link
Contributor

@stekyne
Could you please also bump the version in CONTROL file?

I noticed that it is set as fail on x64-linux and x64-osx in ci.baseline.txt.
Could you please help check if it supports linux and osx?

@stekyne
Copy link
Contributor Author

stekyne commented Aug 7, 2020

@NancyLi1013 can you point me to the CI failure? I saw all green ticks on the details panel.

@NancyLi1013
Copy link
Contributor

@stekyne

I mean the related triplets were set as fail in ci.baseline.txt. https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt#L1360-L1361

portmidi:x64-linux=fail
portmidi:x64-osx=fail

I also checked the results on CI and they skipped. I tried to install it on my machine and it didn't work.

So could you help if it doesn't support linux and osx? If not, we'd better add Supports: !(linux|osx) to CONTROL and remove these codes from ci.baseline.txt.

@BillyONeal
Copy link
Member

@stekyne Can you confirm that you're happy with my changes?

@stekyne
Copy link
Contributor Author

stekyne commented Aug 18, 2020

Thanks for taking a look. I've been trying to get it building for osx and linux in the mean time since updating. The cmake in portmidi is a bit inflexible so im trying to find out the right solution. Either fix it upstream or make a quick patch. Basically just need to allow building without jni support.

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
@BillyONeal BillyONeal merged commit 0d2c77c into microsoft:master Aug 21, 2020
@BillyONeal
Copy link
Member

Thanks for your contribution!

remz1337 pushed a commit to remz1337/vcpkg that referenced this pull request Aug 23, 2020
…icrosoft#12046)

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-update The issue is with a library, which is requesting update new revision
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[portmidi] Old version doesn't work on Win64
6 participants