GNOME Bugzilla – Bug 704864
scanner: Consistently use realpath() on input filenames
Last modified: 2015-02-07 16:58:36 UTC
The scanner has some logic to compare the filenames specified on the command line against files it will parse. For the latter, it uses g_realpath(). With this patch, we also use g_realpath() on the command line arguments. This fixes g-i when used inside jhbuild in a gnome-ostree VM, which has a symbolic link /home -> /sysroot/home. This caused a realpath mismatch, and then we'd ignore the input source files. It'd be best to get out of the realpath business entirely...but a patch to do that seems more likely to break.
Created attachment 250111 [details] [review] scanner: Consistently use realpath() on input filenames
Confirmed this fixes a similar issue for someone else.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]