freetype2.pc contains wrong version 2.10.0
- Dominant language
- C
- Stars
- 107
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to build libass(for mpv), and I get the following error:
```
configure: error: Package requirements (harfbuzz >= 1.2.3) were not met:
Package 'harfbuzz' requires 'freetype2 >= 12.0.6' but version of freetype2 is 2.10.0
You may find new versions of FreeType 2 at https://freetype.org
```
The `docs/VERSIONS.TXT` says this about versioning:
```
For each new public release of FreeType 2, there are generally *three*
distinct `version' numbers to consider:
* The official FreeType 2 release number, like 2.3.1 or 2.4.10.
* The libtool (and Unix) specific version number, like 13.0.7. This
is what `freetype-config --version' returns.
* The platform-specific shared object number, used for example when
the library is installed as `/usr/lib/libfreetype.so.6.7.1'.
```
But the generated `freetype2.pc` contains the following:
```
Name: FreeType 2
URL: https://freetype.org
Description: A free, high-quality, and portable font engine.
Version: 2.10.0
Requires:
Requires.private: zlib, bzip2, libpng, harfbuzz
Libs: -L${libdir} -lfreetype
Libs.private:
Cflags: -I${includedir}/freetype2
```
however it should contain 13.0.7+ version according to the documentation.
I am building freetype with the following CMake statement:
```cmake
ExternalProject_Add(
freetype2
DEPENDS HarfBuzz
GIT_REPOSITORY https://github.com/aseprite/freetype2.git
GIT_TAG VER-2-10-0
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${ROOT_PATH} -DCMAKE_PREFIX_PATH=${ROOT_PATH}
BUILD_ALWAYS OFF
BUILD_IN_SOURCE OFF)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with docs/VERSIONS.TXT and inspect how the generated freetype2.pc gets its Version value during the CMake build shown in the issue. Confirm the metadata uses the intended version convention, then rebuild and verify the generated freetype2.pc reports the expected value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cmake
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100