GNOME Bugzilla – Bug 697642
g-ir-scanner doesn't generate ".exe" extension
Last modified: 2015-02-07 16:54:11 UTC
Created attachment 241059 [details] [review] Fix a typo I read giscanner/dumper.py and noticed that the script has a typo. (I didn't try it on Windows. Sorry.) Here is a target code: ... if os.name == 'nt': ext = 'exe' else: ext = '' bin_path = self._generate_tempfile(tmpdir, ext) ... def _generate_tempfile(self, tmpdir, suffix=''): tmpl = '%s-%s%s' % (self._options.namespace_name, self._options.namespace_version, suffix) ... _generate_tempfile() uses suffix without extension suffix "." but caller just passes "exe" not ".exe". Here is a code in the same file: ... if self._pkgconfig_msvc_flags: o_path = self._generate_tempfile(tmpdir, '.obj') else: o_path = self._generate_tempfile(tmpdir, '.o') ... They pass ".".
Hi Kouhei, I think it does make sense to have a '.exe' extension for the dumper program that is built during the creation of the .gir files-however just FYI that script is able to be run without problems even with a Visual Studio build of G-I (including the .gir files, of course). Might want to ask the G-I maintainers to see whether we can get this in though, to make things more consistent on Windows. Thanks for the notes. With blessings.
*** This bug has been marked as a duplicate of bug 724884 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]