-
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
[libphonenumber] Adding libphonenumber port, pushing changes to get help on error #28093
[libphonenumber] Adding libphonenumber port, pushing changes to get help on error #28093
Conversation
…pushing to share code
…Debug build failing so building release only. Pushing for help.
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
All manifest files must be formatted
./vcpkg format-manifest ports/*/vcpkg.json
Diff
diff --git a/ports/libphonenumber/vcpkg.json b/ports/libphonenumber/vcpkg.json
index d4553ba..51c7c83 100644
--- a/ports/libphonenumber/vcpkg.json
+++ b/ports/libphonenumber/vcpkg.json
@@ -3,6 +3,15 @@
"version": "8.13.1",
"description": "Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.",
"dependencies": [
+ "abseil",
+ "boost-date-time",
+ "boost-system",
+ "boost-thread",
+ "dirent",
+ "gtest",
+ "icu",
+ "protobuf",
+ "re2",
{
"name": "vcpkg-cmake",
"host": true
@@ -10,15 +19,6 @@
{
"name": "vcpkg-cmake-config",
"host": true
- },
- "boost-system",
- "boost-thread",
- "boost-date-time",
- "gtest",
- "protobuf",
- "re2",
- "abseil",
- "icu",
- "dirent"
+ }
]
}
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 251741475900c9a57549d80f1b5a5e30e63d1887 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 8d8a538..87194f8 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -4092,6 +4092,10 @@
"baseline": "2021-11-14",
"port-version": 0
},
+ "libphonenumber": {
+ "baseline": "8.13.1",
+ "port-version": 0
+ },
"libplist": {
"baseline": "1.3.6",
"port-version": 1
You have modified or added at least one vcpkg.json where you should check the license
field.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/libphonenumber/vcpkg.json
Valid values for the license field can be found in the documentation
@trishvl, Thanks for your pr, according to the ci error log, it seems that your submission file seems to be in an irregular format, please use the command
|
Just pushed changes to solve irregular format! Still running into issues with getting Debug version to work. Would a Debug build be needed for the PR? Was also wondering if there have been previous experiences working with a ninja error: multiple rules generate issue? I headed into those errors when libphonenumbers' cmakelists would make static and shared libs under the same output name. In my commits, I just commented out the code that builds the shared libs, but wondering if there is another way I can mitigate this. Thanks! |
Needing help with some builds! Still working on understanding it myself but here is my current status:
Currently on my local machine:
|
…in static builds, and added support for re2
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json
or CONTROL
must be modified.
error: checked-in files for libphonenumber have changed but the version was not updated
version: 8.13.1
old SHA: 7cb9bbe59d152d21b1cefde5a0a8c02469d1cb60
new SHA: f067e35f9342a2961bb6117d7d7a6bee34be020b
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***
You have modified or added at least one vcpkg.json where you should check the license
field.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/libphonenumber/vcpkg.json
Valid values for the license field can be found in the documentation
I found in multiple .cpp codes upstream of icu that the header files and some variables they refer to are not applicable to UWP, so icu does not support uwp now https://github.com/unicode-org/icu/search?q=uwp
Looks the ci x64-linux error, libphonenumber can't find icuin.lib
|
…triplets due to time.
Awesome, thanks for letting me know! For now, due to time constraints with needing to work with libphonenumber via vcpkg, I'll skip linux and osx builds as well as Debug builds for x64 static triplets (getting an error with mismatched debug levels, see attached log file below). |
Addressed this by bypassing the version check. |
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.
Thanks for the PR!
# If ICU regexp engine is used or if the geocoder is built, use icui18n as well. | ||
if (${USE_ICU_REGEXP} STREQUAL "ON" OR ${BUILD_GEOCODER} STREQUAL "ON") | ||
- find_required_library (ICU_I18N unicode/regex.h icui18n "ICU") | ||
+ find_required_library (ICU_I18N unicode/regex.h icuin "ICU") |
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.
It would be better to put this above the find_package()
call above so you can add i18n
to the COMPONENTS
list.
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.
Could you consider replacing find_package() here?
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json
or CONTROL
must be modified.
error: checked-in files for libphonenumber have changed but the version was not updated
version: 8.13.1
old SHA: f067e35f9342a2961bb6117d7d7a6bee34be020b
new SHA: 48c9e00d6d04d51793c15a7d57720de09bc2c9b2
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***
You have modified or added at least one vcpkg.json where you should check the license
field.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/libphonenumber/vcpkg.json
Valid values for the license field can be found in the documentation
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.
You have modified or added at least one vcpkg.json where you should check the license
field.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/libphonenumber/vcpkg.json
Valid values for the license field can be found in the documentation
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.
IMO this project needs more work to transform it into a good vcpkg port.
- vcpkg wants to build the either the static lib or the shared lib.
This needs a patch to controlBUILD_SHARED_LIB
(which can use the standardBUILD_SHARED_LIBS
), and proper passing or deriving ofBUILD_STATIC_LIB
. - The link libraries and usage requirements vary with linkage. For convenient use, it takes at least a proper
usage
file (explaining how to dofind_path
andfind_library
), or another patch to export unofficial CMake config.
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json
or CONTROL
must be modified.
error: checked-in files for libphonenumber have changed but the version was not updated
version: 8.13.1
old SHA: 49b4ca5d52524bac7bea1d7e75ea9168d3447597
new SHA: 92a7c51466c59c74fca7f9e1232606aebe62c0e2
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***
You have modified or added at least one vcpkg.json where you should check the license
field.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/libphonenumber/vcpkg.json
Valid values for the license field can be found in the documentation
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json
or CONTROL
must be modified.
error: checked-in files for libphonenumber have changed but the version was not updated
version: 8.13.1
old SHA: 49b4ca5d52524bac7bea1d7e75ea9168d3447597
new SHA: 171ec5d6a0e0e6f6241c82dee050881b2eb74608
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***
You have modified or added at least one vcpkg.json where you should check the license
field.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/libphonenumber/vcpkg.json
Valid values for the license field can be found in the documentation
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.
You have modified or added at least one vcpkg.json where you should check the license
field.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/libphonenumber/vcpkg.json
Valid values for the license field can be found in the documentation
Co-authored-by: JonLiu1993 <[email protected]>
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
All manifest files must be formatted
./vcpkg format-manifest ports/*/vcpkg.json
Diff
diff --git a/ports/libphonenumber/vcpkg.json b/ports/libphonenumber/vcpkg.json
index 06e88f5..71d60e8 100644
--- a/ports/libphonenumber/vcpkg.json
+++ b/ports/libphonenumber/vcpkg.json
@@ -2,8 +2,8 @@
"name": "libphonenumber",
"version": "8.13.1",
"description": "Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.",
- "supports": "!static & !linux & !osx",
"license": "Apache-2.0",
+ "supports": "!static & !linux & !osx",
"dependencies": [
"abseil",
"boost-date-time",
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json
or CONTROL
must be modified.
error: checked-in files for libphonenumber have changed but the version was not updated
version: 8.13.1
old SHA: 171ec5d6a0e0e6f6241c82dee050881b2eb74608
new SHA: a49f66d129392e6513eb9c622b2992f8d7c195cb
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json
or CONTROL
must be modified.
error: checked-in files for libphonenumber have changed but the version was not updated
version: 8.13.1
old SHA: 5fe1664b334b210bf2567a0dc25d96a4a7ed64b8
new SHA: a49f66d129392e6513eb9c622b2992f8d7c195cb
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***
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.
Aside from the remaining comments, the PR looks good to me :)
- "test_metadata" | ||
-) | ||
-list (APPEND TESTING_LIBRARY_SOURCES "src/phonenumbers/test_metadata.cc") | ||
+if (${BUILD_GTEST} STREQUAL "ON") |
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 believe the best thing to do here is to guard the testing stuff with if(FALSE). Please try to avoid shifting the code down to minimize changes :)
ports/libphonenumber/portfile.cmake
Outdated
"fix-re2-identifiers.patch" | ||
"fix-icui18n-lib-name.patch" | ||
"fix-absl-with-geocoder-off.patch" | ||
"make-test-optional.patch" |
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.
As per the previous comment this should probably be renamed :)
ports/libphonenumber/vcpkg.json
Outdated
"boost-date-time", | ||
"boost-system", | ||
"boost-thread", | ||
"gtest", |
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.
"gtest", |
Complete
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json
or CONTROL
must be modified.
error: checked-in files for libphonenumber have changed but the version was not updated
version: 8.13.1
old SHA: a49f66d129392e6513eb9c622b2992f8d7c195cb
new SHA: 4a8a7aedced30ba3195353fdda4103829068e299
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***
Thank you! |
Adding port for libphonenumber OSS to work in Windows.
What does your PR fix?
Fixes issue [New Port Request] libphonenumber #27595
Which triplets are supported/not supported? Have you updated the CI baseline?
linux, No (Updated in CI baseline)
osx, No (Updated in CI baseline)
uwp, No (due to icu lib, so not updated in CI baseline)
x64-windows, Yes
x86-windows, Yes
arm64-windows, Yes
x64-windows-static, Release only (Updated in triplets)
x64-windows-static-md, Release only (Updated in triplets)
Does your PR follow the maintainer guide?
Yes. Some of the patches could be minimized and most can be added as changes upstream. Have comments on portfile to specify for help.
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?Yes