Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851273 - app-text/poppler-22.05.0 failed to build, cannot find suitable Freetype version
Summary: app-text/poppler-22.05.0 failed to build, cannot find suitable Freetype version
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-11 22:06 UTC by wai
Modified: 2022-06-12 21:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (app-text:poppler-22.05.0:20220611-175839.log,6.67 KB, text/plain)
2022-06-11 22:06 UTC, wai
Details
emerge info (emerge_info.log,6.41 KB, text/plain)
2022-06-11 22:07 UTC, wai
Details
build environment (environment,89.06 KB, text/plain)
2022-06-11 22:08 UTC, wai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wai 2022-06-11 22:06:39 UTC
Created attachment 784127 [details]
build log

Software version :
poppler-22.05.0
cmake-3.22.4
media-libs/freetype-2.12.0-r1

use flags for poppler :
[ebuild     U ] app-text/poppler-22.05.0 [22.03.0] USE="cairo cjk cxx introspection jpeg jpeg2k lcms png qt5 tiff utils -boost -curl -debug -doc -nss" 


poppler-22.05.0 failed to build with error messages :
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Freetype: Found unsuitable version "2.1.10", but required is
  at least "2.8" (found /usr/lib64/libfreetype.so)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindFreetype.cmake:162 (find_package_handle_standard_args)
  CMakeLists.txt:146 (find_package)


Please note that poppler-22.03.0 compiled without any issues.
Comment 1 wai 2022-06-11 22:07:42 UTC
Created attachment 784130 [details]
emerge info
Comment 2 wai 2022-06-11 22:08:15 UTC
Created attachment 784133 [details]
build environment
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-12 00:52:37 UTC
Something's off here but not yet sure what. Was discussed on forums at https://forums.gentoo.org/viewtopic-t-1151438.html but no more information than is here.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-12 00:54:36 UTC
Diff b/t 22.03.0 and 22.05.0 has:
```
+set(FREETYPE_VERSION "2.8")

-find_package(Freetype REQUIRED)
+find_package(Freetype ${FREETYPE_VERSION} REQUIRED)
```
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-12 00:55:16 UTC
This feels like confusion between the soname version and the library version. Had issues with this with pkg-config and freetype before.
Comment 6 wai 2022-06-12 21:46:16 UTC
After the "hint" from Comment #4.
I found a old version of libfreetype (from year 2005) installed in /usr/local by running :

find /usr -name "ft2build.h"

poppler build correctly when the old version was removed.

Many thanks to Sam for his assistance.