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 781572 - Produced tarballs break the Vala preprocessor
Produced tarballs break the Vala preprocessor
Status: RESOLVED FIXED
Product: gnome-games
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2017-04-21 06:03 UTC by Adrien Plazas
Modified: 2017-05-03 08:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add coding style for C (3.76 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Port StandardGamepadAxis to C (5.73 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Port StandardGamepadButton to C (8.67 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Port RawGamepad to C (9.31 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Port RawGamepadMonitor to C (6.34 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Port LinuxRawGamepad to C (24.03 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Drop now unused GamesRawGamepadIface (841 bytes, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Drop now unused libevdev.vapi (2.23 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Port LinuxRawGamepadMonitor to C (14.03 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Port LinuxRawGamepadMonitor fallback to C (7.27 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Drop now unused GamesRawGamepadMonitorIface (1.07 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
gamepad: Drop now unused linux-raw-gamepad.vapi (1.50 KB, patch)
2017-04-27 10:39 UTC, Adrien Plazas
none Details | Review
Add coding style for C (3.76 KB, patch)
2017-04-27 18:13 UTC, Adrien Plazas
none Details | Review
gamepad: Port StandardGamepadAxis to C (5.74 KB, patch)
2017-04-27 18:13 UTC, Adrien Plazas
none Details | Review
gamepad: Port StandardGamepadButton to C (8.68 KB, patch)
2017-04-27 18:13 UTC, Adrien Plazas
none Details | Review
gamepad: Port RawGamepad to C (9.32 KB, patch)
2017-04-27 18:13 UTC, Adrien Plazas
none Details | Review
gamepad: Port RawGamepadMonitor to C (6.35 KB, patch)
2017-04-27 18:14 UTC, Adrien Plazas
none Details | Review
gamepad: Port LinuxRawGamepad to C (24.04 KB, patch)
2017-04-27 18:14 UTC, Adrien Plazas
none Details | Review
gamepad: Drop now unused GamesRawGamepadIface (841 bytes, patch)
2017-04-27 18:14 UTC, Adrien Plazas
none Details | Review
gamepad: Drop now unused libevdev.vapi (2.23 KB, patch)
2017-04-27 18:14 UTC, Adrien Plazas
none Details | Review
gamepad: Port LinuxRawGamepadMonitor to C (14.04 KB, patch)
2017-04-27 18:14 UTC, Adrien Plazas
none Details | Review
gamepad: Port LinuxRawGamepadMonitor fallback to C (7.28 KB, patch)
2017-04-27 18:14 UTC, Adrien Plazas
none Details | Review
gamepad: Drop now unused GamesRawGamepadMonitorIface (1.07 KB, patch)
2017-04-27 18:14 UTC, Adrien Plazas
none Details | Review
gamepad: Drop now unused linux-raw-gamepad.vapi (1.50 KB, patch)
2017-04-27 18:14 UTC, Adrien Plazas
none Details | Review
Add coding style for C (3.76 KB, patch)
2017-05-03 07:28 UTC, Adrien Plazas
committed Details | Review
gamepad: Port StandardGamepadAxis to C (5.74 KB, patch)
2017-05-03 07:28 UTC, Adrien Plazas
committed Details | Review
gamepad: Port StandardGamepadButton to C (8.68 KB, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Port RawGamepad to C (9.52 KB, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Port RawGamepadMonitor to C (6.99 KB, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Port LinuxRawGamepad to C (24.04 KB, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Drop now unused GamesRawGamepadIface (841 bytes, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Port LinuxRawGamepadMonitor to C (13.92 KB, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Port LinuxRawGamepadMonitor fallback to C (7.15 KB, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Drop now unused GamesRawGamepadMonitorIface (1.07 KB, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Port GamepadInputType to C (4.20 KB, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Port GamepadMappingError to C (3.38 KB, patch)
2017-05-03 07:29 UTC, Adrien Plazas
committed Details | Review
gamepad: Port GamepadMappedEvent to C (4.44 KB, patch)
2017-05-03 07:30 UTC, Adrien Plazas
committed Details | Review
gamepad: Make GamepadDPad class a struct (1.56 KB, patch)
2017-05-03 07:30 UTC, Adrien Plazas
committed Details | Review
gamepad: Port GamepadDPad to C (3.90 KB, patch)
2017-05-03 07:30 UTC, Adrien Plazas
committed Details | Review
gamepad: Port GamepadMapping to C (24.97 KB, patch)
2017-05-03 07:30 UTC, Adrien Plazas
committed Details | Review
gamepad: Port GamepadMappingsManager to C (13.13 KB, patch)
2017-05-03 07:30 UTC, Adrien Plazas
committed Details | Review
gamepad: Port Gamepad to C (15.56 KB, patch)
2017-05-03 07:30 UTC, Adrien Plazas
committed Details | Review
gamepad: Port GamepadMonitor to C (11.77 KB, patch)
2017-05-03 07:30 UTC, Adrien Plazas
committed Details | Review
gamepad: Remove unused VAPIs (8.80 KB, patch)
2017-05-03 07:30 UTC, Adrien Plazas
committed Details | Review

Description Adrien Plazas 2017-04-21 06:03:49 UTC
The produced tarballs include C files compiled from the Vala sources: this doesn't work with Vala macros as once compiled, the macros are resolved and can't be resolved again later by compiling the intermediate C code.

Even though the tarballs contain the Vala source and the generated C, only the C get compiled. Two solutions arise:
- avoid shipping C files and always compile from Vala by rewriting part of the build system
- avoid using Vala macros by rewriting part of the code as C

The former is cleaner but probably more complex. Given the depreciation of Vala in GNOME, porting part of the application to C could make sense.
Comment 1 Adrien Plazas 2017-04-27 10:39:00 UTC
Created attachment 350527 [details] [review]
Add coding style for C
Comment 2 Adrien Plazas 2017-04-27 10:39:04 UTC
Created attachment 350528 [details] [review]
gamepad: Port StandardGamepadAxis to C

This will help to port part of the gamepad handling to C to avoid using
Vala macros.
Comment 3 Adrien Plazas 2017-04-27 10:39:09 UTC
Created attachment 350529 [details] [review]
gamepad: Port StandardGamepadButton to C

This will help to port part of the gamepad handling to C to avoid using
Vala macros.
Comment 4 Adrien Plazas 2017-04-27 10:39:15 UTC
Created attachment 350530 [details] [review]
gamepad: Port RawGamepad to C

This will help to port part of the gamepad handling to C to avoid using
Vala macros.
Comment 5 Adrien Plazas 2017-04-27 10:39:21 UTC
Created attachment 350531 [details] [review]
gamepad: Port RawGamepadMonitor to C

This will help to port part of the gamepad handling to C to avoid using
Vala macros.
Comment 6 Adrien Plazas 2017-04-27 10:39:27 UTC
Created attachment 350532 [details] [review]
gamepad: Port LinuxRawGamepad to C

This will help to port part of the gamepad handling to C to avoid using
Vala macros.
Comment 7 Adrien Plazas 2017-04-27 10:39:32 UTC
Created attachment 350533 [details] [review]
gamepad: Drop now unused GamesRawGamepadIface
Comment 8 Adrien Plazas 2017-04-27 10:39:37 UTC
Created attachment 350534 [details] [review]
gamepad: Drop now unused libevdev.vapi
Comment 9 Adrien Plazas 2017-04-27 10:39:42 UTC
Created attachment 350535 [details] [review]
gamepad: Port LinuxRawGamepadMonitor to C

This will help to port part of the gamepad handling to C to avoid using
Vala macros.
Comment 10 Adrien Plazas 2017-04-27 10:39:46 UTC
Created attachment 350536 [details] [review]
gamepad: Port LinuxRawGamepadMonitor fallback to C

This will help to port part of the gamepad handling to C to avoid using
Vala macros.
Comment 11 Adrien Plazas 2017-04-27 10:39:52 UTC
Created attachment 350537 [details] [review]
gamepad: Drop now unused GamesRawGamepadMonitorIface
Comment 12 Adrien Plazas 2017-04-27 10:39:57 UTC
Created attachment 350538 [details] [review]
gamepad: Drop now unused linux-raw-gamepad.vapi
Comment 13 Adrien Plazas 2017-04-27 18:13:39 UTC
Created attachment 350577 [details] [review]
Add coding style for C
Comment 14 Adrien Plazas 2017-04-27 18:13:45 UTC
Created attachment 350578 [details] [review]
gamepad: Port StandardGamepadAxis to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 15 Adrien Plazas 2017-04-27 18:13:51 UTC
Created attachment 350579 [details] [review]
gamepad: Port StandardGamepadButton to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 16 Adrien Plazas 2017-04-27 18:13:57 UTC
Created attachment 350580 [details] [review]
gamepad: Port RawGamepad to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 17 Adrien Plazas 2017-04-27 18:14:04 UTC
Created attachment 350581 [details] [review]
gamepad: Port RawGamepadMonitor to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 18 Adrien Plazas 2017-04-27 18:14:10 UTC
Created attachment 350582 [details] [review]
gamepad: Port LinuxRawGamepad to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 19 Adrien Plazas 2017-04-27 18:14:17 UTC
Created attachment 350583 [details] [review]
gamepad: Drop now unused GamesRawGamepadIface
Comment 20 Adrien Plazas 2017-04-27 18:14:25 UTC
Created attachment 350584 [details] [review]
gamepad: Drop now unused libevdev.vapi
Comment 21 Adrien Plazas 2017-04-27 18:14:31 UTC
Created attachment 350585 [details] [review]
gamepad: Port LinuxRawGamepadMonitor to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 22 Adrien Plazas 2017-04-27 18:14:37 UTC
Created attachment 350586 [details] [review]
gamepad: Port LinuxRawGamepadMonitor fallback to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 23 Adrien Plazas 2017-04-27 18:14:44 UTC
Created attachment 350588 [details] [review]
gamepad: Drop now unused GamesRawGamepadMonitorIface
Comment 24 Adrien Plazas 2017-04-27 18:14:50 UTC
Created attachment 350589 [details] [review]
gamepad: Drop now unused linux-raw-gamepad.vapi
Comment 25 Adrien Plazas 2017-05-03 07:28:50 UTC
Created attachment 350929 [details] [review]
Add coding style for C
Comment 26 Adrien Plazas 2017-05-03 07:28:54 UTC
Created attachment 350930 [details] [review]
gamepad: Port StandardGamepadAxis to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 27 Adrien Plazas 2017-05-03 07:29:00 UTC
Created attachment 350931 [details] [review]
gamepad: Port StandardGamepadButton to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 28 Adrien Plazas 2017-05-03 07:29:05 UTC
Created attachment 350932 [details] [review]
gamepad: Port RawGamepad to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 29 Adrien Plazas 2017-05-03 07:29:10 UTC
Created attachment 350933 [details] [review]
gamepad: Port RawGamepadMonitor to C

Also port RawGamepadCallback to C.

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 30 Adrien Plazas 2017-05-03 07:29:15 UTC
Created attachment 350934 [details] [review]
gamepad: Port LinuxRawGamepad to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 31 Adrien Plazas 2017-05-03 07:29:21 UTC
Created attachment 350935 [details] [review]
gamepad: Drop now unused GamesRawGamepadIface
Comment 32 Adrien Plazas 2017-05-03 07:29:26 UTC
Created attachment 350936 [details] [review]
gamepad: Port LinuxRawGamepadMonitor to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 33 Adrien Plazas 2017-05-03 07:29:31 UTC
Created attachment 350937 [details] [review]
gamepad: Port LinuxRawGamepadMonitor fallback to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 34 Adrien Plazas 2017-05-03 07:29:36 UTC
Created attachment 350938 [details] [review]
gamepad: Drop now unused GamesRawGamepadMonitorIface
Comment 35 Adrien Plazas 2017-05-03 07:29:42 UTC
Created attachment 350939 [details] [review]
gamepad: Port GamepadInputType to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.

Also makes GamepadInputType.INVALID the first value, hence the value
associated to 0, so it act as a safe default.
Comment 36 Adrien Plazas 2017-05-03 07:29:55 UTC
Created attachment 350940 [details] [review]
gamepad: Port GamepadMappingError to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 37 Adrien Plazas 2017-05-03 07:30:00 UTC
Created attachment 350941 [details] [review]
gamepad: Port GamepadMappedEvent to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 38 Adrien Plazas 2017-05-03 07:30:05 UTC
Created attachment 350942 [details] [review]
gamepad: Make GamepadDPad class a struct

This better reflects the usage of this type.
Comment 39 Adrien Plazas 2017-05-03 07:30:10 UTC
Created attachment 350943 [details] [review]
gamepad: Port GamepadDPad to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 40 Adrien Plazas 2017-05-03 07:30:16 UTC
Created attachment 350944 [details] [review]
gamepad: Port GamepadMapping to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 41 Adrien Plazas 2017-05-03 07:30:21 UTC
Created attachment 350945 [details] [review]
gamepad: Port GamepadMappingsManager to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 42 Adrien Plazas 2017-05-03 07:30:26 UTC
Created attachment 350946 [details] [review]
gamepad: Port Gamepad to C

This will help to port part of the gamepad handling to C to avoid using
the Vala preprocessor.
Comment 43 Adrien Plazas 2017-05-03 07:30:31 UTC
Created attachment 350947 [details] [review]
gamepad: Port GamepadMonitor to C

Also port GamepadCallback to C.

This finishes porting the gamepad handling to C and, by extenstion,
stops using the Vala preprocessor.
Comment 44 Adrien Plazas 2017-05-03 07:30:36 UTC
Created attachment 350948 [details] [review]
gamepad: Remove unused VAPIs
Comment 45 Adrien Plazas 2017-05-03 08:21:56 UTC
Attachment 350929 [details] pushed as df04b2b - Add coding style for C
Attachment 350930 [details] pushed as 851b8ac - gamepad: Port StandardGamepadAxis to C
Attachment 350931 [details] pushed as 8b2997e - gamepad: Port StandardGamepadButton to C
Attachment 350932 [details] pushed as d3e94be - gamepad: Port RawGamepad to C
Attachment 350933 [details] pushed as f947a96 - gamepad: Port RawGamepadMonitor to C
Attachment 350934 [details] pushed as 1c85038 - gamepad: Port LinuxRawGamepad to C
Attachment 350935 [details] pushed as 623aea2 - gamepad: Drop now unused GamesRawGamepadIface
Attachment 350936 [details] pushed as 976ea1b - gamepad: Port LinuxRawGamepadMonitor to C
Attachment 350937 [details] pushed as fdc14dd - gamepad: Port LinuxRawGamepadMonitor fallback to C
Attachment 350938 [details] pushed as 84c320f - gamepad: Drop now unused GamesRawGamepadMonitorIface
Attachment 350939 [details] pushed as e344697 - gamepad: Port GamepadInputType to C
Attachment 350940 [details] pushed as 19b861d - gamepad: Port GamepadMappingError to C
Attachment 350941 [details] pushed as 4400cfa - gamepad: Port GamepadMappedEvent to C
Attachment 350942 [details] pushed as b8f3cc6 - gamepad: Make GamepadDPad class a struct
Attachment 350943 [details] pushed as e83e1b6 - gamepad: Port GamepadDPad to C
Attachment 350944 [details] pushed as 6aca41c - gamepad: Port GamepadMapping to C
Attachment 350945 [details] pushed as 0e5321c - gamepad: Port GamepadMappingsManager to C
Attachment 350946 [details] pushed as 99d30bd - gamepad: Port Gamepad to C
Attachment 350947 [details] pushed as 7c9c277 - gamepad: Port GamepadMonitor to C
Attachment 350948 [details] pushed as 2db668f - gamepad: Remove unused VAPIs