-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[luasocket] bump to 3.1.0 #31078
[luasocket] bump to 3.1.0 #31078
Conversation
21e2188
to
90b1661
Compare
Updated with the suggestions from @JonLiu1993 |
8acdce7
to
fdb7efa
Compare
@JonLiu1993 @Cheney-W is anything else expected of me? |
endif() | ||
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/bin/socket/core.dll" RESULT temp) | ||
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.pdb" "${CURRENT_PACKAGES_DIR}/bin/socket/core.pdb" RESULT temp) | ||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/socket/core.dll" RESULT temp) |
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 see you are storing the results of the rename in temp
, but I don't see temp
being used for anything. Is this intentional or am I missing something?
It's intentional to avoid failing when the files don't exist. There use to
be conditionals on them and even they didn't cover community triplets.
…On Tue., May 2, 2023, 2:45 p.m. Javier Matos Denizac, < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In ports/luasocket/portfile.cmake
<#31078 (comment)>:
> if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
# Handle socket dll name
- file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/bin/socket/core.dll")
- if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.pdb")
- file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.pdb" "${CURRENT_PACKAGES_DIR}/bin/socket/core.pdb")
- endif()
- file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/socket/core.dll")
- if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/bin/socket/socket.core.pdb")
- file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/socket/socket.core.pdb" "${CURRENT_PACKAGES_DIR}/debug/bin/socket/core.pdb")
- endif()
+ file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/bin/socket/core.dll" RESULT temp)
+ file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.pdb" "${CURRENT_PACKAGES_DIR}/bin/socket/core.pdb" RESULT temp)
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/socket/core.dll" RESULT temp)
I see you are storing the results of the rename in temp, but I don't see
temp being used for anything. Is this intentional or am I missing
something?
—
Reply to this email directly, view it on GitHub
<#31078 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGJBCOIXLX55BFO6XTI6FTXEFI3RANCNFSM6AAAAAAXI4TYBQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
https://cmake.org/cmake/help/latest/command/file.html#rename
On Tue., May 2, 2023, 6:15 p.m. Stephen E. Baker, ***@***.***>
wrote:
… It's intentional to avoid failing when the files don't exist. There use to
be conditionals on them and even they didn't cover community triplets.
On Tue., May 2, 2023, 2:45 p.m. Javier Matos Denizac, <
***@***.***> wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In ports/luasocket/portfile.cmake
> <#31078 (comment)>:
>
> > if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
> # Handle socket dll name
> - file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/bin/socket/core.dll")
> - if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.pdb")
> - file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.pdb" "${CURRENT_PACKAGES_DIR}/bin/socket/core.pdb")
> - endif()
> - file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/socket/core.dll")
> - if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/bin/socket/socket.core.pdb")
> - file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/socket/socket.core.pdb" "${CURRENT_PACKAGES_DIR}/debug/bin/socket/core.pdb")
> - endif()
> + file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/bin/socket/core.dll" RESULT temp)
> + file(RENAME "${CURRENT_PACKAGES_DIR}/bin/socket/socket.core.pdb" "${CURRENT_PACKAGES_DIR}/bin/socket/core.pdb" RESULT temp)
> + file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/socket/socket.core.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/socket/core.dll" RESULT temp)
>
> I see you are storing the results of the rename in temp, but I don't see
> temp being used for anything. Is this intentional or am I missing
> something?
>
> —
> Reply to this email directly, view it on GitHub
> <#31078 (review)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAGJBCOIXLX55BFO6XTI6FTXEFI3RANCNFSM6AAAAAAXI4TYBQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
A variable name like |
./vcpkg x-add-version --all
and committing the result.