too long lines were shrinked: FAILED: gio/tests/desktop-app-info.p/desktop-app-info.c.o x86_64-pc-linux-gnu-gcc -Igio/tests/desktop-app-info.p -Igio/tests -I../glib-2.76.1/gio/tests -I. -I../glib-2.76.1 -Iglib -I../glib-2.76.1/glib -Igmodule -I../glib-2.76.1/gmodule -Igobject -I../glib-2.76.1/gobject -Igio -I../glib-2.76.1/gio -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Wi ../glib-2.76.1/gio/tests/desktop-app-info.c: In function main: ../glib-2.76.1/gio/tests/desktop-app-info.c:1917:20: warning: statement with no effect [-Wunused-value] 1917 | test_launch_uris_with_invalid_terminal); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../glib-2.76.1/gio/tests/desktop-app-info.c:1917:58: error: expected ; before ) token 1917 | test_launch_uris_with_invalid_terminal); | ^ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no_multilib_systemd-j4_test-20230409-194051 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12 * clang/llvm (if any): /usr/lib/llvm/16 16.0.1 Python 3.10.10 Available Rust versions: [1] rust-1.68.2 * The following VMs are available for generation-2: Available Java Virtual Machines: (none found) php cli (if any): HEAD of ::gentoo commit 1d2b3234a434b1c7bac882947c8368298164838d Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sun Apr 9 19:31:54 2023 +0000 2023-04-09 19:31:53 UTC emerge -qpvO dev-libs/glib [ebuild N ] dev-libs/glib-2.76.1 USE="elf mime test xattr -dbus -debug -gtk-doc (-selinux) -static-libs -sysprof -systemtap -utils"
Created attachment 859795 [details] emerge-info.txt
Created attachment 859796 [details] dev-libs:glib-2.76.1:20230410-043436.log.bz2
Created attachment 859797 [details] emerge-history.txt
Created attachment 859798 [details] environment
Created attachment 859799 [details] etc.portage.tar.bz2
Created attachment 859800 [details] logs.tar.bz2
Created attachment 859801 [details] temp.tar.bz2
FAILED: gio/tests/desktop-app-info.p/desktop-app-info.c.o x86_64-pc-linux-gnu-gcc -Igio/tests/desktop-app-info.p -Igio/tests -I../glib-2.76.1/gio/tests -I. -I../glib-2.76.1 -Iglib -I../glib-2.76.1/glib -Igmodule -I../glib-2.76.1/gmodule -Igobject -I../glib-2.76.1/gobject -Igio -I../glib-2.76.1/gio -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -D_GNU_SOURCE -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wduplicated-branches -Wimplicit-fallthrough -Wmisleading-indentation -Wmissing-field-initializers -Wnonnull -Wunused -Wno-unused-parameter -Wno-cast-function-type -Wno-pedantic -Wno-format-zero-length -Wno-variadic-macros -Werror=format=2 -Werror=init-self -Werror=missing-include-dirs -Werror=pointer-arith -Werror=unused-result -Wstrict-prototypes -Wno-bad-function-cast -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pointer-sign -O2 -pipe -march=native -fno-diagnostics-color '-DG_LOG_DOMAIN="GLib-GIO"' '-DGLIB_MKENUMS="gobject/glib-mkenums"' '-DGLIB_COMPILE_SCHEMAS="/var/tmp/portage/dev-libs/glib-2.76.1/work/glib-2.76.1-abi_x86_64.amd64/gio/glib-compile-schemas"' -UG_DISABLE_ASSERT -DHAVE_OPENPTY -MD -MQ gio/tests/desktop-app-info.p/desktop-app-info.c.o -MF gio/tests/desktop-app-info.p/desktop-app-info.c.o.d -o gio/tests/desktop-app-info.p/desktop-app-info.c.o -c ../glib-2.76.1/gio/tests/desktop-app-info.c ../glib-2.76.1/gio/tests/desktop-app-info.c: In function ‘main’: ../glib-2.76.1/gio/tests/desktop-app-info.c:1917:20: warning: statement with no effect [-Wunused-value] 1917 | test_launch_uris_with_invalid_terminal); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../glib-2.76.1/gio/tests/desktop-app-info.c:1917:58: error: expected ‘;’ before ‘)’ token 1917 | test_launch_uris_with_invalid_terminal); | ^ | ; ../glib-2.76.1/gio/tests/desktop-app-info.c:1917:58: error: expected statement before ‘)’ token ../glib-2.76.1/gio/tests/desktop-app-info.c: At top level: ../glib-2.76.1/gio/tests/desktop-app-info.c:1823:1: warning: ‘test_launch_fail_dbus’ defined but not used [-Wunused-function] 1823 | test_launch_fail_dbus (void) | ^~~~~~~~~~~~~~~~~~~~~ [...]
This sounds like g_test_add_func isn't recognised for some reason.
I tried to reproduce this briefly with ` USE="-* abi_x86_64 amd64 elf elibc_glibc kernel_linux mime test userland_GNU xattr" e glib-2.78.6.ebuild clean test and couldn't. I don't get it yet.
As discussed on IRC, the sed's in the dev-util/desktop-file-utils conditional are probably out of date from upstream adding some formatting linebreaks or something. So the failure would only happen if desktop-file-utils isn't present during glib emerge. Would be ideal if with sed we would have a way to delete lines across semi-colons or something, but I guess more realistically just need to instruct it to delete the previous or next line as well (depending which way the wrapping is), or convert it to a conditional patch.
Or even better - upstreaming a change that would skip the test when the necessary tool isn't present. It could also be that upstream has since made it act like that and we could just drop the seds, someone needs to look; I can't before a couple weeks, sorry.