lua-toluapp/scons-0.98.1-Options-deprecated.patch
Marguerite Su 90be1cc7a1 Accepting request 679086 from home:MargueriteSu:branches:devel:languages:lua
- fix tumbleweed build
- add scons-0.98.1-Options-deprecated.patch
  * Options object has been deprecated since scons 0.98.1
    use newer Variables object if available

OBS-URL: https://build.opensuse.org/request/show/679086
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-toluapp?expand=0&rev=19
2019-02-26 04:04:30 +00:00

18 lines
741 B
Diff

Index: toluapp-1.0.93/SConstruct
===================================================================
--- toluapp-1.0.93.orig/SConstruct
+++ toluapp-1.0.93/SConstruct
@@ -16,7 +16,11 @@ elif 'msvc' in env['TOOLS']:
else:
options_file = "posix"
-opts = Options(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
+try:
+ opts = Variables(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
+except NameError:
+ opts = Options(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
+
opts.Add('CC', 'The C compiler.')
opts.Add('CXX', 'The C++ compiler (for the tests)')
opts.Add('CCFLAGS', 'Flags for the compiler.', ['-O2', '-Wall'])