glib2/glib2-gdbus-codegen-version.patch

34 lines
1.5 KiB
Diff

Index: glib-2.56.2/gio/gdbus-2.0/codegen/codegen.py
===================================================================
--- glib-2.56.2.orig/gio/gdbus-2.0/codegen/codegen.py 2018-08-17 02:03:20.000000000 +0200
+++ glib-2.56.2/gio/gdbus-2.0/codegen/codegen.py 2018-08-17 10:46:31.576471772 +0200
@@ -29,7 +29,7 @@ from . import dbustypes
from .utils import print_error
LICENSE_STR = '''/*
- * Generated by gdbus-codegen {!s} from {!s}. DO NOT EDIT.
+ * Generated by gdbus-codegen. DO NOT EDIT.
*
* The license of this code is the same as for the D-Bus interface description
* it was derived from.
@@ -67,8 +67,7 @@ class HeaderCodeGenerator:
# ----------------------------------------------------------------------------------------------------
def generate_header_preamble(self):
- basenames = ', '.join(self.input_files_basenames)
- self.outfile.write(LICENSE_STR.format(config.VERSION, basenames))
+ self.outfile.write(LICENSE_STR)
self.outfile.write('\n')
if self.use_pragma:
@@ -627,8 +626,7 @@ class CodeGenerator:
# ----------------------------------------------------------------------------------------------------
def generate_body_preamble(self):
- basenames = ', '.join(self.input_files_basenames)
- self.outfile.write(LICENSE_STR.format(config.VERSION, basenames))
+ self.outfile.write(LICENSE_STR)
self.outfile.write('\n')
self.outfile.write('#ifdef HAVE_CONFIG_H\n'
'# include "config.h"\n'