Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407073 - [kde-overlay] kde-base/system-config-printer-kde-9999 fails to build
Summary: [kde-overlay] kde-base/system-config-printer-kde-9999 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on: 329987
Blocks:
  Show dependency tree
 
Reported: 2012-03-06 09:09 UTC by Patrick Lauer
Modified: 2012-09-06 13:11 UTC (History)
4 users (show)

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


Attachments
Build log (build.log,7.80 KB, text/plain)
2012-03-11 21:13 UTC, Mike Civil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2012-03-06 09:09:43 UTC
-- Found PyQt4 version: snapshot-4.9.2-2b3d99e784b3
-- Found PyKDE4 version 4.8.1 /usr/share/sip/PyKDE4
-- Found PyCups

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * system-config-printer  <http://cyberelk.net/tim/software/system-config-printer/>
     system-config-printer was not found.  Some of its modules (cupshelpers modules, config.py, smburi.py, debug.py and ppdippstr.py) are required by system-config-printer-kde.

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

-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=amdfam10 -O2 -pipe -ggdb  -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=amdfam10 -O2 -pipe -ggdb  -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,--as-needed
Module          -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -Wl,-O1 -Wl,--as-needed
Shared          -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -Wl,-O1 -Wl,--as-needed

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

>>> Install system-config-printer-kde-9999 into /mnt/sdb1/build/portage/kde-base/system-config-printer-kde-9999/image/ category kde-base
>>> Working in BUILD_DIR: "/mnt/sdb1/build/portage/kde-base/system-config-printer-kde-9999/work/system-config-printer-kde-9999_build"
make -j6 DESTDIR=/mnt/sdb1/build/portage/kde-base/system-config-printer-kde-9999/image/ install 
make: *** No rule to make target `install'.  Stop.


Portage 2.2.0_alpha90 (!../usr/portage/profiles/default/linux/amd64/10.0/desktop/kde, gcc-4.6.2, glibc-2.14.1-r2, 3.2.7-vs2.3.2.7 x86_64)
=================================================================
System uname: Linux-3.2.7-vs2.3.2.7-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.1
Timestamp of tree: Unknown
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo kde x11 qt Testing
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /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"
CXXFLAGS="-march=amdfam10 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--load-average=5 --quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://gentoo.osuosl.org/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB de de_DE zh_CN"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/sdb1/build"
PORTDIR="/home/pl/code/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/x11 /var/lib/layman/qt /home/pl/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli compat consolekit crypt cups curl cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif expat fam ffmpeg firefox flac foomaticdb fortran ftp gd gdbm gdu gif gnutls gpm gtk iconv icq idn imagemagick imap imlib innodb ipod ipv6 jabber java javascript jingle jpeg jpeg2k kde kdehiddenvisibility kipi lame lcms ldap libnotify lzo mad matroska md5sum midi mmap mmx mng modules mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oscar pam pango pcre pdf perl php plasma png policykit ppds python qt3support qt4 quicktime raw rdesktop readline rss samba sdl semantic-desktop session speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs syslog taglib tcpd threads tidy tiff truetype udev unicode usb vlc vorbis wifi wmf wxwindows x264 xattr xcb xcomposite xine xinerama xml xmlrpc xorg xpm xscreensaver xulrunner xv xvid 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" 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" KERNEL="linux" LINGUAS="en en_GB de de_DE zh_CN" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Maciej Mrozowski gentoo-dev 2012-03-06 22:13:26 UTC
I saw it as well, albeit with 4.8.1 (after I added newest system-config-printer).
Comment 2 Maciej Mrozowski gentoo-dev 2012-03-07 01:30:42 UTC
Should be fixed with system-config-printer-common-1.3.9-r1. Please close the bug when it works for you.
Comment 3 Jens Rutschmann 2012-03-10 17:37:10 UTC
(In reply to comment #2)
> Should be fixed with system-config-printer-common-1.3.9-r1. Please close the
> bug when it works for you.

I am also experiencing this with kde-base/system-config-printer-kde-4.8.1

(Re-)installing system-config-printer-common-1.3.9-r1 didn't help.
Comment 4 Mike Civil 2012-03-11 21:13:59 UTC
Created attachment 304955 [details]
Build log
Comment 5 Mike Civil 2012-03-11 21:16:14 UTC
(In reply to comment #3) 
> I am also experiencing this with kde-base/system-config-printer-kde-4.8.1
> 
> (Re-)installing system-config-printer-common-1.3.9-r1 didn't help.

Same here. Build log attached above.
lucy ~ # emerge -pqv =kde-base/system-config-printer-kde-4.8.1
[ebuild     U ] kde-base/system-config-printer-kde-4.8.1 [4.8.0] USE="(-aqua)"

lucy ~ # emerge --info =kde-base/system-config-printer-kde-4.8.1
Portage 2.2.0_alpha90 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.9 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.2.9-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Sun, 11 Mar 2012 18:15:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo sunrise kde local
Installed sets: @mykde, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -pipe -O2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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"
CXXFLAGS="-march=native -pipe -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--deep"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ http://mirror.netcologne.de/gentoo/ rsync://mirror.leaseweb.com/gentoo/"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/kde /usr/local/portage"
SYNC="rsync://rsync1.uk.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi agg alsa amd64 amr animgif apng aspell async atm audiofile avahi bash-completion berkdb binfilter bittorrent bluetooth branding bzip2 cairo caps ccache cdda cddax cddb cdio cdr ciao cli consolekit cracklib cups curl cxx daap dbm dbus declarative device-mapper diffheaders directfb djvu dkim dri dts dvb dvd dvdr emboss enca encode eu_epg exif extensions extras faac faad fam fbcon ffmpeg fftw firefox flac fluidsynth fontconfig fortran fpx ftp g3dvl gcj gd gdbm gdu ggi gif gimp glitz glut gmp gnutls gpm gs gsm gtk gudev gzip iconv id3 id3tag ilbc imagemagick imap imlib injection inkjar iproute2 iptables iptc ipv6 jpeg jpeg2k kde kipi kvm lame lcms lensfun libnotify libv4l libv4l2 lightning lilo live lm_sensors logitech-mouse logrotate lzma lzo mad matroska mbox mikmod milter minizip mmap mmx mng modules motif mozilla mp2 mp3 mp4 mpeg mplayer msn mtp mudflap multilib multiuser musepack musicbrainz nat nbd ncurses network network-cron nls nptl nptlonly nsplugin nspr ntfs nvidia obex ogg openal openexr opengl openmp openssl pam pango panorama pcre pdf pdfimport pg-intdatetime plasma plotutils pmount png pnm policykit posix postgres postscript ppds ppp pppd procmail pvr python3 qemu qemu-ifup qt3support qt4 rar rdesktop rdp readline rle rss rtc rtsp samba scanner sdl sdl-image semantic-desktop sendmail session sftp shout sift slp smbclient smp sms smtp sound spamassassin speex spell spf sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg svgz swat sysfs syslog tcl tcpd tesseract theora threads thumbnails thunar thunderbird tiff tk tools transcode truetype tta tv tv_check tv_combiner tv_pick_cgi tvtime twolame udev uk_bleb uk_rt unicode usb utils v4l v4l2 vaapi vdpau vim vim-syntax vim-with-x vlc vlm vnc vorbis vpx wav wavpack webkit webm webp wifi win32 wma wmf wps wxwidgets wxwindows x264 xanim xattr xcb xcf xcomposite xext xft xine xinetd xml xmp xorg xpm xrender xulrunner xv xvid xvmc zeroconf zip zlib zrtp zvbi" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="dibusb-usb2" ELIBC="glibc" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" LIRC_DEVICES="devinput" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Maciej Mrozowski gentoo-dev 2012-03-15 22:59:21 UTC
Those who still have issue building system-config-printer-kde (after updating to system-config-printer-common-1.3.9-r1), should try instructions from:
https://bugs.gentoo.org/show_bug.cgi?id=389177
as they may be beaten by different bug.
Comment 7 Mike Civil 2012-03-17 11:30:01 UTC
(In reply to comment #6)
> Those who still have issue building system-config-printer-kde (after
> updating to system-config-printer-common-1.3.9-r1), should try instructions
> from:
> https://bugs.gentoo.org/show_bug.cgi?id=389177
> as they may be beaten by different bug.

Thanks for that.

lucy ~ # emerge -uav @world --color n --deep --newuse

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] kde-base/system-config-printer-kde-4.8.1 [4.8.0] USE="(-aqua)" 0 kB
[ebuild     U  ] kde-base/kdeadmin-meta-4.8.1 [4.8.0] USE="cups (-aqua)" 0 kB

lucy ~ # eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2

lucy ~ # emerge -s system-config-printer-common
Searching...    
[ Results for search key : system-config-printer-common ]
[ Applications found : 1 ]

*  app-admin/system-config-printer-common
      Latest version available: 1.3.9-r1
      Latest version installed: 1.3.9-r1
      Size of files: 968 kB
      Homepage:      http://cyberelk.net/tim/software/system-config-printer/
      Description:   Common modules of Red Hat's printer administration tool
      License:       GPL-2

Have run twice over:-

emerge -1 system-config-printer-common
python-updater
emerge --depclean
revdep-rebuild

Still get same problem as before emerging system-config-printer-kde where configure complains about not finding system-config-printer and the build make completes without doing anything causing the install to fail.

Would a build log from system-config-printer-common be of any use?
Comment 8 Maciej Mrozowski gentoo-dev 2012-03-17 12:41:24 UTC
The way system-config-printer presence detection works is quite simple.
1. Unpack kdeadmin-4.8.1 tarball
2. Navigate to kdeadmin-4.8.1/system-config-printer-kde/cmake-modules/
3. Run 'python FindSystemConfigPrinter.py' in there.
   If there are any problem with invoking this script - this is the issue.
(similar way in printer-applet case)
Comment 9 Mike Civil 2012-03-17 14:03:33 UTC
So is our problem that kdeadmin-4.8.1  is dependant on system-config-printer-kde-4.8.1?

lucy ~ # emerge -s kdeadmin
Searching...    
[ Results for search key : kdeadmin ]
[ Applications found : 1 ]

*  kde-base/kdeadmin-meta
      Latest version available: 4.8.1
      Latest version installed: 4.8.0
      Size of files: 0 kB
      Homepage:      http://www.kde.org/
      Description:   KDE administration tools - merge this to pull in all kdeadmin-derived packages
      License:       GPL-2

lucy ~ # equery d system-config-printer-kde
 * These packages depend on system-config-printer-kde:
kde-base/kdeadmin-meta-4.8.0 (cups ? >=kde-base/system-config-printer-kde-4.8.0:4[aqua=])

lucy ~ # emerge -uav @world --color n --deep --newuse

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] kde-base/system-config-printer-kde-4.8.1 [4.8.0] USE="(-aqua)" 0 kB
[ebuild     U  ] kde-base/kdeadmin-meta-4.8.1 [4.8.0] USE="cups (-aqua)" 0 kB
Comment 10 Maciej Mrozowski gentoo-dev 2012-03-17 14:58:49 UTC
No, you're just confused :)
system-config-printer-kde is in kdeadmin tarball.

Do the following:
1. Unpack kdeadmin-4.8.1 tarball
2. Navigate to unpacked kdeadmin-4.8.1/system-config-printer-kde/cmake-modules/
3. Run 'python FindSystemConfigPrinter.py' in there.
   If there are any problem with invoking this script - this is the issue.
(similar way in printer-applet case)
Comment 11 Jens Rutschmann 2012-03-17 16:46:40 UTC
(In reply to comment #10)
> No, you're just confused :)
> system-config-printer-kde is in kdeadmin tarball.
> 
> Do the following:
> 1. Unpack kdeadmin-4.8.1 tarball
> 2. Navigate to unpacked
> kdeadmin-4.8.1/system-config-printer-kde/cmake-modules/
> 3. Run 'python FindSystemConfigPrinter.py' in there.
>    If there are any problem with invoking this script - this is the issue.
> (similar way in printer-applet case)

Hi,
I just tried running that script and it always returns 1 as it can't import either "cupshelpers.ppds" nor "cupshelpers.cupshelpers".

Then I recompiled cups with the use flag python just to be sure (was not set before).

I also recompiled app-admin/system-config-printer-common-1.3.9-r1 just to be sure it might pickup any cups use flags changes.

Finally i tried recompiling system-config-printer-kde again, resulting in the same error.

These files (among many others) were installed by system-config-printer-common:
/usr/lib/python2.7/site-packages/cupshelpers/cupshelpers.py
/usr/lib/python2.7/site-packages/cupshelpers/ppds.py

I have only python 2.7 installed on my system, no 2.6 and no 3.x.

Hope that info helps somewhat.
Comment 12 Maciej Mrozowski gentoo-dev 2012-03-18 16:31:00 UTC
Sorry, actually that's expected, I really wanted you to the following:

1. launch python interpreter
2. type 'import cupshelpers.ppds, cupshelpers.cupshelpers' and press enter
   (or just invoke python script that just imports those and doesn't catch
   exceptions like  FindSystemConfigPrinter.py)
Comment 13 Jens Rutschmann 2012-03-18 22:54:09 UTC
(In reply to comment #12)
> Sorry, actually that's expected, I really wanted you to the following:
> 
> 1. launch python interpreter
> 2. type 'import cupshelpers.ppds, cupshelpers.cupshelpers' and press enter
>    (or just invoke python script that just imports those and doesn't catch
>    exceptions like  FindSystemConfigPrinter.py)

Here you go:

jens:~> python
Python 2.7.2 (default, Oct 14 2011, 12:59:54)
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cupshelpers.ppds, cupshelpers.cupshelpers
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/cupshelpers/__init__.py", line 60, in <module>
    import openprinting
  File "/usr/lib/python2.7/site-packages/cupshelpers/openprinting.py", line 22, in <module>
    import pycurl, urllib, platform, threading, tempfile, traceback
ImportError: /usr/lib/python2.7/site-packages/pycurl.so: undefined symbol: gcry_control

Then I tried to directly import pycurl:

>>> import pycurl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python2.7/site-packages/pycurl.so: undefined symbol: gcry_control

After that I remerged pycurl, but it didn't change anything.

Please also see comment 6 here: https://bugs.gentoo.org/show_bug.cgi?id=329987#c6
This might be related but I don't have the cance to test it right now, maybe tomorrow.
Comment 14 Steve Kutnar 2012-03-29 23:09:24 UTC
The problem exists due to bug https://bugs.gentoo.org/show_bug.cgi?id=329987.  I can confirm that using the updated patch attached to that bug fixes the compilation issues after rebuilding pycurl, then system-config-printer, and finally system-config-printer-kde.
Comment 15 papapenguin 2012-04-11 08:05:35 UTC
unfortunately for me, I rebuilt pycurl, app-admin/system-config-printer-common-1.3.9-r1 and kde-base/system-config-printer-kde-4.8.2 still failed with the same error...
Comment 16 Steve Kutnar 2012-04-11 12:54:14 UTC
(In reply to comment #15)
> unfortunately for me, I rebuilt pycurl,
> app-admin/system-config-printer-common-1.3.9-r1 and
> kde-base/system-config-printer-kde-4.8.2 still failed with the same error...

Did you use the updated pycurl patch attached to the bug I referenced?
Comment 17 Cybertinus 2012-04-11 19:26:05 UTC
First I tried recompiling pycurl and app-admin/system-config-printer-common-1.3.9-r1 without applying the patch, and I still had the same error.
Then I did apply the updated patch and then recompiled pycurl and app-admin/system-config-printer-common-1.3.9-r1 and then kde-base/system-config-printer-kde compiled just fine. That updated patch seams to fix to problem.

Hope this helps anybody.
Comment 18 papapenguin 2012-04-12 02:13:38 UTC
(In reply to comment #15)
sorry, I did not add the patch...I haven't done this before, so please bear with me...

I see the original patch in usr/portage/dev-python/pycurl...

would I write over that patch with the patch you supplied? Is it that 'simple'?

thanks
Comment 19 Steve Kutnar 2012-04-12 12:46:01 UTC
(In reply to comment #18)
> (In reply to comment #15)
> sorry, I did not add the patch...I haven't done this before, so please bear
> with me...
> 
> I see the original patch in usr/portage/dev-python/pycurl...
> 
> would I write over that patch with the patch you supplied? Is it that
> 'simple'?
> 
> thanks

If you were actually referring to comment #14 or #16... you need to have a local overlay copy of pycurl and replace the original patch with the one included.  If you need help creating a local overlay, there should be documentation at the main site.
Comment 20 Bob Raitz 2012-04-13 07:33:04 UTC
(In reply to comment #14)
> The problem exists due to bug
> https://bugs.gentoo.org/show_bug.cgi?id=329987.  I can confirm that using
> the updated patch attached to that bug fixes the compilation issues after
> rebuilding pycurl, then system-config-printer, and finally
> system-config-printer-kde.

This did the trick for me. Thanks.
Comment 21 Johannes Huber (RETIRED) gentoo-dev 2012-04-18 21:49:28 UTC
Bug 329987 is fixed, this should fix this issue too. So please re-open if problem persists.