GNOME Bugzilla – Bug 725264
gobject-introspection git repository contains two files that differ only by case
Last modified: 2015-02-07 17:02:45 UTC
The master branch of gobject-introspection contains the following files: tests/scanner/Regress-1.0-C-expected/Regress.Intset.page tests/scanner/Regress-1.0-C-expected/Regress.IntSet.page This renders gobject-introspection unbuildable on filesystems that don't distinguish case -- at least in jhbuild which refuses to switch branches on a dirty working tree.
I've noticed this is due to two types in regress.h, RegressIntSet and RegressIntset, one of which is a typedef to the other; I suppose that's on purpose, to test whether the scanner works properly with typedefs. Would the test's objective still be accomplished if the two names differed by a letter, rather than by case? That still leaves the problem that on filesystems that don't distinguish case, you won't be able to build a full set of docs if you have two symbols in your library that differ only by case -- or should that be disallowed because we want GObject Introspection to work on Visual BASIC?
Created attachment 272050 [details] [review] Patch to stop JHbuild from complaining
(That last remark about Visual BASIC was tongue-in-cheek. I forgot to add a smiley.) Here's a patch. I will point out that it only fixes the symptom and not the problem, but I'd appreciate if it could be committed anyway, because JHbuild erroring out on gobject-introspection every single time is driving me nuts.
If someone has a moment, could I please get some review on this patch? This error makes for quite the buzzkill trying to jhbuild gnome on OSX.
Review of attachment 272050 [details] [review]: It's expected at the moment that we unify them, and a bug that we generate docs for both. It's also a bug in the library to use different case for the aliases. So this patch looks good, and thanks for the excellent commit message!
Thanks! I really appreciate this.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]