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

[ampl-asl] Update to 20240201 and disable generated header when cross-compiling #40958

Merged

Conversation

WangWeiLin-MV
Copy link
Contributor

@WangWeiLin-MV WangWeiLin-MV commented Sep 13, 2024

Related #40503

  • Disable generating header file when cross compiling, use the same file as native compile
  • Update to 2024-02-01 ampl/asl@2f5d9de
  • Remove upstream merged patches
  • Clean and set license to BSD-3-Clause
  • Support with !uwp for src/solvers/func_add.c(436): error C2065: '_pclose': undeclared identifier since the function not available to UWP apps
  • Change ampl-mp dependency unofficial-asl to ampl-asl

Checklist

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version.
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • When updating the upstream version, the "port-version" is reset (removed from vcpkg.json).
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

Test

The port usage tests pass with the following triplets:

  • x64-windows
  • x86-windows (With CMAKE_CROSSCOMPILING)

@WangWeiLin-MV WangWeiLin-MV added category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. category:port-update The issue is with a library, which is requesting update new revision labels Sep 13, 2024
@WangWeiLin-MV WangWeiLin-MV changed the title [ampl-asl] Update to 20240201 and fix cross compiling [ampl-asl] Update to 20240201 and disable generate host-dependent header Sep 13, 2024
@WangWeiLin-MV WangWeiLin-MV force-pushed the ports/ampl-asl/upgrade-20240201 branch 3 times, most recently from ea5517f to 7c88592 Compare September 14, 2024 06:34
@WangWeiLin-MV WangWeiLin-MV marked this pull request as ready for review September 18, 2024 02:41
MonicaLiu0311
MonicaLiu0311 previously approved these changes Sep 20, 2024
@MonicaLiu0311 MonicaLiu0311 added the info:reviewed Pull Request changes follow basic guidelines label Sep 20, 2024
@BillyONeal
Copy link
Member

Disable generating host-dependent header, use pre-provided header for cross compiling

I'm not seeing how this is host dependent. In fact, it's guarded by CMAKE_CROSSCOMPILING which suggests that upstream believes that it is not host dependent. Can you clarify the problem being fixed here?

@BillyONeal BillyONeal removed the info:reviewed Pull Request changes follow basic guidelines label Sep 20, 2024
@WangWeiLin-MV
Copy link
Contributor Author

WangWeiLin-MV commented Sep 23, 2024

Disable generating host-dependent header, use pre-provided header for cross compiling

I'm not seeing how this is host dependent. In fact, it's guarded by CMAKE_CROSSCOMPILING which suggests that upstream believes that it is not host dependent. Can you clarify the problem being fixed here?

@BillyONeal Thanks for your checking, it's not related with host dependent, rather preventing using different header file when cross-compiling. I've corrected the comment.

@WangWeiLin-MV WangWeiLin-MV changed the title [ampl-asl] Update to 20240201 and disable generate host-dependent header [ampl-asl] Update to 20240201 and disable generated header when cross-compiling Sep 23, 2024
@MonicaLiu0311 MonicaLiu0311 added the info:reviewed Pull Request changes follow basic guidelines label Sep 25, 2024
@JavierMatosD JavierMatosD merged commit 5964707 into microsoft:master Sep 25, 2024
16 checks passed
@WangWeiLin-MV WangWeiLin-MV deleted the ports/ampl-asl/upgrade-20240201 branch September 26, 2024 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support category:port-update The issue is with a library, which is requesting update new revision info:internal This PR or Issue was filed by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants