Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698018 - sys-apps/fwupd-1.3.2 - meson.build:262:4: ERROR: Problem encountered: Traceback (most recent call last): File "po/test-deps", line 18, in <module> gi.require_version('Pango', '1.0') NameError: name 'gi' is not defined
Summary: sys-apps/fwupd-1.3.2 - meson.build:262:4: ERROR: Problem encountered: Traceba...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernardo Meurer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-18 22:09 UTC by Dennis Schridde
Modified: 2019-11-03 22:17 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,9.71 KB, text/plain)
2019-10-18 22:09 UTC, Dennis Schridde
Details
meson-log.txt (meson-log.txt,55.21 KB, text/plain)
2019-10-18 22:09 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2019-10-18 22:09:08 UTC
Created attachment 593258 [details]
build.log

meson.build:262:4: ERROR: Problem encountered: Traceback (most recent call last):                                                                                                     
  File "po/test-deps", line 18, in <module>                                   
    gi.require_version('Pango', '1.0')                                                                                                                                                
NameError: name 'gi' is not defined
Comment 1 Dennis Schridde 2019-10-18 22:09:40 UTC
Created attachment 593260 [details]
meson-log.txt
Comment 2 Dennis Schridde 2019-10-18 22:11:23 UTC
Portage 2.3.77 (python 2.7.13-final-42, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.29-r5, 5.3.6-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.3.6-gentoo-r1-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.6
KiB Mem:    14134984 total,   2723548 free
KiB Swap:   16776188 total,  14734332 free
Timestamp of repository gentoo: Fri, 18 Oct 2019 16:45:01 +0000
Head commit of repository gentoo: f67461511d56d00071fe41624d587ce9e9f52a42
Head commit of repository flatpak-overlay: dba2292fa92fbe7f51a437ff89d27cbab6105b67

Head commit of repository local: 67477b7789e1d38438b8ace892373eb769703436

sh bash 5.0_p11
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
ccache version 3.7.4 [disabled]
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo, 3.7.5::gentoo
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.15.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

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

flatpak-overlay
    location: /var/db/repos/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --nospinner --verbose-conflicts"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/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="/tmp"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 appindicator appstream archive audit avahi ayatana bash-completion bdplus berkdb bluetooth bluray branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli clipboard color-management colord conntrack crypt cups cxx d3d9 dav1d dbus declarative device-mapper dirac djvu dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emboss encode epub exif fam faudio fax fbcon ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gbm gdal gdbm geoclue geolocation gif git glamor gles gmp gnupg google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 gzip harfbuzz hdf5 heif http2 ibus iconv icu idn imlib inotify introspection ipv6 jemalloc jpeg jpeg2k json kde kipi kms kwallet ladspa latex lcms ldap libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lv2 lvm lz4 lzma lzo mad mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nls nptl office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf pgo phonon pixman plasma pm-utils png policykit postscript ppds prison pulseaudio python qml qrcode qt5 raw readline redfish samba sasl scanner schroedinger screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell ssl startup-notification steamruntime stemmer svg systemd systemtap tbb tcpd teamd telepathy tga theora threads tiff timezone tmux truetype tslib udev udisks unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vdpau vkd3d vorbis vpx vulkan wasm wavpack wayland webchannel webengine webkit webp widgets wmf wps x264 x265 xattr xcb xcomposite xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xz yaml zeroconf zeromq zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LIRC_DEVICES="devinput" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_TARGET="lua5-2" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/fwupd-1.2.10::gentoo was built with the following:
USE="agent colorhug gpg man nvme redfish systemd uefi (-consolekit) -dell -doc (-elogind) -pkcs7 -test -thunderbolt" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_6 -python3_5 -python3_7" PYTHON_TARGETS="python3_6 -python3_5 -python3_7"


dev-python/pygobject-2.28.6-r55::gentoo was built with the following:
USE="-examples -libffi -test" ABI_X86="(64)" PYTHON_TARGETS="python2_7"
FEATURES="assume-digests binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"


dev-python/pygobject-3.32.1::gentoo was built with the following:
USE="cairo -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_6 -python3_5 -python3_7"
Comment 3 Dennis Schridde 2019-11-03 16:24:20 UTC
The issue persists with fwupd-1.3.3 and its cause seems to be that the build system picks the wrong Python interpreter.


`gi` is available for PYTHON_TARGETS=python{2_7,3_6}:
ls /usr/lib64/*/site-packages/gi/__init__.py
/usr/lib64/python2.7/site-packages/gi/__init__.py
/usr/lib64/python3.6/site-packages/gi/__init__.py


But the meson build system runs /usr/sbin/python3 (which is the same as /usr/bin/python3 due to USE=-split-usr):
Running command: /usr/sbin/python3 po/test-deps
--- stdout ---
Error: missing dependency python gobject introspection (python3-gi)

--- stderr ---
Traceback (most recent call last):
  File "po/test-deps", line 18, in <module>
    gi.require_version('Pango', '1.0')
NameError: name 'gi' is not defined


meson.build:263:4: ERROR: Problem encountered: Traceback (most recent call last):
  File "po/test-deps", line 18, in <module>
    gi.require_version('Pango', '1.0')
NameError: name 'gi' is not defined


Now /usr/sbin/python3 is Python 3.7.5:
$ which python3
/usr/sbin/python3
$ python3 --version
Python 3.7.5
$ eselect python list
Available Python interpreters, in order of preference:
  [1]   pypy3
  [2]   pypy
  [3]   python3.7 (fallback)
  [4]   python3.6 (fallback)
  [5]   python3.5 (fallback)
  [6]   python2.7 (fallback)


Following patch fixes this:
commit efdb52d35b9c69bfd76caa8b345adc4de9fff894 (HEAD -> master)
Author: Dennis Schridde <devurandom@gmx.net>
Date:   Sun Nov 3 17:21:22 2019 +0100

    sys-apps/fwupd-1.3.3: Fix build
    
    Closes: https://bugs.gentoo.org/698018

diff --git a/sys-apps/fwupd/fwupd-1.3.3.ebuild b/sys-apps/fwupd/fwupd-1.3.3.ebuild
index b1c77f7..bf99d13 100644
--- a/sys-apps/fwupd/fwupd-1.3.3.ebuild
+++ b/sys-apps/fwupd/fwupd-1.3.3.ebuild
@@ -90,6 +90,7 @@ pkg_setup() {
        if use nvme; then
                kernel_is -ge 4 4 || die "NVMe support requires kernel >= 4.4"
        fi
+       python-single-r1_pkg_setup
 }
 
 src_prepare() {


You can also find it in my overlay: https://github.com/devurandom/gentoo-overlay/commit/efdb52d35b9c69bfd76caa8b345adc4de9fff894
Comment 4 Dennis Schridde 2019-11-03 16:25:19 UTC
P.S. My interpretation is that the issue was that EPYTHON was never set, so /usr/bin/python3 or python-exec did not know as what version of Python to appear, so it picked the default version.
Comment 5 Larry the Git Cow gentoo-dev 2019-11-03 17:03:26 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50459e396fe9469daf5e8a145a7f98db7116e584

commit 50459e396fe9469daf5e8a145a7f98db7116e584
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-11-03 17:03:03 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-11-03 17:03:19 +0000

    sys-apps/fwupd: Attempt to fix build issue
    
    Bug: https://bugs.gentoo.org/698018
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-apps/fwupd/fwupd-1.3.2.ebuild | 1 +
 sys-apps/fwupd/fwupd-1.3.3.ebuild | 1 +
 2 files changed, 2 insertions(+)
Comment 6 Dennis Schridde 2019-11-03 22:17:18 UTC
(In reply to Larry the Git Cow from comment #5)
> The bug has been referenced in the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=50459e396fe9469daf5e8a145a7f98db7116e584
> 
> commit 50459e396fe9469daf5e8a145a7f98db7116e584
> Author:     Lars Wendler <polynomial-c@gentoo.org>
> AuthorDate: 2019-11-03 17:03:03 +0000
> Commit:     Lars Wendler <polynomial-c@gentoo.org>
> CommitDate: 2019-11-03 17:03:19 +0000
> 
>     sys-apps/fwupd: Attempt to fix build issue
>     
>     Bug: https://bugs.gentoo.org/698018
>     Package-Manager: Portage-2.3.78, Repoman-2.3.17
>     Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
> 
>  sys-apps/fwupd/fwupd-1.3.2.ebuild | 1 +
>  sys-apps/fwupd/fwupd-1.3.3.ebuild | 1 +
>  2 files changed, 2 insertions(+)

I think we can mark this issue here as RESOLVED/FIXED by that commit.

The remaining issue where the invocation of:
[170/342] /usr/sbin/help2man plugins/dfu/dfu-tool --no-info --output plugins/dfu/dfu-tool.1 --name dfu-tool --manual 'User Commands' --version-string 1.3.3 --include /tmp/portage/sys-apps/fwupd-1.3.3/work/fwupd-1.3.3/plugins/dfu/dfu-tool.h2m
results in a sandbox violation:
  * ACCESS DENIED:  open_wr:      /var/cache/fwupd/quirks.xmlb
with sandbox log:
F: open_wr
S: deny
P: /var/cache/fwupd/quirks.xmlb
A: /var/cache/fwupd/quirks.xmlb
R: /var/cache/fwupd/quirks.xmlb
C: plugins/dfu/dfu-tool --help
is tracked in bug #699162.