Use the same soname for the freetype library as webengine uses

This commit is contained in:
Kovid Goyal 2024-10-03 07:09:02 +05:30
parent 8fbb9b254b
commit ee88003c01
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 2 deletions

View File

@ -801,8 +801,9 @@ def check_glibc_version(min_required=(2, 31), release_date='2020-02-01'):
def check_for_recent_freetype(): def check_for_recent_freetype():
import ctypes import ctypes
f = None
try: try:
f = ctypes.CDLL('libfreetype.so') f = ctypes.CDLL('libfreetype.so.6')
except OSError: except OSError:
raise SystemExit('Your system is missing the FreeType library libfreetype.so. Try installing the freetype package.') raise SystemExit('Your system is missing the FreeType library libfreetype.so. Try installing the freetype package.')
try: try:

View File

@ -850,8 +850,9 @@ def check_glibc_version(min_required=(2, 31), release_date='2020-02-01'):
def check_for_recent_freetype(): def check_for_recent_freetype():
import ctypes import ctypes
f = None
try: try:
f = ctypes.CDLL('libfreetype.so') f = ctypes.CDLL('libfreetype.so.6')
except OSError: except OSError:
raise SystemExit('Your system is missing the FreeType library libfreetype.so. Try installing the freetype package.') raise SystemExit('Your system is missing the FreeType library libfreetype.so. Try installing the freetype package.')
try: try: