-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[ncurses] Add file(MAKE_DIRECTORY) to create the missing directories #26690
Conversation
Does it really need a pkgconf dependency, or does it just need those directories to exist? |
No, it doesn't really require a pkgconf dependency, it just needs those directories to exist. I think it is more convenient to add dependencies than adding the operation of creating those directories in portfile.cmake, |
Convenience over correctness? I see. PS: IIRC the purpose of these lines is to not pick up system libs. A possible correct solution might be pointing to an empty temporary directory in the buildtrees. |
@dg0yt Thanks for your comment.
I tested it, |
Yes, this is what I meant. However,
Does it still install the pc files to the right directories? |
No. If use a temporary directory under buildtrees, the pc file will not be installed.
But if I use ${CURRENT_PACKAGES_DIR}/..., the pc file will not be installed, same with the temporary directory under buildtrees. |
Describe the pull request
What does your PR fix?
Fixes [ncurses:x64-linux] build failure #26677
Since ncurses always need the below make options:
If this port install in a new vcpkg, it will failed with following error because there is no pkgconfig folder.
For fixing this issue, add
file(MAKE_DIRECTORY)
to create the missing directories.No feature need to test.