Opened 9 months ago

Last modified 7 months ago

#67881 assigned defect

kdelibs4 does not find some installed ports which it needs

Reported by: barracuda156 Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: cooljeanius (Eric Gallager), mpbb77 (Miguel Branco)
Port: kdelibs4

Description

-- Found ASPELL: /opt/local/lib/libaspell.dylib  
-- Found ENCHANT: /opt/local/include/enchant  
-- Found JPEG: /opt/local/lib/libjpeg.dylib (found version "80") 
-- Found GIF: /opt/local/lib/libgif.dylib (found version "4.2.3") 
-- Found PNG: /opt/local/lib/libpng.dylib (found version "1.6.40") 
-- Found Jasper: /opt/local/libexec/jasper2/lib/libjasper.dylib (found version "2.0.33") 
-- Found Avahi: /opt/local/include  
-- Adding support for OpenGL applets to libplasma
-- Adding support for Phonon to libplasma
-- The following features have been enabled:

 * QtWebkit, Needed for building kdelibs

-- The following OPTIONAL packages have been found:

 * Soprano (required version >= 2.7.56), Support for the Nepomuk semantic desktop system, <http://soprano.sourceforge.net>
 * SharedDesktopOntologies (required version >= 0.10), Support for the Nepomuk semantic desktop system, <http://oscaf.sourceforge.net>
 * QCA2 (required version >= 2.0.0), Support for remote plasma widgets, <http://delta.affinix.com/qca>
 * LibLZMA, Support for xz compressed files and data streams, <http://tukaani.org/xz/>
 * Threads
 * Grantlee (required version >= 0.1.0), ModelEventLogger code generation (part of the ProxyModel test suite), <http://www.grantlee.org>
   Grantlee is used for generating compilable code by the ModelEventLogger.
                         Without Grantlee, the logger will do nothing.
 * PCRE, Perl-compatible regular expressions in KJS, <http://www.pcre.org>
   Without PCRE, KJS will have extremely poor regular expression support, breaking many webpages.
 * FLEX, Allows the Solid predicate parser to be updated, <http://flex.sourceforge.net>
   Required by the UpdateSolidPredicateParser target (mainly useful for developers)
 * BISON, Allows the Solid predicate parser to be updated, <http://www.gnu.org/software/bison>
   Required by the UpdateSolidPredicateParser target (mainly useful for developers)
 * GSSAPI, Allows KIO to make use of certain HTTP authentication services, <http://web.mit.edu/kerberos/www>
   A MIT or HEIMDAL flavor of GSSAPI can be used
 * ASPELL, Spell checking support via Aspell, <http://aspell.net/>
   This is not needed for spell checking if Enchant is provided or only Hebrew spell checking is required
 * ENCHANT, Spell checking support via Enchant, <http://www.abisource.com/projects/enchant/>
 * Jasper, Support for JPEG-2000 images, <http://www.ece.uvic.ca/~mdadams/jasper>
 * PkgConfig
 * Avahi, Facilities for service discovery on a local network (DNSSD), <http://avahi.org>
   Either Avahi or DNSSD is required for KDE applications to make use of multicast DNS/DNS-SD service discovery

-- The following RECOMMENDED packages have been found:

 * Libintl, Support for multiple languages, <http://www.gnu.org/software/gettext>
   Enables KDE to be available in many different languages
 * BZip2, Support for BZip2 compressed files and data streams, <http://www.bzip.org>
 * OpenSSL, Support for secure network communications (SSL and TLS), <http://openssl.org>
   KDE uses OpenSSL for the bulk of secure communications, including secure web browsing via HTTPS

-- The following REQUIRED packages have been found:

 * Automoc4
 * Phonon (required version >= 4.3.80)
 * KDE4Internal
 * Carbon
 * Perl, <http://www.perl.org>
   Needed for building kdelibs
 * Strigi (required version >= 0.6.3), Desktop indexing and search support, <http://strigi.sourceforge.net>
   Required by some critical kioslaves
 * LibAttica (required version >= 0.4.2), Support for Get Hot New Stuff, <https://projects.kde.org/attica>
 * DBusMenuQt, Support for notification area menus via the DBusMenu protocol, <https://launchpad.net/libdbusmenu-qt>
 * Qt4
 * IOKit
 * LibXslt, <http://xmlsoft.org/XSLT>
   Required by the KDE help system to process DocBook XML
 * LibXml2, <http://xmlsoft.org>
   Required by the KDE help system to process DocBook XML
 * DocBookXML, DocBook XML, <http://www.oasis-open.org/docbook/xml/4.2>
   Required by the KDE help system to process DocBook XML
 * DocBookXSL, DocBook XSL, <http://docbook.sourceforge.net/release/xsl/current/>
   Required by the KDE help system to process DocBook XML
 * GIF, GIF image format support, <http://sourceforge.net/projects/giflib>
   Required by khtml
 * ZLIB, Support for gzip compressed files and data streams, <http://www.zlib.net>
   Required by the core KDE libraries and some critical kioslaves
 * PNG, PNG image format support, <http://www.libpng.org/pub/png>
   Required by khtml
 * JPEG, JPEG image format support, <http://www.ijg.org>
   Required by khtml

