Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361861 - kde-base/pykde4-4.6.1 +kdeprefix causes kde-base/system-config-printer-kde-4.6.1 emerge failure
Summary: kde-base/pykde4-4.6.1 +kdeprefix causes kde-base/system-config-printer-kde-4....
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kdeprefix
  Show dependency tree
 
Reported: 2011-04-04 03:13 UTC by Dmitry Karasik
Modified: 2011-05-26 22:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,8.57 KB, text/plain)
2011-04-04 03:13 UTC, Dmitry Karasik
Details
emerge --info (emerge.info,7.33 KB, text/plain)
2011-04-04 03:13 UTC, Dmitry Karasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Karasik 2011-04-04 03:13:09 UTC
Created attachment 268447 [details]
build.log

With +kdeprefix, pykde4 installs python files into /usr/kde/4.6/lib/python2.7/site-packages/ and does not create a .pth file in /usr/lib/python2.7/site-packages/ to point to it. This causes python to not know about this site and the following error occurs emerging kde-base/system-config-printer-kde-4.6.1:

-- Found PyQt4 version: 4.8.3
Traceback (most recent call last):
  File "/usr/kde/4.6/share/apps/cmake/modules/FindPyKDE4.py", line 8, in <module>
    import PyKDE4.pykdeconfig
ImportError: No module named PyKDE4.pykdeconfig
-- Found PyCups
-- Found System Config Printer

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * PyKDE4  <http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/>
     PyKDE4 was not found.  It is needed by system-config-printer-kde to run.  (Use -DINSTALL_SYSTEM_CONFIG_PRINTER=TRUE to install anyway)

-----------------------------------------------------------------------------

-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr/kde/4.6
Compiler flags:
C               -O2 -march=native -pipe -fomit-frame-pointer  -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common
C++             -O2 -march=native -pipe -fomit-frame-pointer  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Werror=return-type -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden
Linker flags:
Executable      -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,-O1,--hash-style=gnu,--sort-common,--as-needed -L/usr/kde/4.6/lib
Module          -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-O1 -Wl,--as-needed -Wl,-O1,--hash-style=gnu,--sort-common,--as-needed -L/usr/kde/4.6/lib
Shared          -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-O1 -Wl,--as-needed -Wl,-O1,--hash-style=gnu,--sort-common,--as-needed -L/usr/kde/4.6/lib

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/kde-base/system-config-printer-kde-4.6.1/work/system-config-printer-kde-4.6.1_build
>>> Source configured.
>>> Compiling source in /var/tmp/portage/kde-base/system-config-printer-kde-4.6.1/work/system-config-printer-kde-4.6.1 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/system-config-printer-kde-4.6.1/work/system-config-printer-kde-4.6.1_build"
make -j5
>>> Source compiled.
>>> Test phase [not enabled]: kde-base/system-config-printer-kde-4.6.1

>>> Install system-config-printer-kde-4.6.1 into /var/tmp/portage/kde-base/system-config-printer-kde-4.6.1/image/ category kde-base
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/system-config-printer-kde-4.6.1/work/system-config-printer-kde-4.6.1_build"
make -j5 DESTDIR=/var/tmp/portage/kde-base/system-config-printer-kde-4.6.1/image/ install
make: *** No rule to make target `install'.  Stop.
emake failed
 * ERROR: kde-base/system-config-printer-kde-4.6.1 failed (install phase):
 *   died running make install, base_src_install
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_install
 *   environment, line 6463:  Called kde4-meta_src_install
 *   environment, line 3918:  Called kde4-base_src_install
 *   environment, line 3465:  Called cmake-utils_src_install
 *   environment, line 1743:  Called _execute_optionaly 'src_install'
 *   environment, line  689:  Called enable_cmake-utils_src_install
 *   environment, line 2067:  Called base_src_install
 *   environment, line 1383:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" "$@" install || die "died running make install, $FUNCNAME";
 *
 * If you need support, post the output of 'emerge --info =kde-base/system-config-printer-kde-4.6.1',
 * the complete build log and the output of 'emerge -pqv =kde-base/system-config-printer-kde-4.6.1'.
 * The complete build log is located at '/var/tmp/portage/kde-base/system-config-printer-kde-4.6.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/system-config-printer-kde-4.6.1/temp/environment'.
 * S: '/var/tmp/portage/kde-base/system-config-printer-kde-4.6.1/work/system-config-printer-kde-4.6.1'

>>> Failed to emerge kde-base/system-config-printer-kde-4.6.1, Log file:
Comment 1 Dmitry Karasik 2011-04-04 03:13:54 UTC
Created attachment 268449 [details]
emerge --info
Comment 2 Markus Peloquin 2011-05-08 02:02:41 UTC
I'm seeing this error for (maybe) a different reason, as I have USE=-kdeprefix set.  The configure output leading up to the error is relevant in my case:

-- Found PythonInterp: /usr/bin/python 
-- Found Python executable: /usr/bin/python
-- Found Python version: 2.7.1
-- Found Python library: /usr/lib64/libpython2.7.so
-- Found SIP version: 4.12.1
-- Found PyQt4 version: 4.8.3
Traceback (most recent call last):
  File "/usr/share/apps/cmake/modules/FindPyKDE4.py", line 8, in <module>
    import PyKDE4.pykdeconfig
ImportError: No module named PyKDE4.pykdeconfig
-- Found PyCups
-- Found System Config Printer

My system python version is 3.1, and 2.7 doesn't have a pykdeconfig module:

$ locate pykdeconfig.py | grep '\.py$'
/usr/lib64/python3.1/site-packages/PyKDE4/pykdeconfig.py
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2011-05-26 22:26:22 UTC
kdeprefix is going away. Now really.