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

[qhttpengine] no absolute paths #22328

Merged
merged 1 commit into from
Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ports/qhttpengine/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
if(VCPKG_TARGET_IS_WINDOWS)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why specify windows?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because qt does not provide pkgconfig files on windows.

Copy link
Contributor

Choose a reason for hiding this comment

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

clearly they do, since you're deleting the directories? this seems very wrong...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No official QT5 package provides pkgconfig files on windows. This port does it (not a official qt package), but the ports this ports depends on does not provide pkgconfig files.

Copy link
Contributor

Choose a reason for hiding this comment

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

I need @Neumann-A double check this point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JackBoosY Here you find the content of the vcpkg_installed after installing qt5. You can search for qt5 pkgconfig files but there are none on windows.

Copy link
Contributor

Choose a reason for hiding this comment

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

@strega-nil-ms We have to wait for qtbase to support exporting pkgconfig before we can completely fix the pc file provided by this port. I think this change is acceptable to us now. What's your opinion?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ping @strega-nil-ms for reply.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ping @strega-nil-ms for review again

Copy link
Member

Choose a reason for hiding this comment

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

Confirmed:

Total elapsed time: 27.57 min

The package qhttpengine provides CMake targets:

    find_package(qhttpengine CONFIG REQUIRED)
    target_link_libraries(main PRIVATE qhttpengine)

PS C:\Dev\vcpkg> cmd /c dir /s .\installed\x86-windows\*.pc
 Volume in drive C has no label.
 Volume Serial Number is 5EE8-E2C2

 Directory of C:\Dev\vcpkg\installed\x86-windows\debug\lib\pkgconfig

03/21/2022  11:41 AM               225 bzip2.pc
03/21/2022  11:41 AM               374 freetype2.pc
03/21/2022  11:43 AM               267 harfbuzz-subset.pc
03/21/2022  11:43 AM               259 harfbuzz.pc
03/21/2022  11:51 AM             1,391 icu-i18n.pc
03/21/2022  11:51 AM             1,385 icu-io.pc
03/21/2022  11:51 AM             1,418 icu-uc.pc
03/21/2022  11:41 AM               297 libbrotlicommon.pc
03/21/2022  11:41 AM               325 libbrotlidec.pc
03/21/2022  11:41 AM               325 libbrotlienc.pc
03/21/2022  11:53 AM               293 libcrypto.pc
03/21/2022  11:52 AM               269 libjpeg.pc
03/21/2022  11:54 AM               373 libpcre2-16.pc
03/21/2022  11:54 AM               373 libpcre2-32.pc
03/21/2022  11:54 AM               370 libpcre2-8.pc
03/21/2022  11:54 AM               339 libpcre2-posix.pc
03/21/2022  11:41 AM               288 libpng.pc
03/21/2022  11:41 AM               288 libpng16.pc
03/21/2022  11:53 AM               293 libssl.pc
03/21/2022  11:52 AM               281 libturbojpeg.pc
03/21/2022  12:01 PM               472 libzstd.pc
03/21/2022  11:53 AM               246 openssl.pc
03/21/2022  12:01 PM               301 sqlite3.pc
03/21/2022  11:41 AM               294 zlib.pc
              24 File(s)         10,746 bytes

 Directory of C:\Dev\vcpkg\installed\x86-windows\lib\pkgconfig

03/21/2022  11:41 AM               221 bzip2.pc
03/21/2022  11:41 AM               370 freetype2.pc
03/21/2022  11:43 AM               264 harfbuzz-subset.pc
03/21/2022  11:43 AM               256 harfbuzz.pc
03/21/2022  11:51 AM             1,367 icu-i18n.pc
03/21/2022  11:51 AM             1,361 icu-io.pc
03/21/2022  11:51 AM             1,393 icu-uc.pc
03/21/2022  11:41 AM               294 libbrotlicommon.pc
03/21/2022  11:41 AM               322 libbrotlidec.pc
03/21/2022  11:41 AM               322 libbrotlienc.pc
03/21/2022  11:53 AM               290 libcrypto.pc
03/21/2022  11:52 AM               266 libjpeg.pc
03/21/2022  11:54 AM               369 libpcre2-16.pc
03/21/2022  11:54 AM               369 libpcre2-32.pc
03/21/2022  11:54 AM               366 libpcre2-8.pc
03/21/2022  11:54 AM               335 libpcre2-posix.pc
03/21/2022  11:41 AM               283 libpng.pc
03/21/2022  11:41 AM               283 libpng16.pc
03/21/2022  11:53 AM               290 libssl.pc
03/21/2022  11:52 AM               278 libturbojpeg.pc
03/21/2022  12:01 PM               469 libzstd.pc
03/21/2022  11:53 AM               243 openssl.pc
03/21/2022  12:01 PM               298 sqlite3.pc
03/21/2022  11:41 AM               290 zlib.pc
              24 File(s)         10,599 bytes

     Total Files Listed:
              48 File(s)         21,345 bytes
               0 Dir(s)  3,095,669,248,000 bytes free
PS C:\Dev\vcpkg>

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
else()
vcpkg_fixup_pkgconfig()
endif()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
1 change: 1 addition & 0 deletions ports/qhttpengine/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "qhttpengine",
"version": "1.0.2",
"port-version": 1,
"description": "HTTP server for Qt applications",
"supports": "!uwp",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5510,7 +5510,7 @@
},
"qhttpengine": {
"baseline": "1.0.2",
"port-version": 0
"port-version": 1
},
"qhull": {
"baseline": "8.0.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/q-/qhttpengine.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "df41e64df52df962bbd8836762d3946358819690",
"version": "1.0.2",
"port-version": 1
},
{
"git-tree": "7981cbfcf13bef7cfede8cf40a9d69967cc63dfb",
"version": "1.0.2",
Expand Down