45.1: build fails with appstream 1.0.0
Looks like something is wrong and build fails
[94/166] Compiling C object src/gnome-software.p/gs-hardware-support-context-dialog.c.o
FAILED: src/gnome-software.p/gs-hardware-support-context-dialog.c.o
/usr/bin/gcc -Isrc/gnome-software.p -Isrc -I../src -I. -I.. -Ilib -I../lib -I/usr/include/appstream -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/gtk-4.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/json-glib-1.0 -I/usr/include/libsoup-3.0 -I/usr/include/libxmlb-2 -I/usr/include/polkit-1 -I/usr/include/libadwaita-1 -I/usr/include/PackageKit -I/usr/include/gsettings-desktop-schemas -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE -DI_KNOW_THE_GNOME_SOFTWARE_API_IS_SUBJECT_TO_CHANGE -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -Wno-inline -mfpmath=sse -msse -msse2 -pthread -mfpmath=sse -msse -msse2 '-DG_LOG_DOMAIN="Gs"' '-DLOCALPLUGINDIR=""' -MD -MQ src/gnome-software.p/gs-hardware-support-context-dialog.c.o -MF src/gnome-software.p/gs-hardware-support-context-dialog.c.o.d -o src/gnome-software.p/gs-hardware-support-context-dialog.c.o -c ../src/gs-hardware-support-context-dialog.c
../src/gs-hardware-support-context-dialog.c: In function ‘gs_hardware_support_context_dialog_get_display_support’:
../src/gs-hardware-support-context-dialog.c:466:34: error: ‘AS_DISPLAY_LENGTH_KIND_XSMALL’ undeclared (first use in this function)
466 | [AS_DISPLAY_LENGTH_KIND_XSMALL] = { 0, 360 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/gs-hardware-support-context-dialog.c:466:34: note: each undeclared identifier is reported only once for each function it appears in
../src/gs-hardware-support-context-dialog.c:466:34: error: array index in initializer not of integer type
../src/gs-hardware-support-context-dialog.c:466:34: note: (near initialization for ‘display_lengths’)
../src/gs-hardware-support-context-dialog.c:467:34: error: ‘AS_DISPLAY_LENGTH_KIND_SMALL’ undeclared (first use in this function); did you mean ‘AS_DISPLAY_SIDE_KIND_LAST’?
467 | [AS_DISPLAY_LENGTH_KIND_SMALL] = { 360, 768 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| AS_DISPLAY_SIDE_KIND_LAST
../src/gs-hardware-support-context-dialog.c:467:34: error: array index in initializer not of integer type
../src/gs-hardware-support-context-dialog.c:467:34: note: (near initialization for ‘display_lengths’)
../src/gs-hardware-support-context-dialog.c:468:34: error: ‘AS_DISPLAY_LENGTH_KIND_MEDIUM’ undeclared (first use in this function)
468 | [AS_DISPLAY_LENGTH_KIND_MEDIUM] = { 768, 1024 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/gs-hardware-support-context-dialog.c:468:34: error: array index in initializer not of integer type
../src/gs-hardware-support-context-dialog.c:468:34: note: (near initialization for ‘display_lengths’)
../src/gs-hardware-support-context-dialog.c:469:34: error: ‘AS_DISPLAY_LENGTH_KIND_LARGE’ undeclared (first use in this function); did you mean ‘AS_DISPLAY_SIDE_KIND_LAST’?
469 | [AS_DISPLAY_LENGTH_KIND_LARGE] = { 1024, 3840 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| AS_DISPLAY_SIDE_KIND_LAST
../src/gs-hardware-support-context-dialog.c:469:34: error: array index in initializer not of integer type
../src/gs-hardware-support-context-dialog.c:469:34: note: (near initialization for ‘display_lengths’)
../src/gs-hardware-support-context-dialog.c:470:34: error: ‘AS_DISPLAY_LENGTH_KIND_XLARGE’ undeclared (first use in this function); did you mean ‘AS_DISPLAY_SIDE_KIND_LAST’?
470 | [AS_DISPLAY_LENGTH_KIND_XLARGE] = { 3840, G_MAXUINT },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| AS_DISPLAY_SIDE_KIND_LAST
../src/gs-hardware-support-context-dialog.c:470:34: error: array index in initializer not of integer type
../src/gs-hardware-support-context-dialog.c:470:34: note: (near initialization for ‘display_lengths’)
../src/gs-hardware-support-context-dialog.c:488:74: warning: implicit declaration of function ‘as_relation_get_value_display_length_kind’; did you mean ‘as_relation_get_value_internet_kind’? [-Wimplicit-function-declaration]
488 | relation_comparand.min = display_lengths[as_relation_get_value_display_length_kind (relation)].min;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| as_relation_get_value_internet_kind
[95/166] Compiling C object lib/libgnomesoftware.so.20.p/gs-appstream.c.o
FAILED: lib/libgnomesoftware.so.20.p/gs-appstream.c.o
/usr/bin/gcc -Ilib/libgnomesoftware.so.20.p -Ilib -I../lib -I. -I.. -I/usr/include/appstream -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/gtk-4.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/json-glib-1.0 -I/usr/include/libsoup-3.0 -I/usr/include/libxmlb-2 -I/usr/include/polkit-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE -DI_KNOW_THE_GNOME_SOFTWARE_API_IS_SUBJECT_TO_CHANGE -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -Wno-inline -fPIC -pthread -mfpmath=sse -msse -msse2 '-DG_LOG_DOMAIN="Gs"' '-DLOCALPLUGINDIR=""' -MD -MQ lib/libgnomesoftware.so.20.p/gs-appstream.c.o -MF lib/libgnomesoftware.so.20.p/gs-appstream.c.o.d -o lib/libgnomesoftware.so.20.p/gs-appstream.c.o -c ../lib/gs-appstream.c
../lib/gs-appstream.c: In function ‘gs_appstream_refine_add_provides’:
../lib/gs-appstream.c:591:40: error: ‘AS_PROVIDED_KIND_PYTHON_2’ undeclared (first use in this function); did you mean ‘AS_PROVIDED_KIND_PYTHON’?
591 | kind = AS_PROVIDED_KIND_PYTHON_2;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| AS_PROVIDED_KIND_PYTHON
../lib/gs-appstream.c:591:40: note: each undeclared identifier is reported only once for each function it appears in
../lib/gs-appstream.c: In function ‘gs_appstream_refine_app_relation’:
../lib/gs-appstream.c:1014:25: error: unknown type name ‘AsDisplayLengthKind’; did you mean ‘AsDisplaySideKind’?
1014 | AsDisplayLengthKind display_length_kind;
| ^~~~~~~~~~~~~~~~~~~
| AsDisplaySideKind
../lib/gs-appstream.c:1023:47: warning: implicit declaration of function ‘as_display_length_kind_from_string’; did you mean ‘as_display_side_kind_from_string’? [-Wimplicit-function-declaration]
1023 | display_length_kind = as_display_length_kind_from_string (xb_node_get_text (child));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| as_display_side_kind_from_string
../lib/gs-appstream.c:1024:52: error: ‘AS_DISPLAY_LENGTH_KIND_UNKNOWN’ undeclared (first use in this function); did you mean ‘AS_DISPLAY_SIDE_KIND_UNKNOWN’?
1024 | if (display_length_kind != AS_DISPLAY_LENGTH_KIND_UNKNOWN) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| AS_DISPLAY_SIDE_KIND_UNKNOWN
../lib/gs-appstream.c:1026:33: warning: implicit declaration of function ‘as_relation_set_value_display_length_kind’; did you mean ‘as_relation_set_value_internet_kind’? [-Wimplicit-function-declaration]
1026 | as_relation_set_value_display_length_kind (relation, display_length_kind);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| as_relation_set_value_internet_kind
../lib/gs-appstream.c: At top level:
../lib/gs-appstream.c:1475:9: error: unknown type name ‘AsSearchTokenMatch’
1475 | AsSearchTokenMatch match_value;
| ^~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1525:9: error: unknown type name ‘AsSearchTokenMatch’
1525 | AsSearchTokenMatch match_value;
| ^~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c: In function ‘gs_appstream_do_search’:
../lib/gs-appstream.c:1588:70: error: ‘AS_SEARCH_TOKEN_MATCH_ID’ undeclared (first use in this function)
1588 | gs_app_set_match_value (app, match_value & (~AS_SEARCH_TOKEN_MATCH_ID));
| ^~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c: In function ‘gs_appstream_search’:
../lib/gs-appstream.c:1631:19: error: ‘AS_SEARCH_TOKEN_MATCH_MIMETYPE’ undeclared (first use in this function)
1631 | { AS_SEARCH_TOKEN_MATCH_MIMETYPE, "mimetypes/mimetype[text()~=stem(?)]" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1639:19: error: ‘AS_SEARCH_TOKEN_MATCH_PKGNAME’ undeclared (first use in this function)
1639 | { AS_SEARCH_TOKEN_MATCH_PKGNAME, "pkgname[text()~=stem(?)]" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1641:19: error: ‘AS_SEARCH_TOKEN_MATCH_SUMMARY’ undeclared (first use in this function)
1641 | { AS_SEARCH_TOKEN_MATCH_SUMMARY, "summary[text()~=stem(?)]" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1642:19: error: ‘AS_SEARCH_TOKEN_MATCH_NAME’ undeclared (first use in this function)
1642 | { AS_SEARCH_TOKEN_MATCH_NAME, "name[text()~=stem(?)]" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1644:19: error: ‘AS_SEARCH_TOKEN_MATCH_KEYWORD’ undeclared (first use in this function)
1644 | { AS_SEARCH_TOKEN_MATCH_KEYWORD, "keywords/keyword[text()~=stem(?)]" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1645:19: error: ‘AS_SEARCH_TOKEN_MATCH_ID’ undeclared (first use in this function)
1645 | { AS_SEARCH_TOKEN_MATCH_ID, "id[text()~=stem(?)]" },
| ^~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1647:19: error: ‘AS_SEARCH_TOKEN_MATCH_ORIGIN’ undeclared (first use in this function)
1647 | { AS_SEARCH_TOKEN_MATCH_ORIGIN, "../components[@origin~=stem(?)]" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1648:19: error: ‘AS_SEARCH_TOKEN_MATCH_NONE’ undeclared (first use in this function)
1648 | { AS_SEARCH_TOKEN_MATCH_NONE, NULL }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c: In function ‘gs_appstream_search_developer_apps’:
../lib/gs-appstream.c:1663:19: error: ‘AS_SEARCH_TOKEN_MATCH_PKGNAME’ undeclared (first use in this function)
1663 | { AS_SEARCH_TOKEN_MATCH_PKGNAME, "developer_name[text()~=stem(?)]" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1664:19: error: ‘AS_SEARCH_TOKEN_MATCH_SUMMARY’ undeclared (first use in this function)
1664 | { AS_SEARCH_TOKEN_MATCH_SUMMARY, "project_group[text()~=stem(?)]" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/gs-appstream.c:1665:19: error: ‘AS_SEARCH_TOKEN_MATCH_NONE’ undeclared (first use in this function)
1665 | { AS_SEARCH_TOKEN_MATCH_NONE, NULL }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Here are meson params
%meson \
-D default_featured_apps=true \
-D eos_updater=false \
-D external_appstream=true \
-D flatpak=true \
-D fwupd=true \
-D gtk_doc=true \
-D gudev=true \
-D hardcoded_foss_webapps=true \
-D hardcoded_proprietary_webapps=false \
-D malcontent=true \
-D man=true \
-D mogwai=false \
-D packagekit_autoremove=true \
-D packagekit=true \
-D polkit=true \
-D rpm_ostree=false \
-D snap=false \
-D soup2=false \
-D sysprof=disabled \
-D tests=true \
-D webapps=true \
%{nil}
And meson output
+ /usr/bin/meson setup --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . x86_64-redhat-linux-gnu -D default_featured_apps=true -D eos_updater=false -D external_appstream=true -D flatpak=true -D fwupd=true -D gtk_doc=true -D gudev=true -D hardcoded_foss_webapps=true -D hardcoded_proprietary_webapps=false -D malcontent=true -D man=true -D mogwai=false -D packagekit_autoremove=true -D packagekit=true -D polkit=true -D rpm_ostree=false -D snap=false -D soup2=false -D sysprof=disabled -D tests=true -D webapps=true
The Meson build system
Version: 1.3.0
Source dir: /home/tkloczko/rpmbuild/BUILD/gnome-software-45.1
Build dir: /home/tkloczko/rpmbuild/BUILD/gnome-software-45.1/x86_64-redhat-linux-gnu
Build type: native build
Project name: gnome-software
Project version: 45.1
C compiler for the host machine: /usr/bin/gcc (gcc 13.2.1 "gcc (GCC) 13.2.1 20231110 (Red Hat 13.2.1-5)")
C linker for the host machine: /usr/bin/gcc ld.bfd 2.41-14
Host machine cpu family: x86_64
Host machine cpu: x86_64
Has header "linux/unistd.h" : YES
Found pkg-config: YES (/usr/bin/pkg-config) 2.0.3
Run-time dependency appstream found: YES 1.0.0
Header "appstream.h" has symbol "AS_SEARCH_TOKEN_MATCH_MEDIATYPE" with dependency appstream: NO
Header "appstream.h" has symbol "AS_FORMAT_STYLE_CATALOG" with dependency appstream: YES
Checking for function "as_metadata_components_to_catalog" with dependency appstream: YES
Checking if "as_gstring_replace() has four arguments" with dependency appstream: links: YES
Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.10
Run-time dependency xmlb found: YES 0.3.14
Run-time dependency gio-unix-2.0 found: YES 2.78.1
Run-time dependency gmodule-2.0 found: YES 2.78.1
Run-time dependency gtk4 found: YES 4.13.3
Run-time dependency glib-2.0 found: YES 2.78.1
Run-time dependency json-glib-1.0 found: YES 1.8.0
Library m found: YES
Run-time dependency libsoup-3.0 found: YES 3.4.4
Run-time dependency libadwaita-1 found: YES 1.4.0
Header "glib.h" has symbol "G_FORMAT_SIZE_ONLY_VALUE" with dependency glib-2.0: YES
Dependency sysprof-capture-4 skipped: feature sysprof disabled
Run-time dependency gsettings-desktop-schemas found: YES 45.0
Run-time dependency polkit-gobject-1 found: YES 124
Run-time dependency packagekit-glib2 found: YES 1.2.7
Run-time dependency fwupd found: YES 1.9.9
Run-time dependency flatpak found: YES 1.12.2
Run-time dependency ostree-1 found: YES 2023.7
Run-time dependency malcontent-0 found: YES 0.11.1
Run-time dependency gudev-1.0 found: YES 238
Executing subproject gnome-pwa-list
gnome-pwa-list| Project name: gnome-pwa-list
gnome-pwa-list| Project version: undefined
gnome-pwa-list| Program python3 found: YES (/usr/bin/python3)
gnome-pwa-list| Build targets in project: 0
gnome-pwa-list| Subproject gnome-pwa-list finished.
Configuring config.h using configuration
Program msgfmt found: YES (/usr/bin/msgfmt)
Program appstreamcli found: YES (/usr/bin/appstreamcli)
Configuring org.gnome.Software.desktop using configuration
Build-time dependency gio-2.0 found: YES 2.78.1
Program /usr/bin/glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Configuring org.gnome.software.external-appstream.policy.in using configuration
Dependency glib-2.0 found: YES 2.78.1 (cached)
Program /usr/bin/glib-mkenums found: YES (/usr/bin/glib-mkenums)
Dependency glib-2.0 found: YES 2.78.1 (cached)
Program /usr/bin/glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program tar found: YES (/usr/bin/tar)
Dependency gio-2.0 found: YES 2.78.1 (cached)
Program /usr/bin/gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Program gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Run-time dependency glib-testing-0 found: YES 0.1.1
Dependency gio-2.0 found: YES 2.78.1 (cached)
Program /usr/bin/glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Dependency gio-2.0 found: YES 2.78.1 (cached)
Program /usr/bin/gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Dependency glib-2.0 found: YES 2.78.1 (cached)
Program /usr/bin/glib-mkenums found: YES (/usr/bin/glib-mkenums)
Dependency glib-2.0 found: YES 2.78.1 (cached)
Program /usr/bin/glib-mkenums found: YES (/usr/bin/glib-mkenums)
Dependency gio-2.0 found: YES 2.78.1 (cached)
Program /usr/bin/gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Dependency gio-2.0 found: YES 2.78.1 (cached)
Program /usr/bin/gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Configuring org.gnome.Software.service using configuration
Configuring org.gnome.Software.desktop.tmp using configuration
Program xsltproc found: YES (/usr/bin/xsltproc)
Configuring org.freedesktop.PackageKit.service using configuration
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Program gtkdoc-scan found: YES (/usr/bin/gtkdoc-scan)
Program gtkdoc-scangobj found: YES (/usr/bin/gtkdoc-scangobj)
Program gtkdoc-mkdb found: YES (/usr/bin/gtkdoc-mkdb)
Program gtkdoc-mkhtml found: YES (/usr/bin/gtkdoc-mkhtml)
Program gtkdoc-fixxref found: YES (/usr/bin/gtkdoc-fixxref)
Build targets in project: 140
NOTICE: Future-deprecated features used:
* 0.64.0: {'copy arg in configure_file'}
gnome-software 45.1
Subprojects
gnome-pwa-list : YES
User defined options
auto_features : enabled
bindir : /usr/bin
buildtype : plain
datadir : /usr/share
includedir : /usr/include
infodir : /usr/share/info
libdir : /usr/lib64
libexecdir : /usr/libexec
localedir : /usr/share/locale
localstatedir : /var
mandir : /usr/share/man
prefix : /usr
sbindir : /usr/sbin
sharedstatedir : /var/lib
sysconfdir : /etc
wrap_mode : nodownload
default_featured_apps : true
eos_updater : false
external_appstream : true
flatpak : true
fwupd : true
gtk_doc : true
gudev : true
hardcoded_foss_webapps : true
hardcoded_proprietary_webapps: false
malcontent : true
man : true
mogwai : false
packagekit : true
packagekit_autoremove : true
polkit : true
rpm_ostree : false
snap : false
soup2 : false
sysprof : disabled
tests : true
webapps : true