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 784098 - rhythmbox fails to build against totem-pl-parser 3.25.3
rhythmbox fails to build against totem-pl-parser 3.25.3
Status: RESOLVED FIXED
Product: totem-pl-parser
Classification: Core
Component: General
3.25.x
Other Linux
: Normal normal
: ---
Assigned To: totem-pl-parser-maint
totem-pl-parser-maint
Depends on:
Blocks:
 
 
Reported: 2017-06-22 15:59 UTC by Dominique Leuenberger
Modified: 2017-06-22 16:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Re-add TOTEM_PL_PARSER_CHECK_VERSION macro (3.55 KB, patch)
2017-06-22 16:13 UTC, Bastien Nocera
none Details | Review
Use totem-pl-parser-features.h.in as base to generate the real header (1.13 KB, patch)
2017-06-22 16:21 UTC, Dominique Leuenberger
none Details | Review
build: Fix missing TOTEM_PL_PARSER_CHECK_VERSION macro (1.24 KB, patch)
2017-06-22 16:34 UTC, Bastien Nocera
committed Details | Review

Description Dominique Leuenberger 2017-06-22 15:59:33 UTC
totem-pl-parser 3.25.3 has been released and rhythmbox fails to build against this new version:

rb-playlist-source.c:571:34: error: missing binary operator before token "("
 #if TOTEM_PL_PARSER_CHECK_VERSION(2,29,1)
                                  ^
rb-playlist-source.c: In function 'rb_playlist_source_save_playlist':
rb-playlist-source.c:664:34: error: missing binary operator before token "("
 #if TOTEM_PL_PARSER_CHECK_VERSION(2,29,1)
                                  ^
rb-playlist-source.c:689:34: error: missing binary operator before token "("
 #if TOTEM_PL_PARSER_CHECK_VERSION(2,29,1)
Comment 1 Dominique Leuenberger 2017-06-22 16:04:04 UTC
I actually move that from rhythmbox to totem-pl-parser, as I think we lost the macro

TOTEM_PL_PARSER_CHECK_VERSION

there
Comment 2 Dominique Leuenberger 2017-06-22 16:09:38 UTC
the generated features.h seems not to be based on features.h.in at all anymore:

> cat /usr/include/totem-pl-parser/1/plparser/totem-pl-parser-features.h 
/*
 * Autogenerated by the Meson build system.
 * Do not edit, your changes will be lost.
 */

#pragma once

#define TOTEM_PL_PARSER_VERSION_MAJOR 3

#define TOTEM_PL_PARSER_VERSION_MICRO 3

#define TOTEM_PL_PARSER_VERSION_MINOR 25
Comment 3 Bastien Nocera 2017-06-22 16:13:05 UTC
Created attachment 354254 [details] [review]
build: Re-add TOTEM_PL_PARSER_CHECK_VERSION macro

Since the switch to Meson, we are generating totem-pl-parser-features.h
"by hand", listing the constants it should contain, instead of replacing
a number of digits in a ".in" file. This made us lose the
TOTEM_PL_PARSER_CHECK_VERSION helper macro, so re-add it to the main
header file.
Comment 4 Dominique Leuenberger 2017-06-22 16:17:57 UTC
woulnd't it be 'neater' to just specify the input: to configure_file?
Comment 5 Dominique Leuenberger 2017-06-22 16:21:08 UTC
Created attachment 354255 [details] [review]
Use totem-pl-parser-features.h.in as base to generate the real header
Comment 6 Bastien Nocera 2017-06-22 16:34:40 UTC
Created attachment 354257 [details] [review]
build: Fix missing TOTEM_PL_PARSER_CHECK_VERSION macro

Use totem-pl-parser-features.h.in as base to generate
totem-pl-parser-features.h so that TOTEM_PL_PARSER_CHECK_VERSION is
present.
Comment 7 Bastien Nocera 2017-06-22 16:35:59 UTC
Attachment 354257 [details] pushed as cd8cec1 - build: Fix missing TOTEM_PL_PARSER_CHECK_VERSION macro