Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 438714

Summary: net-libs/libproxy-0.4.10[kde] has missing dev-util/automoc DEPEND
Product: Gentoo Linux Reporter: Nikoli <nikoli>
Component: Current packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: creffett, kde
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nikoli 2012-10-17 15:07:16 UTC
After update from libproxy-0.4.7 to libproxy-0.4.10 there is no '/usr/lib64/libproxy/0.4.7/modules/config_kde4.so'

-- Did not find automoc4 (Automoc4Config.cmake, install git://anongit.kde.org/automoc).  (missing:  AUTOMOC4_EXECUTABLE) 
-- Found Perl: /usr/bin/perl (found version "5.12.4") 
-- KDE4 not found, because Automoc4 not found.
CMake Warning (dev) at /usr/share/cmake/Modules/CMakeExpandImportedTargets.cmake:33 (include):
  File /usr/share/cmake/Modules/CMakeExpandImportedTargets.cmake includes
  /usr/share/apps/cmake/modules/CMakeParseArguments.cmake (found via
  CMAKE_MODULE_PATH) which shadows
  /usr/share/cmake/Modules/CMakeParseArguments.cmake.  This may cause errors
  later on .
Comment 1 Agostino Sarubbo gentoo-dev 2012-10-17 15:45:12 UTC
works here without automoc

vbp ~ # eix -e automoc
* dev-util/automoc
     Available versions:  0.9.88
     Homepage:            http://www.kde.org
     Description:         KDE Meta Object Compiler

vbp ~ # eix -e libproxy
[I] net-libs/libproxy
     Available versions:  0.4.6-r3 0.4.7 0.4.10 {{gnome kde mono networkmanager +pac perl python spidermonkey test +webkit}}
     Installed versions:  0.4.10(17:44:08 10/17/12)(kde -gnome -mono -networkmanager -pac -perl -python -spidermonkey -test -webkit)
     Homepage:            http://code.google.com/p/libproxy/
     Description:         Library for automatic proxy configuration management
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-10-17 19:12:52 UTC
@kde, libproxy-0.4.10 uses the following config_kde4.cmk:

if (NOT WIN32 AND NOT APPLE)
  option(WITH_KDE4 "Search for KDE4 package" ON)
  if (WITH_KDE4)
    find_package(KDE4)
    find_package(Qt4)
    if(KDE4_FOUND AND QT4_FOUND)
      include(KDE4Defaults)
      set(KDE4_FOUND 1)
      set(KDE4_LIBRARIES ${KDE4_KDECORE_LIBS} ${QT_LIBRARIES})
      include_directories(${KDE4_INCLUDES} ${QT_INCLUDES})
      link_directories(${KDE_LIB_DIR})
      string(REGEX REPLACE " *-fno-exceptions" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
    else()
      set(KDE4_FOUND 0)
    endif()
  else()
    set(KDE4_FOUND 0)
  endif()
endif()

Why would that setup attempt to pull in automoc? Is there anything that libproxy-0.4.10[kde] should be depending on beyond just >=kde-base/kdelibs-4.4.5?
Comment 3 Nikoli 2012-10-18 07:00:10 UTC
ago, by "works" do you mean installs "/usr/lib64/libproxy/0.4.10/modules/config_kde4.so" and does not print same error in scr_configure?
Comment 4 Agostino Sarubbo gentoo-dev 2012-10-18 11:37:00 UTC
The ebuild says:

kde? ( >=kde-base/kdelibs-4.4.5 ) for DEPEND and RDEPEND.

So, you if have kdelibs, you must have automoc. 
This is invalid.
Comment 5 Nikoli 2012-10-18 11:42:16 UTC
You are wrong. automoc is only DEPEND, not RDEPEND for kdelibs or any other kde package. It should never be in RDEPEND. After 'emerge --depclean --with-bdeps=n -qa' there is no automoc in system.
Comment 6 Chris Reffett (RETIRED) gentoo-dev Security 2012-10-21 02:55:33 UTC
cmake-utils.eclass does not add automoc to DEPEND like kde4-base does, and since we can't rely on DEPEND of the inherits to be present, I've added automoc to DEPEND in 0.4.10-r1.