-- The following OPTIONAL packages have not been found:

 * OpenEXR, Support for OpenEXR images, <http://www.openexr.com>

-- The following RECOMMENDED packages have not been found:

 * ACL, Support for manipulating access control lists, <ftp://oss.sgi.com/projects/xfs/cmd_tars>
   STRONGLY RECOMMENDED

-- The following REQUIRED packages have not been found:

 * SharedMimeInfo (required version >= 0.60), Shared Mime Info, <http://freedesktop.org/wiki/Software/shared-mime-info>
   Allows KDE applications to determine file types

CMake Error at /opt/local/share/cmake-3.26/Modules/FeatureSummary.cmake:464 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  CMakeLists.txt:399 (feature_summary)


-- Configuring incomplete, errors occurred!

Of course openexr and are installed though:

36-25% port -v installed openexr | grep active
  openexr @3.1.9_0 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2023-07-04T17:15:37+0800'
36-25% port -v installed shared-mime-info | grep active
  shared-mime-info @2.2_6 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2023-07-30T21:06:00+0800'

Attachments (3)

kdelibs4_CMakeCache.txt (137.6 KB) - added by barracuda156 9 months ago.
kdelibs4_main.log (1.4 MB) - added by barracuda156 9 months ago.
CMakeConfigureLog.yaml (601.8 KB) - added by barracuda156 9 months ago.

Change History (25)

comment:1 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Looks like this builds using cmake, so attach cmake's log files which should give a clue about why it couldn't find those.

comment:2 in reply to:  1 Changed 9 months ago by barracuda156

Replying to ryandesign:

Looks like this builds using cmake, so attach cmake's log files which should give a clue about why it couldn't find those.

Sorry, I actually wanted to, but switching between tasks forgot. Will add now.

Changed 9 months ago by barracuda156

Attachment: kdelibs4_CMakeCache.txt added

Changed 9 months ago by barracuda156

Attachment: kdelibs4_main.log added

comment:3 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

You've attached the CMakeCache.txt, but isn't there also a cmake log file that tells us how it arrived at those cached values?

comment:4 in reply to:  3 Changed 9 months ago by barracuda156

Replying to ryandesign:

You've attached the CMakeCache.txt, but isn't there also a cmake log file that tells us how it arrived at those cached values?

Sorry, I did not see it. Turns out, it was hidden inside directories. Adding now.

Changed 9 months ago by barracuda156

Attachment: CMakeConfigureLog.yaml added

comment:5 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:6 Changed 7 months ago by cooljeanius (Eric Gallager)

I'm also seeing this on Big Sur on x86_64 with Xcode 13:

-- The following OPTIONAL packages have not been found:

 * OpenEXR, Support for OpenEXR images, <http://www.openexr.com>

-- The following RECOMMENDED packages have not been found:

 * ACL, Support for manipulating access control lists, <ftp://oss.sgi.com/projects/xfs/cmd_tars>
   STRONGLY RECOMMENDED

-- The following REQUIRED packages have not been found:

 * SharedMimeInfo (required version >= 0.60), Shared Mime Info, <http://freedesktop.org/wiki/Software/shared-mime-info>
   Allows KDE applications to determine file types

CMake Error at /opt/local/share/cmake-3.24/Modules/FeatureSummary.cmake:464 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  CMakeLists.txt:399 (feature_summary)


