-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
freetype/2.13.*: Switch to Meson build system #22974
Conversation
This comment has been minimized.
This comment has been minimized.
8e8d780
to
436c601
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This looks suspiciously like a long paths issue. I can build successfully on Windows locally.
|
This comment has been minimized.
This comment has been minimized.
I detected other pull requests that are modifying freetype/all recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
f1aed39
to
3c3ecf7
Compare
This comment has been minimized.
This comment has been minimized.
This patch is a bad workaround for improper versioning in the freetype package. This is fixed in the freetype package itself in conan-io#22974.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Martin Valgur <martin.valgur@gmail.com>
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ✔️All green in build 31 (
|
This patch is a bad workaround for improper versioning in the freetype package. This is fixed in the freetype package itself in conan-io#22974.
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 a lot for this, @jwillikers! Blocking only to let me review it calmly 😁 Just a few minutes 🙏
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.
LGTM! 👏
This PR broke our builds, due to the version obtained from the raw file, see: https://github.com/Ultimaker/cura-workflows/actions/runs/8798472364/job/24145560363#step:16:27993 Is there a quick fix for this? It's blocking our release of Cura 5.7.1, current approach is setting the |
yes: #23010 |
@jellespijker Yes, sorry about breaking that. I tried to make it as clear as possible to the team that fixing the pkg-config version would break the |
* freetype: Switch to Meson build system This requires way less patching. Way less. * Add patch to find bzip2 * Bump PNG * Set pkg-config version appropriately * Don't use collect_libs * Fix version for Conan V1 * Enable short paths * Fix config * Update the OpenSans-Bold font to version 3 from version 1 This changes the license of the font from the Apache license to the OFL. This TTF file has been updated to include the full text of the license. This follows the recommendation of the OFL's FAQ: https://openfontlicense.org/how-to-use-ofl-fonts/#22a585885b5cb7cc58d60445ecf0d8ad6f76ef24 * Add license attribute to test package for the OpenSans font The license is available here: https://github.com/googlefonts/opensans/blob/main/OFL.txt * Account for the name of the static library on Windows * Revert "Account for the name of the static library on Windows" This reverts commit 89275d0. * Bump the minimum CMake version for the test packages * See if a newer version of CMake fixes the test packages * Try using short paths for the test package * Check variables for modules before defining the target * Enable short paths for the test_package_module * Use a newer version of CMake in test_package_module * Explicitly set the freetype library path for CMake * Try setting FREETYPE_LIBRARIES * Revert "Try setting FREETYPE_LIBRARIES" This reverts commit bb3907b. * Revert "Explicitly set the freetype library path for CMake" This reverts commit babf66a. * Set if CMAKE_FIND_LIBRARY_SUFFIXES to include ".a" suffixes on Windows * Revert "Set if CMAKE_FIND_LIBRARY_SUFFIXES to include ".a" suffixes on Windows" This reverts commit 0d30c04. * Rename .a to .lib to workaround CMake versions prior to 3.29 * Remove lib prefix on Windows as well to allow CMake to find the library * Build version 2.13.0 with Meson as well and remove tool_requires cmake * Rename the patch file * Remove pdb files * Update recipes/freetype/meson/conanfile.py Co-authored-by: Martin Valgur <martin.valgur@gmail.com> * Correctly order versions --------- Co-authored-by: Martin Valgur <martin.valgur@gmail.com>
* fontconfig: Remove patch for freetype libtool version number This patch is a bad workaround for improper versioning in the freetype package. This is fixed in the freetype package itself in #22974. * Fix missing conf fontconfig file This fixes the following error, which can be seen when running the test package: ``` Fontconfig error: Cannot load default config file: No such file: (null) ``` This is fixed by installing the fontconfig configuration file. It was being installed to the wrong location in the Meson package previously. Additionally, don't set `FONTCONFIG_FILE`, but instead append to `FONTCONFIG_PATH` only. This works and makes it easier for consumers to opt for the system font directory. See #5782. * Use relative paths for the updated Meson generator
This requires way less patching. Way less.
Fix the version in the pkg-config file to correctly map to the API version.
Update the font used in the test package and embed the OFL license in the font as suggested in the OFL FAQ.
Add this license to the license attribute of the test packages to make this licensing clear.
#23010 should be merged immediately after this PR to accommodate the correct API version being used now.
No longer blocked by conan-io/hooks#516.
In order to work for CMake versions before 3.29, the Meson generated static library on Windows is renamed from
libfreetype.a
tofreetype.lib
. CMake 3.29 and later properly detect static libraries generated by Meson on Windows for MSVC, i.e. static libraries suffixed with.a
instead of.lib
. This change is documented in the CMake 3.29 release notes: