Opened 5 years ago

Last modified 5 years ago

#59708 assigned defect

Kate @4.14.3_5 build failure: Failed to generate ICNS

Reported by: TheLord45 Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: kate

Description

Hi,

i tried to install kate on OSX 10.15.1 (Catalina) and got the following errors during compile:

:info:configure -- Python system site-packages directory: /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
:info:configure -- The Python files will be installed to /opt/local/lib/python3.7/site-packages. Make sure to add them to the Python search path (e.g. by setting PYTHONPATH)
:info:configure -- Found PythonLibrary: /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib
:info:configure -- Found SIP version: 4.19.19
:info:configure Traceback (most recent call last):
:info:configure   File "/Volumes/Storage/local/share/apps/cmake/modules/FindPyQt.py", line 6, in <module>
:info:configure     import PyQt4.QtCore
:info:configure ModuleNotFoundError: No module named 'PyQt4'
:info:configure Traceback (most recent call last):
:info:configure   File "/Volumes/Storage/local/share/apps/cmake/modules/FindPyKDE4.py", line 5, in <module>
:info:configure     import PyKDE4.kdecore
:info:configure ModuleNotFoundError: No module named 'PyKDE4'
:info:configure CMake Warning at addons/kate/pate/CMakeLists.txt:52 (message):
:info:configure   Pate plugin needs the PyQt4 development sip file QtCoremod.sip
:info:configure -- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2")
:info:configure -- Checking for module 'QJson>=0.5'
:info:configure --   Found QJson, version 0.9.0
:info:configure -- Found QJSON: /opt/local/lib/libqjson.dylib
:info:configure -----------------------------------------------------------------------------
:info:configure -- The following external packages were located on your system.
:info:configure -- This installation will have the extra features provided by these packages.
:info:configure -----------------------------------------------------------------------------
:info:configure    * KActivities - Activities interface library
:info:configure    * PythonLibrary - Python Library
:info:configure    * SIP - Support for SIP Python bindings
:info:configure    * QJSON - Json parser for Qt

I installed PyQT4 with the command sudo port install py-pyqt4 successfully, but this didn't change anything. I tried to clean kate and reinstall it, but the error stays. Have I forgotten something to install?

Attached to this message is the whole log file from compiling kate.

A.T.

Attachments (1)

main.log.gz (42.7 KB) - added by TheLord45 5 years ago.
Complete log file.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by TheLord45

Attachment: main.log.gz added

Complete log file.

comment:1 Changed 5 years ago by mf2k (Frank Schima)

In the future, please fill in the Port field and add the port maintainer(s) to Cc (port info --maintainers kate), if any.

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Keywords: kate removed
Owner: set to NicosPavlov
Port: kate added
Status: newassigned

comment:3 Changed 5 years ago by jmroot (Joshua Root)

Summary: Kate 4.14.3_5.darwin_19.x86_64: compile error: No module named 'PyQt4'Kate @4.14.3_5 build failure: Failed to generate ICNS

Failing to find PyQt4 doesn't stop the build from proceeding. The actual error is:

:info:build cd /Volumes/Storage/local/var/macports/build/_Volumes_Storage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kate/kate/work/build/kwrite && /usr/bin/iconutil --convert icns --output /Volumes/Storage/local/var/macports/build/_Volumes_Storage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kate/kate/work/build/kwrite/kwrite_KDEINIT_SRCS.icns /Volumes/Storage/local/var/macports/build/_Volumes_Storage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kate/kate/work/build/kwrite/kwrite_KDEINIT_SRCS.iconset
:info:build /Volumes/Storage/local/var/macports/build/_Volumes_Storage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kate/kate/work/build/kwrite/kwrite_KDEINIT_SRCS.iconset:Failed to generate ICNS.
:info:build make[2]: *** [kwrite/kwrite_KDEINIT_SRCS.icns] Error 1

comment:4 Changed 5 years ago by NicosPavlov

Summary: Kate @4.14.3_5 build failure: Failed to generate ICNSKate 4.14.3_5.darwin_19.x86_64: compile error: No module named 'PyQt4'

As said above, the absence of pyqt4 is not the issue here. It is an optional package that is not strictly required to build Kate. Then, it seems that Kate is linking to python opportunistically as it is not part of the declared dependencies, which is an issue in itself. I'll have to add a variant to declare python.

It is also not really clear to me why the iconutil command fails. I can't reproduce the error on my system (10.14), so I don't know if it is a Catalina issue or if something else is going on.

comment:5 Changed 5 years ago by NicosPavlov

Summary: Kate 4.14.3_5.darwin_19.x86_64: compile error: No module named 'PyQt4'Kate @4.14.3_5 build failure: Failed to generate ICNS
Note: See TracTickets for help on using tickets.