glib2/glib2-gdbus-codegen-version.patch
Dominique Leuenberger 7aaa90c441 Accepting request 499854 from home:olh:branches:GNOME:Factory
- Remove version string from files generated by gdbus-codegen
  to avoid needless republishing of pkgs depending on glib2-devel
  added glib2-gdbus-codegen-version.patch

OBS-URL: https://build.opensuse.org/request/show/499854
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=332
2017-06-07 13:34:11 +00:00

35 lines
1.5 KiB
Diff

--- a/gio/gdbus-2.0/codegen/codegen.py
+++ b/gio/gdbus-2.0/codegen/codegen.py
@@ -56,12 +56,12 @@ class CodeGenerator:
def generate_intro(self):
self.c.write('/*\n'
- ' * Generated by gdbus-codegen %s. DO NOT EDIT.\n'
+ ' * Generated by gdbus-codegen. DO NOT EDIT.\n'
' *\n'
' * The license of this code is the same as for the source it was derived from.\n'
' */\n'
'\n'
- %(config.VERSION))
+ )
self.c.write('#ifdef HAVE_CONFIG_H\n'
'# include "config.h"\n'
'#endif\n'
@@ -220,14 +220,14 @@ class CodeGenerator:
'\n')
self.h.write('/*\n'
- ' * Generated by gdbus-codegen %s. DO NOT EDIT.\n'
+ ' * Generated by gdbus-codegen. DO NOT EDIT.\n'
' *\n'
' * The license of this code is the same as for the source it was derived from.\n'
' */\n'
'\n'
'#ifndef __%s__\n'
'#define __%s__\n'
- '\n'%(config.VERSION, self.header_guard, self.header_guard))
+ '\n'%(self.header_guard, self.header_guard))
self.h.write('#include <gio/gio.h>\n'
'\n'
'G_BEGIN_DECLS\n'