Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815240 - app-emulation/snapd-2.52 with glib-2.70: libsnap-confine-private/test-utils.c:63:9: error: ‘g_spawn_check_exit_status’ is deprecated: Use 'g_spawn_check_wait_status' instead
Summary: app-emulation/snapd-2.52 with glib-2.70: libsnap-confine-private/test-utils.c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-28 15:24 UTC by Kobboi
Modified: 2021-10-05 21:10 UTC (History)
1 user (show)

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


Attachments
build.log.gz (build.log.gz,146.67 KB, text/plain)
2021-09-28 15:26 UTC, Kobboi
Details
Portage repo diff fix for g_spawn_check_exit_status taken from Arch Linux (snapd-2.52-g_spawn_check_exit_status.patch,2.04 KB, patch)
2021-10-05 14:54 UTC, Simon Alman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2021-09-28 15:24:56 UTC
(...)
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wno-missing-field-initializers -Wno-unused-parameter -Werror  -DLIBEXECDIR=\"/usr/lib/snapd\" -DNATIVE_LIBDIR=\"/usr/lib\"     -DSNAP_CONFINE_DEBUG_BUILD=1 -O2 -march=znver3 -pipe -g -ggdb -c -o snap-confine/snap_confine_debug-seccomp-support.o `test -f 'snap-confine/seccomp-support.c' || echo './'`snap-confine/seccomp-support.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wno-missing-field-initializers -Wno-unused-parameter -Werror  -DLIBEXECDIR=\"/usr/lib/snapd\" -DNATIVE_LIBDIR=\"/usr/lib\"     -DSNAP_CONFINE_DEBUG_BUILD=1 -O2 -march=znver3 -pipe -g -ggdb -c -o snap-confine/snap_confine_debug-snap-confine-args.o `test -f 'snap-confine/snap-confine-args.c' || echo './'`snap-confine/snap-confine-args.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wno-missing-field-initializers -Wno-unused-parameter -Werror  -DLIBEXECDIR=\"/usr/lib/snapd\" -DNATIVE_LIBDIR=\"/usr/lib\"     -DSNAP_CONFINE_DEBUG_BUILD=1 -O2 -march=znver3 -pipe -g -ggdb -c -o snap-confine/snap_confine_debug-snap-confine-invocation.o `test -f 'snap-confine/snap-confine-invocation.c' || echo './'`snap-confine/snap-confine-invocation.c
libsnap-confine-private/test-utils.c: In function ‘rm_rf_tmp’:
libsnap-confine-private/test-utils.c:63:9: error: ‘g_spawn_check_exit_status’ is deprecated: Use 'g_spawn_check_wait_status' instead [-Werror=deprecated-declarations]
   63 |         g_assert_true(g_spawn_check_exit_status(exit_status, NULL));
      |         ^~~~~~~~~~~~~

Reproducible: Always
Comment 1 Kobboi 2021-09-28 15:25:15 UTC
Portage 3.0.24 (python 3.9.7-final-0, !../../var/db/repos/kobboi-linux/profiles/kobboi/tanagra, gcc-11.2.0, glibc-2.33-r7, 5.14.8-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.14.8-gentoo-dist-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.33
KiB Mem:   131861728 total,  30860344 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 28 Sep 2021 15:00:01 +0000
Head commit of repository gentoo: 35d98adecae341f50c42caf4cea4bb264a57fd67
Timestamp of repository brother-overlay: Sun, 19 Sep 2021 21:51:57 +0000
Head commit of repository brother-overlay: 09ee0c1e201a47821384e215b1f4e60daa6c2e9c

Timestamp of repository eclipse: Tue, 21 Sep 2021 08:06:41 +0000
Head commit of repository eclipse: 6979ae8065ea5502572c75f76b477868b8a8b3a8

Head commit of repository kobboi-linux: 3c003b8686462ad4a6ff9a3ba4cc5a56a85cd744

Timestamp of repository steam-overlay: Tue, 21 Sep 2021 13:51:38 +0000
Head commit of repository steam-overlay: 39a165b2db31544095fd7965176d6135a4f3e118

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.4.1 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.9.7::gentoo, 3.10.0_rc2::gentoo
dev-lang/rust:            1.55.0::gentoo
dev-util/ccache:          4.4.1::gentoo
dev-util/cmake:           3.21.3::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

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

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

eclipse
    location: /var/db/repos/eclipse
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/eclipse.git
    masters: gentoo

kobboi-linux
    location: /var/db/repos/kobboi-linux
    sync-type: git
    sync-uri: https://github.com/kobboi/kobboi-linux
    masters: gentoo

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

Installed sets: @kobboi-all-packages, @kobboi-machine-tanagra
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver3 -pipe -g -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/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.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/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="-O2 -march=znver3 -pipe -g -ggdb"
DISTDIR="/var/cache/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 -march=znver3 -pipe -g -ggdb"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-install 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 xattr"
FFLAGS="-O2 -march=znver3 -pipe -g -ggdb"
GENTOO_MIRRORS="ftp://kobboi-linux:*password*@10.8.0.1/2020.11"
INSTALL_MASK="/usr/src/debug /usr/lib/debug"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
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 a52 aac acl acpi alsa amd64 avahi bluetooth bzip2 cairo cdda cdr cli colord crypt cups dbus dist-kernel djvu dri dts dvd dvdr eds egl emboss encode evo exif facedetect ffmpeg flac fluidsynth fortran frei0r gdbm gif glade gles gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle gui iconv icu introspection ipv6 jpeg ladspa lcms libass libglvnd libnotify libsecret libtirpc lv2 lz4 lzma lzo mad midi mng modemmanager mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opencv opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba screencast sdl seccomp smartcard smp spell split-usr ssl startup-notification svg sysprof systemd tcpd tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2019" ALSA_CARDS="hda-intel ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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="keyboard mouse synaptics libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="vesa radeon nvidia intel amdgpu dummy fbdev nouveau radeonsi v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 2 Kobboi 2021-09-28 15:26:56 UTC
Created attachment 741780 [details]
build.log.gz
Comment 3 Simon Alman 2021-10-05 14:54:35 UTC
Created attachment 743241 [details, diff]
Portage repo diff fix for g_spawn_check_exit_status taken from Arch Linux

Apply patch against portage tree, validate and re-try to emerge snapd-2.52.
Comment 4 Simon Alman 2021-10-05 14:58:15 UTC
Patch attached against portage, taken from Arch who seem to have hit (and fixed) the same issue:
* https://aur.archlinux.org/packages/snapd/#comment-827648

Patch source:
* https://aur.archlinux.org/cgit/aur.git/plain/0001-cmd-libsnap-confine-private-g_spawn_check_exit_statu.patch?h=snapd

I've successfully built against glib-2.70 with the above:

>>> Completed installing app-emulation/snapd-2.52 into /var/tmp/portage/app-emulation/snapd-2.52/image
Comment 5 Larry the Git Cow gentoo-dev 2021-10-05 21:10:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48e57bce3ebcf466088f97352e368924441ec5d8

commit 48e57bce3ebcf466088f97352e368924441ec5d8
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2021-10-05 21:09:20 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-10-05 21:09:58 +0000

    app-emulation/snapd: 2.52.1 bump
    
    Closes: https://bugs.gentoo.org/815240
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-emulation/snapd/Manifest            |   1 +
 app-emulation/snapd/snapd-2.52.1.ebuild | 180 ++++++++++++++++++++++++++++++++
 2 files changed, 181 insertions(+)
Comment 6 Zac Medico gentoo-dev 2021-10-05 21:10:31 UTC
Thanks!