[gobject-introspection/wip/meson] meson: Sort globbed files before printing
- From: Nirbheek Chauhan <nirbheekc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/meson] meson: Sort globbed files before printing
- Date: Thu, 7 Dec 2017 14:24:24 +0000 (UTC)
commit a548dc65b6ae6aae0572b58c02e486e349c22733
Author: Nirbheek Chauhan <nirbheek centricular com>
Date: Thu Dec 7 19:51:41 2017 +0530
meson: Sort globbed files before printing
This ensures stability in the output, because the underlying
implementation uses readdir() and the output will depend on the
filesystem.
This also works around a bug where g-ir-scanner's source scanner was
#include-ing gmarshal.h before any other header which resulted in all
marshaling symbols to be skipped from the introspection because of
syntax errors.
gir/meson.build | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gir/meson.build b/gir/meson.build
index e1d0119..52838f2 100644
--- a/gir/meson.build
+++ b/gir/meson.build
@@ -62,7 +62,10 @@ endif
globber = '''
from glob import glob
-for f in glob('@0@'):
+# Sort the glob for stable results. Also ensures that gmarshal.h is not
+# #include-ed by scannerparser.y first because it does not include glib.h
+# itself, which leaves several defines unresolved.
+for f in sorted(glob('@0@')):
print(f)
'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]