GNOME Bugzilla – Bug 766460
Use GJS M4 macros from autoconf-archive
Last modified: 2017-08-23 09:35:53 UTC
I added some GJS M4 macros to autoconf-archive [1], so I'd like to port gnome-documents to use them, as an example for other projects to follow. Here's a patch that uses the macros to check for all the GIRs required by GJS, preceded by a cleanup patch that removes unnecessary imports (at least one GIR was imported but not needed anywhere!) [1] https://github.com/peti/autoconf-archive/commit/5681cc41bafa702aee1f50161e37d4f34b0216da
Created attachment 327907 [details] [review] js: Remove unused imports While looking for GI imports to check at configure time, I found that gi.Soup was imported but never used anywhere. As long as I'm removing that, I went ahead and removed all the other unused imports.
Created attachment 327908 [details] [review] build: Check for GJS GIRs with new macros This uses the new AX_PROG_GJS, AX_CHECK_GIRS_GJS, and AX_CHECK_GIR_SYMBOLS_GJS macros in autoconf-archive to check for the GJS path and the necessary GIR files in configure.ac
Created attachment 327909 [details] [review] Add GJS macros These are useful for Gnome's Javascript applications.
And the last one is a patch for m4-common, to get the new macros into jhbuild.
Review of attachment 327907 [details] [review]: Looks good, thanks for this!
Review of attachment 327908 [details] [review]: Looks good
Review of attachment 327909 [details] [review]: Looks good
Thanks for the review, pushed!
At this time there are only two of three patches in master. The third one is missing, is this intended?
The third patch is for the m4-common repository, it's been pushed as well.
Ok! Sorry about the noise.
Created attachment 357793 [details] [review] 3.22, 3.24, 3.26: Add m4-common as a dependency of gnome-documents Don't we also need to add m4-common as a dependency of gnome-documents?
Makes sense to me.
Thanks, Philip. Pushed to master.