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 787094 - Port to meson build system
Port to meson build system
Status: RESOLVED OBSOLETE
Product: gnome-photos
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on:
Blocks: 782980 787307
 
 
Reported: 2017-08-31 16:59 UTC by Iñigo Martínez
Modified: 2018-01-23 10:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Updated autotools to use libgd module at subproject directory (2.37 KB, patch)
2017-08-31 17:00 UTC, Iñigo Martínez
none Details | Review
Modified photos-generate-about script (1.51 KB, patch)
2017-08-31 17:05 UTC, Iñigo Martínez
none Details | Review
Port to meson build system (25.97 KB, patch)
2017-08-31 17:18 UTC, Iñigo Martínez
none Details | Review
Remove autotools (91.13 KB, patch)
2017-08-31 17:19 UTC, Iñigo Martínez
none Details | Review
Updated autotools to use libgd module at subproject directory (2.37 KB, patch)
2017-09-05 07:55 UTC, Iñigo Martínez
none Details | Review
Modified photos-generate-about script (1.51 KB, patch)
2017-09-05 07:56 UTC, Iñigo Martínez
none Details | Review
Port to meson build system (25.66 KB, patch)
2017-09-05 07:56 UTC, Iñigo Martínez
none Details | Review
Remove autotools (94.74 KB, patch)
2017-09-05 07:57 UTC, Iñigo Martínez
none Details | Review
Updated autotools to use libgd module at subproject directory (2.42 KB, patch)
2017-09-05 11:37 UTC, Iñigo Martínez
none Details | Review
Modified photos-generate-about script (1.56 KB, patch)
2017-09-05 11:37 UTC, Iñigo Martínez
none Details | Review
Port to meson build system (25.69 KB, patch)
2017-09-05 11:39 UTC, Iñigo Martínez
none Details | Review
Remove autotools (94.79 KB, patch)
2017-09-05 11:39 UTC, Iñigo Martínez
none Details | Review
Move libgd module (2.40 KB, patch)
2017-09-12 17:32 UTC, Iñigo Martínez
none Details | Review
Modify photos-generate-about script (1.56 KB, patch)
2017-09-12 17:33 UTC, Iñigo Martínez
none Details | Review
Port to meson build system (25.93 KB, patch)
2017-09-12 17:35 UTC, Iñigo Martínez
none Details | Review
Remove autotools (95.07 KB, patch)
2017-09-12 17:36 UTC, Iñigo Martínez
none Details | Review

Description Iñigo Martínez 2017-08-31 16:59:19 UTC
Port to meson build system.
Comment 1 Iñigo Martínez 2017-08-31 17:00:21 UTC
Created attachment 358876 [details] [review]
Updated autotools to use libgd module at subproject directory

This patch updates libgd module location from source root to subprojects directory, which helps porting to meson.
Comment 2 Iñigo Martínez 2017-08-31 17:05:23 UTC
Created attachment 358877 [details] [review]
Modified photos-generate-about script

The 'photos-generate-about' script does not fully create the 'body' source code as it doesn't include the header file, which is done through the Makefile file.

This patch modifies the script to fully reate the 'body' by also including the header file, which helps porting to meson.
Comment 3 Iñigo Martínez 2017-08-31 17:18:54 UTC
Created attachment 358880 [details] [review]
Port to meson build system

Patch that adds meson build system along autotools.

It does use a developer version of meson (0.43.0), which includes 'annotate' option support for gdbus-codegen that is used to generate 'photos-thumbnailer-dbus.[ch]' and 'photos-dleyna-renderer-device.[ch]' files.

Although autotools seems to set 'HAVE_SHM_OPEN' define in the config.h file, the guard used for this is based on the 'EGG_COUNTER_DISABLE_SHM' environment variable, which makes the 'shm_open' function mandatory.

Finally, although tests are installed were they are expected to be, and although they seem to work (and pass) here, I'm not totally sure about their environment variable setup, as glib-tap.mk makes (and setups) a lot of things.
Comment 4 Iñigo Martínez 2017-08-31 17:19:50 UTC
Created attachment 358881 [details] [review]
Remove autotools

Some applications are removing autotools to avoid the burden of maintaining two build systems. This patch removes autotools in case it is considered.
Comment 5 Iñigo Martínez 2017-08-31 17:22:38 UTC
Finally, I have created a wip branch[0] to ease it's testing.

Any suggestion would be very much appreciated.

https://git.gnome.org/browse/gnome-photos/log/?h=wip/inigomartinez/meson
Comment 6 Debarshi Ray 2017-08-31 17:25:34 UTC
Thanks for the patches. Since we are in the freezes for GNOME 3.26, it is probably best to merge these early in the next cycle.
Comment 7 Iñigo Martínez 2017-09-05 07:55:49 UTC
Created attachment 359164 [details] [review]
Updated autotools to use libgd module at subproject directory
Comment 8 Iñigo Martínez 2017-09-05 07:56:11 UTC
Created attachment 359165 [details] [review]
Modified photos-generate-about script
Comment 9 Iñigo Martínez 2017-09-05 07:56:29 UTC
Created attachment 359166 [details] [review]
Port to meson build system
Comment 10 Iñigo Martínez 2017-09-05 07:57:20 UTC
Created attachment 359167 [details] [review]
Remove autotools
Comment 11 Iñigo Martínez 2017-09-05 07:59:14 UTC
All the patches concerning meson build port have been updated after the migration of autotools to modern Gettext[0]. Now it uses meson's i18n module to use gettext instead of 'custom_targets' to call 'intltool'.

[0] https://bugzilla.gnome.org/show_bug.cgi?id=787105
Comment 12 Iñigo Martínez 2017-09-05 11:37:15 UTC
Created attachment 359175 [details] [review]
Updated autotools to use libgd module at subproject directory

Included bug URL in the patch.
Comment 13 Iñigo Martínez 2017-09-05 11:37:35 UTC
Created attachment 359176 [details] [review]
Modified photos-generate-about script

Included bug URL in the patch.
Comment 14 Iñigo Martínez 2017-09-05 11:39:33 UTC
Created attachment 359177 [details] [review]
Port to meson build system

- Included bug URL in the patch.
- Bumped the version number.
- Changed the way icons, schemas and desktop files holding directories are passed to the post install script.
Comment 15 Iñigo Martínez 2017-09-05 11:39:53 UTC
Created attachment 359178 [details] [review]
Remove autotools

Included bug URL in the patch.
Comment 16 Iñigo Martínez 2017-09-12 17:32:12 UTC
Created attachment 359649 [details] [review]
Move libgd module

The patch subject has been changed to better express what it does.
Comment 17 Iñigo Martínez 2017-09-12 17:33:06 UTC
Created attachment 359650 [details] [review]
Modify photos-generate-about script

The patch subject has been changed to better express what it does.
Comment 18 Iñigo Martínez 2017-09-12 17:35:05 UTC
Created attachment 359651 [details] [review]
Port to meson build system

The code has been updated to the 3.27.1 version. The version number has also been changed accordingly.

The commit message has also been changed to explain what it is about.
Comment 19 Iñigo Martínez 2017-09-12 17:36:36 UTC
Created attachment 359652 [details] [review]
Remove autotools

The patch has been updated following the changes of the last port to meson build patch update.

The commit message has also been changed to explain what it does and why.
Comment 20 Iñigo Martínez 2017-09-12 17:38:52 UTC
The wip branch[0] has also been updated with all the recent changes.

[0] https://git.gnome.org/browse/gnome-photos/log/?h=wip/inigomartinez/meson
Comment 21 GNOME Infrastructure Team 2018-01-23 10:15:31 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-photos/issues/71.