From dab71f54e31949e3a456ac5a0df58afdc43fb1d3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 26 May 2023 11:50:01 +0530 Subject: [PATCH] Fix the soname used to bundle libpodofo on Linux. Fixes #2020842 [converting epub to pdf fails with error "ImportError: libpodofo.so.1: cannot open shared object file: No such file or directory"](https://bugs.launchpad.net/calibre/+bug/2020842) --- bypy/linux/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bypy/linux/__main__.py b/bypy/linux/__main__.py index a8660ac424..1d14ecf326 100644 --- a/bypy/linux/__main__.py +++ b/bypy/linux/__main__.py @@ -46,7 +46,7 @@ def binary_includes(): ('usb-1.0 mtp expat sqlite3 ffi z lzma openjp2 poppler dbus-1 iconv xml2 xslt jpeg png16' ' webp webpmux webpdemux exslt ncursesw readline chm hunspell-1.7 hyphen' ' icudata icui18n icuuc icuio stemmer gcrypt gpg-error uchardet graphite2' - ' brotlicommon brotlidec brotlienc zstd' + ' brotlicommon brotlidec brotlienc zstd podofo' ' gobject-2.0 glib-2.0 gthread-2.0 gmodule-2.0 gio-2.0 dbus-glib-1').split() )) + [ # debian/ubuntu for for some typical stupid reason use libpcre.so.3 @@ -56,7 +56,7 @@ def binary_includes(): # than libc and libpthread we bundle the Ubuntu one here glob.glob('/usr/lib/*/libpcre.so.3')[0], - get_dll_path('podofo', 3), get_dll_path('bz2', 2), j(PREFIX, 'lib', 'libunrar.so'), + get_dll_path('bz2', 2), j(PREFIX, 'lib', 'libunrar.so'), get_dll_path('ssl', 2), get_dll_path('crypto', 2), get_dll_path('python' + py_ver, 2), # We dont include libstdc++.so as the OpenGL dlls on the target