Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 752504 - x11-wm/xpra-3.0.5-r2 needs to depend on pycairo
Summary: x11-wm/xpra-3.0.5-r2 needs to depend on pycairo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-03 12:16 UTC by kavol
Modified: 2020-12-28 15:07 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2020-11-03 12:16:15 UTC
Trying to rebuild xpra, it fails on my system. The error message suggests that I need to have pycairo - after emerging dev-python/pycairo manually, xpra rebuilds without any problem.

Reproducible: Always

Steps to Reproduce:
1. emerge xpra

Actual Results:  
...
* lib_xrandr           = 1.5.2
* lib_xtst             = 1.2.3
found gcc version: 9.3.0
Traceback (most recent call last):
  File "setup.py", line 1899, in <module>
    **pkgconfig("py3cairo")
  File "setup.py", line 646, in exec_pkgconfig
    (" or ".join(options), os.environ.get("PKG_CONFIG_PATH", "(empty)")))
Exception: ERROR: cannot find a valid pkg-config entry for py3cairo using PKG_CONFIG_PATH=/var/tmp/portage/x11-wm/xpra-3.0.5-r2/temp/python3.7/pkgconfig



# emerge --info '=x11-wm/xpra-3.0.5-r2::gentoo'
Portage 3.0.8 (python 3.7.9-final-0, default/linux/amd64/17.0/no-multilib, gcc-9.3.0, glibc-2.32-r2, 5.4.66-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.66-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-2.7
KiB Mem:    12272132 total,   4914084 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 03 Nov 2020 10:00:01 +0000
Head commit of repository gentoo: ae2c6ae0bc505b26d2924a46b109ff550a04e8cf
sh bash 5.0_p18
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
ccache version 3.7.11 [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.5::gentoo
dev-util/ccache:          3.7.11::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo, 2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

printer-drivers
    location: /var/lib/layman/printer-drivers
    masters: gentoo
    priority: 50

rion
    location: /var/lib/layman/rion
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs cs_CZ en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aacplus aften alsa amd64 apng berkdb bzip2 cg cli crypt css cups dbus dec_av2 desktopglobe dga distinct-l dpi dri dv elogind exif farstream ffmpeg fftw fortran frei0r gdbm gimp gpg gphoto2 gstreamer iconv icu ieee1394 jabber java jbig jingle jpeg jpeg2k kde kdenlive kdepim kvm kwallet ladspa libglvnd libtirpc mediaplayer midi mikmod mms mod mplayer ncurses network-cron nls nptl nsplugin offensive ogg ois openexr opengl openmp openssl otr pam pcre pcre16 pdfimport pim plotutils png postproc printsupport python qml qt5 raw readline scanner scripttools scrobbler sdl seccomp server sip smp speex split-usr sqlite ssl svg symlink system-libvpx taglib tcpd theora threads timidity unicode update_drivedb uvm v4l vaapi vdpau video vlc vnc vorbis vpx webgl webkit webkit2 webstart widgets x264 x265 xcomposite xml xmp xmpp xvfb xvid zeroconf zip zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="karbon sheets words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="cs en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# emerge -pqv '=x11-wm/xpra-3.0.5-r2::gentoo'
[ebuild     U ] x11-wm/xpra-3.0.5-r2 [3.0.2-r1] USE="client clipboard cups dbus ffmpeg%* jpeg lz4 opengl server vpx -csc -lzo -pillow -pulseaudio -sound -test -webcam -webp (-dec_avcodec2%) (-enc_ffmpeg%) (-enc_x264%) (-enc_x265%)" PYTHON_TARGETS="python3_7 -python3_6 -python3_8% (-python3_9)"
Comment 1 kavol 2020-11-16 11:01:55 UTC
and while at it ...

on another computer, I got only black windows and error message:

TypeError: Couldn't find foreign struct converter for 'cairo.Context'

repeating on console

re-emerging pygobject with USE="cairo" fixed the issue
Comment 2 Larry the Git Cow gentoo-dev 2020-12-28 15:07:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87a857c44efc3e04d32b5aae37b0d480fdd86fdc

commit 87a857c44efc3e04d32b5aae37b0d480fdd86fdc
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2020-12-28 14:59:45 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2020-12-28 15:06:59 +0000

    x11-wm/xpra: bump to 4.0.5.
    
    Add USE=minimal for disabling bloat features.
    
    Add pyobject[cairo] dependency.
    
    Suggested-by: kavol@email.cz
    Closes: https://bugs.gentoo.org/752504
    Package-Manager: Portage-3.0.12, Repoman-3.0.1
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 x11-wm/xpra/Manifest          |   1 +
 x11-wm/xpra/xpra-4.0.5.ebuild | 144 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 145 insertions(+)