RJVB / macstrop

RJVB's repository of alternative macports, with ports missing from or overriding those in the standard collection, including a set of KF5 ports.
20 stars 8 forks source link

kf5-tellico configure stuck with ksvg2icns #23

Open gitdevmod opened 5 years ago

gitdevmod commented 5 years ago

Installation of kf5-tellico is stuck with ksvg2icns:

$ sudo port install kf5-tellico ---> p5-text-bibtex is replaced by p5.26-text-bibtex ---> Deactivating p5-text-bibtex @0.850.0_0 ---> Cleaning p5-text-bibtex ---> Computing dependencies for p5.26-text-bibtex ---> Cleaning p5.26-text-bibtex ---> Computing dependencies for kf5-tellico The following dependencies will be installed: p5-text-bibtex Continue? [Y/n]: y ---> Activating p5-text-bibtex @0.850.0_0 ---> Cleaning p5-text-bibtex ---> Fetching distfiles for kf5-tellico ---> Verifying checksums for kf5-tellico ---> Extracting kf5-tellico ---> Applying patches to kf5-tellico ---> Configuring kf5-tellico load: 2.94 cmd: ksvg2icns 4220 waiting 0.13u 0.07s

$ ps auxwww|grep ksvg2icns tom 4283 0,0 0,0 4267752 816 s003 S+ 4:25 0:00.00 grep ksvg2icns macports 4220 0,0 0,3 4424200 22236 s002 S+ 4:22 0:00.22 /opt/local/bin/ksvg2icns /opt/local/var/macports/build/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/work/tellico-3.1.3/icons/tellico.svg

$ file /opt/local/bin/ksvg2icns /opt/local/var/macports/build/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/work/tellico-3.1.3/icons/tellico.svg /opt/local/bin/ksvg2icns: Mach-O 64-bit executable x86_64 /opt/local/var/macports/build/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/work/tellico-3.1.3/icons/tellico.svg: SVG Scalable Vector Graphics image

$ ksvg2icns This application failed to start because it could not find or load the Qt platform plugin "cocoa" in "".

Available platform plugins are: cocoa, minimal, offscreen, vnc.

Reinstalling the application may fix this problem.

^C

TIA

RJVB commented 5 years ago

$ ksvg2icns This application failed to start because it could not find or load the Qt platform plugin "cocoa" in "".

Available platform plugins are: cocoa, minimal, offscreen, vnc.

Reinstalling the application may fix this problem.

That error scares me a little. Do other Qt or KF5 applications run normally? Does qtdiag (/opt/local/libexec/qt5/bin/qtdiag) output anything that seems off?

RJVB commented 5 years ago

$ ksvg2icns This application failed to start because it could not find or load the Qt platform plugin "cocoa" in "".

This is still very weird: it doesn't make sense that Qt would NOT find a plugin with a name that is included in the list of available plugins it prints in the same error message. The only sensible explanation would be that it tries to load a plugin with a name that contains unprintable characters ... but how/why would that be the case for you?!

It made me realise though that ksvg2icns wouldn't run on a headless (build/CI) server, and instead give an error like this when trying to initialise the cocoa QPA plugin:

_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
KCrash: Application 'ksvg2icns' crashing...
KCrash: Attempting to start /opt/local/libexec/kde5/drkonqi directly
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.

KF5 5.53.0 will have a version that is compatible with headless servers; you'll get this version when you install the kf5-kiconthemes upgrade I just pushed.

gitdevmod commented 5 years ago

@RJVB I upgraded kf5-kiconthemes but

kf5-tellico configure fails

:info:configure -- The following OPTIONAL packages have not been found: :info:configure Btparse, External support for parsing and processing BibTeX data files, https://metacpan.org/release/Text-BibTeX :info:configure Csv (required version >= 3.0), External support for reading CSV files, http://sourceforge.net/projects/libcsv/ :info:configure -- Configuring done :info:configure CMake Error at src/CMakeLists.txt:75 (add_executable): :info:configure Cannot find source file: :info:configure /opt/local/var/macports/build/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/work/build/src/tellico.icns :info:configure Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm :info:configure .hpp .hxx .in .txx :info:configure CMake Error at src/CMakeLists.txt:75 (add_executable): :info:configure No SOURCES given to target: tellico :info:configure -- Build files have been written to: /opt/local/var/macports/build/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/work/build :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/work/build" && /bin/csh -cf '/opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DAPPLE_FORCE_UNIX_DIRS=ON -DAPPLE_SUPPRESS_INSTALLDIRS_WARNING=OFF -DPLUGIN_INSTALL_DIR=/opt/local/share/qt5/plugins -DKDE_INSTALL_QTPLUGINDIR=/opt/local/share/qt5/plugins -DQML_INSTALL_DIR=/opt/local/share/qt5/qml -DBUILD_doc=OFF -DBUILD_docs=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_STRIP:FILEPATH=/bin/echo -DBUNDLE_INSTALL_DIR=/Applications/MacPorts/KF5 -DAPPLE_SUPPRESS_X11_WARNING=ON -DCMAKE_INSTALL_LIBEXECDIR=/opt/local/libexec -DKDE_INSTALL_LIBEXECDIR=/opt/local/libexec/kde5 -DCMAKE_MACOSX_RPATH=ON -DSYSCONF_INSTALL_DIR="/opt/local/etc" -DPYTHON_EXECUTABLE=/opt/local/bin/python2.7 -DCMAKE_DISABLE_FIND_PACKAGE_KF5Sane=ON -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.13" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/work/tellico-3.1.3 |& tee /opt/local/var/macports/build/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/work/.macports.kf5-tellico.configure.log' :info:configure Exit code: 1 :error:configure Failed to configure kf5-tellico: configure failure: command execution failed :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed :debug:configure while executing :debug:configure "$procedure $targetname" :error:configure See /opt/local/var/macports/logs/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/main.log for details.

From a ssh session: $ ksvg2icns _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL. Segmentation fault: 11

RJVB commented 5 years ago

On Friday December 07 2018 13:57:23 gitdevmod wrote:

:info:configure CMake Error at src/CMakeLists.txt:75 (add_executable): :info:configure Cannot find source file: :info:configure /opt/local/var/macports/build/_opt_local_macstrop_kf5_kf5-tellico/kf5-tellico/work/build/src/tellico.icns ...

$ ksvg2icns _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL. Segmentation fault: 11

I see only 1 explanation for this that makes sense: you're connecting to a remote Mac host and you're not logged in locally on that Mac at the same time.

I've had to revert the change that made ksvg2icns compatible with this kind of headless set-ups due to a shortcoming in Qt.

gitdevmod commented 5 years ago

@RJVB Indeed, there was no session active. I did a build logged on my Mac and it works now ! thx :)