GNOME Bugzilla – Bug 791273
Explicitly specify the Gepub API version that should be imported
Last modified: 2017-12-26 19:16:13 UTC
Having the API version explicitly specified helps when one has multiple Gepub APIs installed parallely to work on older branches. For example, I am currently working on some RHEL 7 bugs and the branch I am working on, gnome-3-22, needs Gepub 0.4, while newer branches require 0.5. So, I have both 0.4 and 0.5 installed in parallel, which leads to: Gjs-Message: JS WARNING: [resource:///org/gnome/Documents/js/epubview.js 23]: Requiring Gepub but it has 2 versions available; use imports.gi.versions to pick one (gnome-3-22 isn't *that* old, and since this is a young library, API bumps are to be expected.)
Created attachment 365037 [details] [review] main: Explicitly specify the Gepub API version
Review of attachment 365037 [details] [review]: LGTM
Comment on attachment 365037 [details] [review] main: Explicitly specify the Gepub API version Pushed to master.
I must say that this works in my computer, but wouldn't it be necessary to check if the libgepub ('>= 0.5') exists in the system when using either autotools or meson? (or at least in GIR generation).