-- Configuring incomplete, errors occurred!
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdelibs4/kdelibs4/work/build/CMakeFiles/CMakeOutput.log".
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdelibs4/kdelibs4/work/build/CMakeFiles/CMakeError.log".
CMake Warning:
  Value of SHAREDMIMEINFO_VERSION contained a newline; truncating


Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdelibs4/kdelibs4/work/build" && /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_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_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_MAKE_PROGRAM=/usr/bin/make -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 -DWITH_ENCHANT=ON -DWITH_Soprano=ON -DWITH_Avahi=ON -DKDE_DEFAULT_HOME=Library/Preferences/KDE -DWITH_HSPELL=OFF -DWITH_FAM=OFF -DKDE4_AUTH_BACKEND_NAME="OSX" -DJASPER_LIBRARY_RELEASE=/opt/local/libexec/jasper2/lib/libjasper.dylib -DINCLUDE_INSTALL_DIR=/opt/local/include/KDE4 -DMAC_USE_OSXKEYCHAIN:BOOL=ON -DCMAKE_MODULE_PATH="/opt/local/lib/cmake/KDE4;/opt/local/share/cmake/Modules;/opt/local/libexec/qt4/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/lib/cmake/KDE4;/opt/local/share/cmake/Modules;/opt/local/libexec/qt4/share/cmake/Modules" -DBUILD_doc=OFF -DBUILD_docs=OFF -DBUILD_SHARED_LIBS=ON -DBUNDLE_INSTALL_DIR=/Applications/MacPorts/KDE4 -DKDE_DISTRIBUTION_TEXT="MacPorts/Mac OS X" -DQT_QT_INCLUDE_DIR=/opt/local/libexec/qt4/include  -DQT_QMAKESPEC=macx-g++  -DQT_ZLIB_LIBRARY=/opt/local/lib/libz.dylib  -DQT_PNG_LIBRARY=/opt/local/lib/libpng.dylib -DDOCBOOKXSL_DIR=/opt/local/share/xsl/docbook-xsl-nons -DGETTEXT_INCLUDE_DIR=/opt/local/include -DGETTEXT_LIBRARY=/opt/local/lib/libgettextlib.dylib -DGIF_INCLUDE_DIR=/opt/local/include -DGIF_LIBRARY=/opt/local/lib/libgif.dylib -DJASPER_INCLUDE_DIR=/opt/local/libexec/jasper2/include -DJASPER_LIBRARY=/opt/local/libexec/jasper2/lib/libjasper.dylib -DJPEG_INCLUDE_DIR=/opt/local/include -DJPEG_LIBRARY=/opt/local/lib/libjpeg.dylib -DLBER_LIBRARIES=/opt/local/lib/liblber.dylib -DLDAP_INCLUDE_DIR=/opt/local/include -DLDAP_LIBRARIES=/opt/local/lib/libldap.dylib -DLIBEXSLT_INCLUDE_DIR=/opt/local/include -DLIBEXSLT_LIBRARIES=/opt/local/lib/libexslt.dylib -DLIBICALSS_LIBRARY=/opt/local/lib/libicalss.dylib -DLIBICAL_INCLUDE_DIRS=/opt/local/include -DLIBICAL_LIBRARY=/opt/local/lib/libical.dylib -DLIBINTL_INCLUDE_DIR=/opt/local/include -DLIBINTL_LIBRARY=/opt/local/lib/libintl.dylib -DLIBXML2_INCLUDE_DIR=/opt/local/include/libxml2 -DLIBXML2_LIBRARIES=/opt/local/lib/libxml2.dylib -DLIBXML2_XMLLINT_EXECUTABLE=/opt/local/bin/xmllint -DLIBXSLT_INCLUDE_DIR=/opt/local/include -DLIBXSLT_LIBRARIES=/opt/local/lib/libxslt.dylib -DPNG_INCLUDE_DIR=/opt/local/include -DPNG_PNG_INCLUDE_DIR=/opt/local/include -DPNG_LIBRARY=/opt/local/lib/libpng.dylib -DTIFF_INCLUDE_DIR=/opt/local/include -DTIFF_LIBRARY=/opt/local/lib/libtiff.dylib -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk" -DCMAKE_STRIP:FILEPATH=/bin/echo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdelibs4/kdelibs4/work/kdelibs-4.14.3 
Exit code: 1
Error: Failed to configure kdelibs4: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdelibs4/kdelibs4/work/build/CMakeFiles/CMakeError.log
Error: Failed to configure kdelibs4: configure failure: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"

Likewise, openexr and shared-mime-info are both installed for me, too:

$ port -v installed openexr | grep active
  openexr @3.1.11_0 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2023-09-02T21:45:05-0400'
$ port -v installed shared-mime-info | grep active
  shared-mime-info @2.2_8 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2023-09-22T11:38:25-0400'
Last edited 7 months ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:7 Changed 7 months ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned

Taking this ticket, since I maintain both of the dependencies which aren't being found.

comment:8 Changed 7 months ago by mascguy (Christopher Nielsen)

Cc: mpbb77 added

Has duplicate issue:67915

comment:9 Changed 7 months ago by mascguy (Christopher Nielsen)

So for shared-mime-info, the solution might be to simply support arg -v, to report the version.

As for openexr, it might require switching to the other version of that port.

comment:10 in reply to:  9 ; Changed 7 months ago by cooljeanius (Eric Gallager)

Replying to mascguy:

So for shared-mime-info, the solution might be to simply support arg -v, to report the version.

