Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946797 - dev-libs/glib-2.80.5-r1: test build fail - desktop-app-info.c:1922:58: error: expected ‘;’ before ‘)’ token
Summary: dev-libs/glib-2.80.5-r1: test build fail - desktop-app-info.c:1922:58: error:...
Status: RESOLVED DUPLICATE of bug 904096
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-21 22:28 UTC by Gabi Falk
Modified: 2024-12-21 22:30 UTC (History)
1 user (show)

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


Attachments
sed /g_test_add_func/d (glib-2.80.5-sed.diff,2.17 KB, patch)
2024-12-21 22:28 UTC, Gabi Falk
Details | Diff
/var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/build.log (build.log.gz,79.05 KB, application/gzip)
2024-12-21 22:30 UTC, Gabi Falk
Details
emerge --info =dev-libs/glib-2.80.5-r1 (emerge--info-glib-2.80.5-r1,6.21 KB, text/plain)
2024-12-21 22:30 UTC, Gabi Falk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabi Falk 2024-12-21 22:28:08 UTC
Created attachment 914629 [details, diff]
sed /g_test_add_func/d

glib fails to build tests when dev-util/desktop-file-utils package is not installed:

../glib-2.80.5/gio/tests/desktop-app-info.c:1922:58: error: expected ‘;’ before ‘)’ token
 1922 |                    test_launch_uris_with_invalid_terminal);
      |                                                          ^
      |                                                          ;
../glib-2.80.5/gio/tests/desktop-app-info.c:1922:58: error: expected statement before ‘)’ token

This happens due to this sed expression in the ebuild:
sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c

See the attached diff after applying this expression.
Comment 1 Gabi Falk 2024-12-21 22:30:10 UTC
Created attachment 914630 [details]
/var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-21 22:30:26 UTC

*** This bug has been marked as a duplicate of bug 904096 ***
Comment 3 Gabi Falk 2024-12-21 22:30:48 UTC
Created attachment 914631 [details]
emerge --info =dev-libs/glib-2.80.5-r1