Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904096 - dev-libs/glib-2.76.1 - ../.../desktop-app-info.c: error: expected ; before ) token
Summary: dev-libs/glib-2.76.1 - ../.../desktop-app-info.c: error: expected ; before ) ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 920657
  Show dependency tree
 
Reported: 2023-04-10 07:15 UTC by Toralf Förster
Modified: 2024-06-29 12:22 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.77 KB, text/plain)
2023-04-10 07:15 UTC, Toralf Förster
Details
dev-libs:glib-2.76.1:20230410-043436.log.bz2 (dev-libs:glib-2.76.1:20230410-043436.log.bz2,33.19 KB, application/x-bzip)
2023-04-10 07:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,22.48 KB, text/plain)
2023-04-10 07:15 UTC, Toralf Förster
Details
environment (environment,155.45 KB, text/plain)
2023-04-10 07:15 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.79 KB, application/x-bzip)
2023-04-10 07:15 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,28.11 KB, application/x-bzip)
2023-04-10 07:15 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,98.49 KB, application/x-bzip)
2023-04-10 07:15 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-04-10 07:15:25 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2023-04-10 07:15:26 UTC
Created attachment 859795 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-04-10 07:15:27 UTC
Created attachment 859796 [details]
dev-libs:glib-2.76.1:20230410-043436.log.bz2
Comment 3 Toralf Förster gentoo-dev 2023-04-10 07:15:28 UTC
Created attachment 859797 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-04-10 07:15:29 UTC
Created attachment 859798 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-04-10 07:15:30 UTC
Created attachment 859799 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-04-10 07:15:31 UTC
Created attachment 859800 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-04-10 07:15:32 UTC
Created attachment 859801 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-23 05:50:49 UTC
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)
      | ^~~~~~~~~~~~~~~~~~~~~
[...]
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-23 05:51:17 UTC
This sounds like g_test_add_func isn't recognised for some reason.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-28 13:43:02 UTC
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.
Comment 11 Mart Raudsepp gentoo-dev 2024-06-29 12:21:23 UTC
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.
Comment 12 Mart Raudsepp gentoo-dev 2024-06-29 12:22:16 UTC
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.