And also possibly the long form of --version, too.

comment:11 in reply to:  10 Changed 7 months ago by mascguy (Christopher Nielsen)

Replying to cooljeanius:

Replying to mascguy:

So for shared-mime-info, the solution might be to simply support arg -v, to report the version.

And also possibly the long form of --version, too.

The latter isn't supported, only -v is.

comment:12 Changed 7 months ago by Christopher Nielsen <mascguy@…>

In daf5f7b2b1dfca23a83ddebf7b8fdbeb8b07093d/macports-ports (master):

shared-mime-info: update to 2.3; stub script: support -v

See: #67881

comment:13 in reply to:  12 ; Changed 7 months ago by cooljeanius (Eric Gallager)

Replying to Christopher Nielsen <mascguy@…>:

In daf5f7b2b1dfca23a83ddebf7b8fdbeb8b07093d/macports-ports (master):

shared-mime-info: update to 2.3; stub script: support -v

See: #67881

I still get an error after this; apparently it's trying to pass the -v flag to grealpath?

-- Could NOT find SharedMimeInfo: Found unsuitable version "/opt/local/bin/grealpath: invalid option -- 'v'", but required is at least "0.60" (found /opt/local/bin/update-mime-database)

comment:14 in reply to:  13 Changed 7 months ago by mascguy (Christopher Nielsen)

Replying to cooljeanius:

I still get an error after this; apparently it's trying to pass the -v flag to grealpath?

-- Could NOT find SharedMimeInfo: Found unsuitable version "/opt/local/bin/grealpath: invalid option -- 'v'", but required is at least "0.60" (found /opt/local/bin/update-mime-database)

That was just an initial attempt to fix the issue, need to test with the port to see what it's doing.

It really should be checking for the port's pkgconfig file anyway. Sigh.

comment:15 Changed 7 months ago by cooljeanius (Eric Gallager)

ok so the kdelibs4 build now seems to get past the build failure reported here, but now I'm running into a different one; I guess I'll open a separate bug for that, though... (edit: once I finish the rest of my upgrades, that is)

Last edited 7 months ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:16 in reply to:  15 ; Changed 7 months ago by mascguy (Christopher Nielsen)

Replying to cooljeanius:

ok so the kdelibs4 build now seems to get past the build failure reported here, but now I'm running into a different one; I guess I'll open a separate bug for that, though...

So the error with grealpath no longer occurs, per comment:13?

comment:17 in reply to:  16 ; Changed 7 months ago by cooljeanius (Eric Gallager)

Replying to mascguy:

Replying to cooljeanius:

ok so the kdelibs4 build now seems to get past the build failure reported here, but now I'm running into a different one; I guess I'll open a separate bug for that, though...

So the error with grealpath no longer occurs, per comment:13?

Well I'm no longer seeing it at least; I'm not quite sure what exactly might have changed to make it go away... I guess it could have just been a fluke...

comment:18 Changed 7 months ago by cooljeanius (Eric Gallager)

OK, I opened #68452 for the new separate failure.

comment:19 in reply to:  17 Changed 7 months ago by mascguy (Christopher Nielsen)

Replying to cooljeanius:

Replying to mascguy:

So the error with grealpath no longer occurs, per comment:13?

Well I'm no longer seeing it at least; I'm not quite sure what exactly might have changed to make it go away... I guess it could have just been a fluke...

Well, a fix was made to the script for shared-mine-info, four-ish days ago. Perhaps that fix wasn't in play, during your initial retest?

comment:20 Changed 7 months ago by mpbb77 (Miguel Branco)

I've tried to recompile kdelibs two-ish days ago :-), bur the error was still there so somehow the fix wasn't at the endo the pipe by then. Anyway as for cooljeanius after bypassing it I stumbled on some seemingly serious pervasive issues with nepomuk/soprano as I tried to build the current tree of macports.

comment:21 in reply to:  20 Changed 7 months ago by cooljeanius (Eric Gallager)

Replying to mpbb77:

I've tried to recompile kdelibs two-ish days ago :-), bur the error was still there so somehow the fix wasn't at the endo the pipe by then. Anyway as for cooljeanius after bypassing it I stumbled on some seemingly serious pervasive issues with nepomuk/soprano as I tried to build the current tree of macports.

So yeah, it sounds like you're running into #68452 too, then...

comment:22 in reply to:  15 Changed 7 months ago by barracuda156

Replying to cooljeanius:

ok so the kdelibs4 build now seems to get past the build failure reported here, but now I'm running into a different one; I guess I'll open a separate bug for that, though... (edit: once I finish the rest of my upgrades, that is)

I ran into this #68461

Note: See TracTickets for help on using tickets.