Dominique Leuenberger
99da027da2
- Add glib2-codegen-headers.patch: gdbus-codegen: Fix header include in the body file (bgo#795802). OBS-URL: https://build.opensuse.org/request/show/609850 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=363
15 lines
545 B
Diff
15 lines
545 B
Diff
diff --git a/gio/gdbus-2.0/codegen/codegen_main.py b/gio/gdbus-2.0/codegen/codegen_main.py
|
|
index 9d9099f..1cfe7c1 100755
|
|
--- a/gio/gdbus-2.0/codegen/codegen_main.py
|
|
+++ b/gio/gdbus-2.0/codegen/codegen_main.py
|
|
@@ -209,7 +209,7 @@ def codegen_main():
|
|
print_error('Using --body requires --output')
|
|
|
|
c_file = args.output
|
|
- header_name = os.path.splitext(c_file)[0] + '.h'
|
|
+ header_name = os.path.splitext(os.path.basename(c_file))[0] + '.h'
|
|
|
|
all_ifaces = []
|
|
for fname in args.files + args.xml_files:
|
|
|