mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Caused by a regression in Qt. https://bugreports.qt.io/browse/QTBUG-46882 Also, add the build scripts for calibre dependencies on OSX and linux to the source tree.
19 lines
1.4 KiB
Bash
Executable File
19 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# See windows/notes.rst for instructions on slimming down Qt.
|
|
|
|
# We disable loading of bearer plugins because many distros ship with broken bearer plugins that cause hangs.
|
|
# At least, this was the case in Qt 4.x Dont know if it is still true for Qt 5 but since we dont need bearers anyway, it cant hurt.
|
|
|
|
cd $SW/build/qt-* && sed -i -e 's:/bearer":/bearer-disabled-by-kovid":' qtbase/src/network/bearer/qnetworkconfigmanager_p.cpp || die "sed for bearer failed."
|
|
|
|
# Change pointing_hand to hand2, see https://bugreports.qt.io/browse/QTBUG-41151
|
|
|
|
cd $SW/build/qt-* && sed -i -e 's:pointing_hand":hand2":' qtbase/src/plugins/platforms/xcb/qxcbcursor.cpp || die "sed for pointing_hand failed."
|
|
|
|
# libudev is disabled because systemd based distros use libudev.so.1 while non systemd based distros use libudev.so.0 (debian stable currently uses libudev.so.0). And according to the incompetent udev developers, we cannot use mismatching udev client and daemon versions. http://www.marshut.com/yiqmk/can-apps-ship-their-own-copy-of-libudev.html
|
|
|
|
rm -rf build && mkdir build && cd build && \
|
|
../configure -opensource -confirm-license -prefix $SW/qt -release -nomake examples -nomake tests -no-sql-odbc -no-sql-psql -no-qml-debug -qt-xcb -cups -no-c++11 -force-pkg-config -pulseaudio -no-libudev -openssl -gtkstyle -icu $CFLAGS $LDFLAGS && \
|
|
make -j4 && rm -rf $SW/qt && make install
|