Opened 4 months ago

Closed 8 weeks ago

#70158 closed defect (fixed)

kdesvn fails to configure: ADD_CUSTOM_TARGET cannot create target "uninstall"

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: kdesvn

Description

--->  Configuring kdesvn
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdesvn/kdesvn/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 -DSUBVERSION_INSTALL_PATH=/opt/local -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="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.6.0 
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-4.2 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-4.2 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - not found
-- Found Qt-Version 4.8.7 (using /opt/local/libexec/qt4/bin/qmake)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenSSL: /opt/local/libexec/openssl3/lib/libcrypto.dylib (found version "3.1.5")
-- Found Automoc4: /opt/local/bin/automoc4
-- Found Perl: /opt/local/bin/perl (found version "5.34.3")
-- Found Phonon: /opt/local/include (Required is at least version "4.3.80")
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.12 include dir: /opt/local/include/KDE4
-- Found KDE 4.12 library dir: /opt/local/lib
-- Found the KDE4 kconfig_compiler preprocessor: /opt/local/bin/kconfig_compiler
-- Found automoc4: /opt/local/bin/automoc4
-- Found apr include: /opt/local/include/apr-1
-- Found apu include: /opt/local/include/apr-1
-- Found apr cppflags:   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10
-- Found apr libs:  -L/opt/local/lib -lapr-1 -lpthread
-- Found apu libs: -L/opt/local/lib -L/opt/local/lib/db48 -L/opt/local/lib -laprutil-1 -lldap -llber -ldb-4.8   -lexpat -liconv
-- Looking for include file execinfo.h
-- Looking for include file execinfo.h - found
-- Looking for include file svn_version.h
-- Looking for include file svn_version.h - not found
-- Found subversion include: /opt/local/include/subversion-1
-- Found subversion client lib: /opt/local/lib/libsvn_client-1.dylib
-- Found subversion diff lib: /opt/local/lib/libsvn_diff-1.dylib
-- Found subversion fs lib: /opt/local/lib/libsvn_fs-1.dylib
-- Found subversion ra lib: /opt/local/lib/libsvn_ra-1.dylib
-- Found subversion repository lib: /opt/local/lib/libsvn_repos-1.dylib
-- Found subversion subr lib: /opt/local/lib/libsvn_subr-1.dylib
-- Found subversion wc lib: /opt/local/lib/libsvn_wc-1.dylib
-- Checking to see if CXX compiler accepts flag -fexceptions
-- Checking to see if CXX compiler accepts flag -fexceptions - yes
-- Checking for setenv - yes
-- Looking for dgettext
-- Looking for dgettext - not found
-- Looking for dgettext in /opt/local/lib/libintl.dylib
-- Looking for dgettext in /opt/local/lib/libintl.dylib - found
-- Found Gettext: in /opt/local/lib/libintl.dylib
-- Qt: Qt4::QtCore
-- Setting up language target
-- Unable to find the iconutil utility - application will not have an application icon!
CMake Error at CMakeLists.txt:173 (ADD_CUSTOM_TARGET):
  ADD_CUSTOM_TARGET cannot create target "uninstall" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory
  "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.6.0".
  See documentation for policy CMP0002 for more details.


-- Configuring incomplete, errors occurred!
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdesvn/kdesvn/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 -DSUBVERSION_INSTALL_PATH=/opt/local -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="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.6.0 
Exit code: 1

Attachments (1)

main.log (27.4 KB) - added by barracuda156 4 months ago.

Download all attachments as: .zip

Change History (7)

Changed 4 months ago by barracuda156

Attachment: main.log added

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

I wouldn't expect any kde port in MacPorts to work since they're so old.

The current version of kdesvn from 2019 is 2.1.

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

Replying to ryandesign:

I wouldn't expect any kde port in MacPorts to work since they're so old.

The current version of kdesvn from 2019 is 2.1.

Most of the KDE4 is outdated in MacPorts, and I have updated a number of port locally. However I struggle to make Akonadi work, and it seems that our Qt4 might have broken KDE4 ports. See discussion here: #70026

Until that core issue is addressed, KDE4 is largely unusable, even if it builds (though a few ports do appear functional), but I am fine with incremental fixes, given insane size of the software in question. No one gonna update and fix all KDE at once.

(Also until raptor2 is fixed, everything KDE will fail on CI.)

comment:3 Changed 2 months ago by barracuda156

Then if I remove that target from CMakeLists, there is another error:

-- Configuring done (4.3s)
CMake Error at src/svnqt/CMakeLists.txt:185 (ADD_LIBRARY):
  Target "svnqt" links to item " -L/opt/local/lib -lapr-1 -lpthread" which
  has leading or trailing whitespace.  This is now an error according to
  policy CMP0004.


CMake Error at src/svnqt/CMakeLists.txt:185 (ADD_LIBRARY):
  Target "svnqt" links to item " -L/opt/local/lib -lapr-1 -lpthread" which
  has leading or trailing whitespace.  This is now an error according to
  policy CMP0004.


CMake Error at src/svnqt/CMakeLists.txt:185 (ADD_LIBRARY):
  Target "svnqt" links to item " -L/opt/local/lib -lapr-1 -lpthread" which
  has leading or trailing whitespace.  This is now an error according to
  policy CMP0004.


CMake Error at src/svnqt/CMakeLists.txt:185 (ADD_LIBRARY):
  Target "svnqt" links to item " -L/opt/local/lib -lapr-1 -lpthread" which
  has leading or trailing whitespace.  This is now an error according to
  policy CMP0004.


CMake Error at src/svnqt/CMakeLists.txt:185 (ADD_LIBRARY):
  Target "svnqt" links to item " -L/opt/local/lib -lapr-1 -lpthread" which
  has leading or trailing whitespace.  This is now an error according to
  policy CMP0004.


CMake Error at src/svnqt/CMakeLists.txt:185 (ADD_LIBRARY):
  Target "svnqt" links to item " -L/opt/local/lib -lapr-1 -lpthread" which
  has leading or trailing whitespace.  This is now an error according to
  policy CMP0004.


CMake Error at src/svnqt/CMakeLists.txt:185 (ADD_LIBRARY):
  Target "svnqt" links to item " -L/opt/local/lib -lapr-1 -lpthread" which
  has leading or trailing whitespace.  This is now an error according to
  policy CMP0004.


-- Generating done (0.7s)

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

Replying to ryandesign:

I wouldn't expect any kde port in MacPorts to work since they're so old.

The current version of kdesvn from 2019 is 2.1.

Just as an update on this, since I have the most of KDE4 built by now: many ports appear defunct (unless I fail to set them up correctly), but a number of KDE4 work perfectly fine, and I think some of those are pretty useful.

comment:5 Changed 2 months ago by barracuda156

comment:6 Changed 8 weeks ago by barracuda156

Owner: set to Sergey Fedorov <barracuda@…>
Resolution: fixed
Status: newclosed

In 9dd85bd9d1a9d84ddc23bead3c7ec6718d5fb643/macports-ports (master):

kdesvn: fix the build

Fixes: #70158

Note: See TracTickets for help on using tickets.