After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793282 - tracker-data-update.c fails to compile when --disable-fts is given
tracker-data-update.c fails to compile when --disable-fts is given
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2018-02-07 21:01 UTC by Marcos Simental
Modified: 2018-02-13 00:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix the bug (1.82 KB, patch)
2018-02-07 21:01 UTC, Marcos Simental
committed Details | Review

Description Marcos Simental 2018-02-07 21:01:07 UTC
Created attachment 368100 [details] [review]
patch to fix the bug

when trying to compile tracker (reproduced with version 2.0.3) with the --disable-fts option, the following error appears:

[...]
tracker-data-update.c: In function 'tracker_data_update_statement_with_uri':
tracker-data-update.c:3175:20: error: 'resource_buffer' undeclared (first use in this function); did you mean 'resource_buffer_free'?
    for (r = 0; r < resource_buffer->types->len; r++) {
                    ^~~~~~~~~~~~~~~
                    resource_buffer_free
[...]
tracker-data-update.c: In function 'tracker_data_update_statement_with_string':
tracker-data-update.c:3340:16: error: 'resource_buffer' undeclared (first use in this function); did you mean 'resource_buffer_free'?
                resource_buffer->subject,
                ^~~~~~~~~~~~~~~
                resource_buffer_free
[...]

This is apparently a miss from the restructure given in 66a6dc913729796ff7e8a69797571712be8fb40f


I'm attaching a patch that fixes the issue.
Comment 1 Carlos Garnacho 2018-02-13 00:28:35 UTC
Patch has been pushed to master as commit b8c121c33f. Thanks!