glib: fix 2.56 build with python@2 (#17144)
* glib: fix 2.56 build with python@2 * flake8
This commit is contained in:
		| @@ -141,7 +141,15 @@ def configure_args(self): | ||||
|             args.append('--with-libiconv=maybe') | ||||
|         else: | ||||
|             args.append('--with-libiconv=gnu') | ||||
|         if 'tracing=dtrace' in self.spec or 'tracing=systemtap' in self.spec: | ||||
|         if self.spec.satisfies('@2.56:'): | ||||
|             for value in ('dtrace', 'systemtap'): | ||||
|                 if ('tracing=' + value) in self.spec: | ||||
|                     args.append('--enable-' + value) | ||||
|                 else: | ||||
|                     args.append('--disable-' + value) | ||||
|         else: | ||||
|             if ('tracing=dtrace' in self.spec | ||||
|                     or 'tracing=systemtap' in self.spec): | ||||
|                 args.append('--enable-tracing') | ||||
|             else: | ||||
|                 args.append('--disable-tracing') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Seth R. Johnson
					Seth R. Johnson