Two bugs, which might be related to python or missing deps

51 views
Skip to first unread message

Michal Pytasz

unread,
Sep 12, 2011, 9:53:01 AM9/12/11
to Funtoo
Hi, I am quite new to funtoo (however not no gentoo), yet I have
problems emerging 2 packages, in both cases there it seems to me like
python bindings problem:
app-mobilephone/wammu-0.35
and
kde-base/system-config-printer-kde-4.7.1

build logs and emerge --info are below.
It has to be stated, that I had previously kde 4.6, built when python
2.6 was present in my system. I did run python-updater afterwards. For
the package I suspected to be root cause for system-config-printer-kde
(pykde4), i did rebuild pykde4 and pyqt4, however it did not solve the
problem.

What am I missing ?

Michal


# cat /var/tmp/portage/app-mobilephone/wammu-0.35/temp/build.log
* Package: app-mobilephone/wammu-0.35
* Repository: gentoo
* Maintainer: mobile...@gentoo.org
* USE: amd64 elibc_glibc kernel_linux linguas_pl multilib
userland_GNU
* FEATURES: preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking wammu-0.35.tar.bz2 to /var/tmp/portage/app-mobilephone/wammu-0.35/work
>>> Source unpacked in /var/tmp/portage/app-mobilephone/wammu-0.35/work
>>> Preparing source in /var/tmp/portage/app-mobilephone/wammu-0.35/work/wammu-0.35 ...
* QA Notice: The 'hasq' function is deprecated (replaced by 'has')
* Converting shebang in 'wammu-configure.py'
* Converting shebang in 'wammu.py'
* Converting shebang in 'setup.py'
* Converting shebang in 'wammu_setup/msgfmt.py'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-mobilephone/wammu-0.35/work/wammu-0.35 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-mobilephone/wammu-0.35/work/wammu-0.35 ...
python2.7 setup.py build
running build
creating build
creating build/share
creating build/share/locale
creating build/share/locale/ar
creating build/share/locale/ar/LC_MESSAGES
compiling locale/ar/wammu.po -> build/share/locale/ar/LC_MESSAGES/
wammu.mo
creating build/share/locale/en_GB
creating build/share/locale/en_GB/LC_MESSAGES
compiling locale/en_GB/wammu.po -> build/share/locale/en_GB/
LC_MESSAGES/wammu.mo
creating build/share/locale/tr
creating build/share/locale/tr/LC_MESSAGES
compiling locale/tr/wammu.po -> build/share/locale/tr/LC_MESSAGES/
wammu.mo
creating build/share/locale/pl
creating build/share/locale/pl/LC_MESSAGES
compiling locale/pl/wammu.po -> build/share/locale/pl/LC_MESSAGES/
wammu.mo
creating build/share/locale/sw
creating build/share/locale/sw/LC_MESSAGES
compiling locale/sw/wammu.po -> build/share/locale/sw/LC_MESSAGES/
wammu.mo
Checking for python-gammu ... found version 1.30.0 using Gammu
1.30.0 ... OK
Checking for wxPython ... found version 2.8.12.0 ... OK
Checking for Bluetooth stack ...
Traceback (most recent call last):
File "setup.py", line 424, in <module>
**addparams
File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.7/distutils/dist.py", line 953, in
run_commands
self.run_command(cmd)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in
run_command
cmd_obj.run()
File "setup.py", line 264, in run
self.check_requirements()
File "setup.py", line 236, in check_requirements
import bluetooth
File "/usr/lib64/python2.7/site-packages/bluetooth/__init__.py",
line 49, in <module>
"""
NameError: name 'discover_devices' is not defined
* ERROR: app-mobilephone/wammu-0.35 failed (compile phase):
* Building failed
*
* Call stack:
* ebuild.sh, line 69: Called src_compile
* environment, line 3739: Called distutils_src_compile
* environment, line 1000: Called die
* The specific snippet of code:
* "$(PYTHON)" "${setup_file#*|}" "$
{_DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
*
* If you need support, post the output of 'emerge --info =app-
mobilephone/wammu-0.35',
* the complete build log and the output of 'emerge -pqv =app-
mobilephone/wammu-0.35'.
* The complete build log is located at '/var/tmp/portage/app-
mobilephone/wammu-0.35/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-
mobilephone/wammu-0.35/temp/environment'.
* S: '/var/tmp/portage/app-mobilephone/wammu-0.35/work/wammu-0.35'


cat /var/tmp/portage/kde-base/system-config-printer-kde-4.7.1/temp/
build.log
* Package: kde-base/system-config-printer-kde-4.7.1
* Repository: gentoo
* Maintainer: k...@gentoo.org
* USE: amd64 elibc_glibc kernel_linux multilib userland_GNU
* FEATURES: preserve-libs sandbox
>>> Unpacking source...
* Unpacking parts of kdeadmin-4.7.1.tar.bz2 to /var/tmp/portage/kde-
base/system-config-printer-kde-4.7.1/work ...
tar extract command failed at least partially - continuing
anyway
[ ok ]
>>> Source unpacked in /var/tmp/portage/kde-base/system-config-printer-kde-4.7.1/work
>>> Preparing source in /var/tmp/portage/kde-base/system-config-printer-kde-4.7.1/work/system-config-printer-kde-4.7.1 ...
* QA Notice: The 'hasq' function is deprecated (replaced by 'has')
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/kde-base/system-config-printer-kde-4.7.1/work/system-config-printer-kde-4.7.1 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/system-config-printer-kde-4.7.1/work/system-config-printer-kde-4.7.1_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/kde-base/system-config-
printer-kde-4.7.1/temp/gentoo_common_config.cmake -
DCMAKE_INSTALL_PREFIX=/usr -DKDE4_BUILD_TESTS=OFF -
DCMAKE_INSTALL_PREFIX=/usr -DSYSCONF_INSTALL_DIR=/etc -
DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -
DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/kde-base/system-
config-printer-kde-4.7.1/temp/gentoo_rules.cmake /var/tmp/portage/kde-
base/system-config-printer-kde-4.7.1/work/system-config-printer-
kde-4.7.1
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/kde-base/system-config-
printer-kde-4.7.1/temp/gentoo_common_config.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc --
works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ --
works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - 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 - not found.
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/
libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/
libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/
libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/
libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Found Phonon: /usr/include
-- 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.7 include dir: /usr/include
-- Found KDE 4.7 library dir: /usr/lib64
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/
kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- 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.4
-- Found PyQt4 version: 4.8.5
Traceback (most recent call last):
File "/usr/share/apps/cmake/modules/FindPyKDE4.py", line 8, in
<module>
import PyKDE4.pykdeconfig
File "/usr/lib64/python2.7/site-packages/PyKDE4/__init__.py", line
1, in <module>
import sys,DLFCN
ImportError: No module named DLFCN
-- 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
Compiler flags:
C -march=core2 -O2 -pipe -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++ -march=core2 -O2 -pipe -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 -Woverloaded-virtual -fno-threadsafe-statics -
fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden
Linker flags:
Executable -Wl,--enable-new-dtags -Wl,-O1 -Wl,--sort-common -
Wl,--as-needed
Module -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-
undefined -lc -Wl,-O1 -Wl,--sort-common -Wl,--as-needed
Shared -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-
undefined -lc -Wl,-O1 -Wl,--sort-common -Wl,--as-needed

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

>>> Install system-config-printer-kde-4.7.1 into /var/tmp/portage/kde-base/system-config-printer-kde-4.7.1/image/ category kde-base
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/system-config-printer-kde-4.7.1/work/system-config-printer-kde-4.7.1_build"
make -j2 DESTDIR=/var/tmp/portage/kde-base/system-config-printer-
kde-4.7.1/image/ install
make: *** Brak reguł do wykonania obiektu `install'. Stop.
emake failed
* ERROR: kde-base/system-config-printer-kde-4.7.1 failed (install
phase):
* died running make install, base_src_install
*
* Call stack:
* ebuild.sh, line 69: Called src_install
* environment, line 7070: Called kde4-meta_src_install
* environment, line 4267: Called kde4-base_src_install
* environment, line 3893: Called cmake-utils_src_install
* environment, line 1971: Called _execute_optionaly 'src_install'
* environment, line 875: Called enable_cmake-utils_src_install
* environment, line 2298: Called base_src_install
* environment, line 1623: 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.7.1',
* the complete build log and the output of 'emerge -pqv =kde-base/
system-config-printer-kde-4.7.1'.
* The complete build log is located at '/var/tmp/portage/kde-base/
system-config-printer-kde-4.7.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/kde-
base/system-config-printer-kde-4.7.1/temp/environment'.
* S: '/var/tmp/portage/kde-base/system-config-printer-kde-4.7.1/work/
system-config-printer-kde-4.7.1'



# emerge --info
Portage 2.3-r7 (default/linux/amd64, gcc-4.4.5, glibc-2.11.3-r0, 3.0.4-
gentoo-x64 x86_64)
=================================================================
System uname: Linux-3.0.4-gentoo-x64-x86_64-Pentium-R-_Dual-
Core_CPU_T4200_@_2.00GHz-with-gentoo-2.1.8
Timestamp of tree: Mon, 12 Sep 2011 05:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash: 4.2_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.1-r1
dev-util/cmake: 2.8.5-r2
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1.8-r2
sys-apps/openrc: 0.8.3-r2
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.10.3, 1.11.1-r1
sys-devel/binutils: 2.20.1
sys-devel/gcc: 4.4.5
sys-devel/gcc-config: 1.5
sys-devel/libtool: 2.4-r3
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc: 2.11.3
Repositories: gentoo
Installed sets:
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula dlj-1.1 cadsoft PUEL
AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /
usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/
hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/
java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-
rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles
fixpackages mini-manifest news parallel-fetch preserve-libs protect-
owned sandbox sfperms strict unknown-features-warn unmerge-logs
unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/portage-mini-2011.git"
SYNC_USER="root"
USE="3dnow 3dnowext X a52 aac accessibility acpi akonadi alac alsa
amd64 aspell avi berkdb bluetooth bzip2 cairo cdr cli consolekit
cracklib crypt cups cxx dbus declarative device-mapper dhcpcd disk-
partition dri dv dvd dvdr dvdread eap-sim encode exif extras fat
ffmpeg flac foomaticdb fortran fuse gadu gif gmp gnutls gtk2 iconv icu
imagemagick ipv6 irc jack java java6 javacomm jpeg jpeg2k kde kde4
kdehiddenvisibility lame laptop lcms libv4l libv4l2 lm_sensors
logitech-mouse logrotate mad madwifi melt mikmod mmx mmxext mng
modules mp3 mpeg mudflap multilib mysql ncurses nforce2 nls nsplugin
ntfs ogg openexr opengl openmp oss pam pcre pdf perl plasma pmu png
policykit postgres ppds pppd python qt qt3support qt4 rdesktop rdp
readline samba sdl secure-delete semantic-desktop session smp sms
sndfile sql sse sse2 sse3 ssl ssse3 subtitles svg tcl tcpd theora
threads tiff timidity tk trascode truetype udev unicode usb v4l2 vcd
vdpau vlc vorbis wavpack webkit wicd wifi wmf xcb xcomposite xfs
xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty
extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
file_cache filter headers include info log_config logio mem_cache mime
mime_magic negotiation rewrite setenvif speling status unique_id
userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan
stage tables krita karbon braindump" CAMERAS="canon lg_gsm ptp2"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
ELIBC="glibc" FOO2ZJS_DEVICES="sa315" GPSD_PROTOCOLS="ashtech aivdm
earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea
ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf
superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev
synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk
hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl"
PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU"
VIDEO_CARDS="intel i965 nouveau" XTABLES_ADDONS="quota2 psd pknock
lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
SYNC_UMASK

Oleg

unread,
Sep 14, 2011, 1:00:02 AM9/14/11
to Funtoo
"Converting shebang" looks like packages built against older python,
there is a bug about system-config-printer-kde (#382585).You can try
to rebuild python-2.7, pykde or related packages, run python-updater
again

On 12 сен, 17:53, Michal Pytasz <mpyt...@gmail.com> wrote:
> Hi, I am quite new to funtoo (however not no gentoo), yet I have
> problems emerging 2 packages, in both cases there it seems to me like
> python bindings problem:
> app-mobilephone/wammu-0.35
> and
> kde-base/system-config-printer-kde-4.7.1
>
> build logs and emerge --info are below.
> It has to be stated, that I had previously kde 4.6, built when python
> 2.6 was present in my system. I did run python-updater afterwards. For
> the package I suspected to be root cause for system-config-printer-kde
> (pykde4), i did rebuild pykde4 and pyqt4, however it did not solve the
> problem.
>
> What am I missing ?
>
> Michal
>
> # cat /var/tmp/portage/app-mobilephone/wammu-0.35/temp/build.log
>  * Package:    app-mobilephone/wammu-0.35
>  * Repository: gentoo
>  * Maintainer: mobile-ph...@gentoo.org

Oleg

unread,
Sep 14, 2011, 1:06:37 AM9/14/11
to Funtoo
DLFCN module not found is related to python bug with linux-3.0, you
can try masked version python-2.7.1-r2 with 3.0 fix

On 12 сен, 17:53, Michal Pytasz <mpyt...@gmail.com> wrote:
> Hi, I am quite new to funtoo (however not no gentoo), yet I have
> problems emerging 2 packages, in both cases there it seems to me like
> python bindings problem:
> app-mobilephone/wammu-0.35
> and
> kde-base/system-config-printer-kde-4.7.1
>
> build logs and emerge --info are below.
> It has to be stated, that I had previously kde 4.6, built when python
> 2.6 was present in my system. I did run python-updater afterwards. For
> the package I suspected to be root cause for system-config-printer-kde
> (pykde4), i did rebuild pykde4 and pyqt4, however it did not solve the
> problem.
>
> What am I missing ?
>
> Michal
>
> # cat /var/tmp/portage/app-mobilephone/wammu-0.35/temp/build.log
>  * Package:    app-mobilephone/wammu-0.35
>  * Repository: gentoo
>  * Maintainer: mobile-ph...@gentoo.org
Reply all
Reply to author
Forward
0 new messages