Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for pool-leap-15.6:s390x
openSUSE:Leap:15.1:Update
sunpinyin
sunpinyin-scons-on-py3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sunpinyin-scons-on-py3.patch of Package sunpinyin
Index: sunpinyin-3.0.0-rc1/SConstruct =================================================================== --- sunpinyin-3.0.0-rc1.orig/SConstruct +++ sunpinyin-3.0.0-rc1/SConstruct @@ -1,6 +1,7 @@ import platform import os import sys +import functools version = "2.0.4" @@ -227,7 +228,7 @@ def CreateEnvironment(): def PassVariables(envvar, env): for (x, y) in envvar: if x in os.environ: - print 'Warning: you\'ve set %s in the environmental variable!' % x + print ('Warning: you\'ve set %s in the environmental variable!' % x) env[y] = os.environ[x] env = CreateEnvironment() @@ -429,7 +430,7 @@ env.Substfile('sunpinyin-2.0.pc.in', SUB '@PREFIX@': env['PREFIX'], '@LIBDIR@': env['LIBDIR'], '@VERSION@': version, - '@CFLAGS@': reduce(lambda a, b: a + ' ' + b, + '@CFLAGS@': functools.reduce(lambda a, b: a + ' ' + b, map(lambda x: '-I$${includedir}' + x[3:], sorted(allinc()))), }) Index: sunpinyin-3.0.0-rc1/src/SConscript =================================================================== --- sunpinyin-3.0.0-rc1.orig/src/SConscript +++ sunpinyin-3.0.0-rc1/src/SConscript @@ -53,7 +53,7 @@ env.Substfile('sunpinyin-dictgen.mk.in', }) env.Command('sunpinyin-dictgen', 'sunpinyin-dictgen.mk', [ Copy("$TARGET", "$SOURCE"), - Chmod("$TARGET", 0755), + Chmod("$TARGET", 0o755), ]) env.Substfile('sunpinyin-dictgen-local.mk.in', SUBST_DICT={ @@ -64,7 +64,7 @@ env.Substfile('sunpinyin-dictgen-local.m }) env.Command('sunpinyin-dictgen-local', 'sunpinyin-dictgen-local.mk', [ Copy("$TARGET", "$SOURCE"), - Chmod("$TARGET", 0755), + Chmod("$TARGET", 0o755), ]) # -*- indent-tabs-mode: nil -*- vim:et:ts=4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor