Hello community, here is the log from the commit of package lua-toluapp for openSUSE:Factory checked in at 2020-06-03 20:36:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lua-toluapp (Old) and /work/SRC/openSUSE:Factory/.lua-toluapp.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lua-toluapp" Wed Jun 3 20:36:18 2020 rev:7 rq:811208 version:1.0.93 Changes: -------- --- /work/SRC/openSUSE:Factory/lua-toluapp/lua-toluapp.changes 2019-02-26 22:22:34.318062519 +0100 +++ /work/SRC/openSUSE:Factory/.lua-toluapp.new.3606/lua-toluapp.changes 2020-06-03 20:36:50.129983742 +0200 @@ -1,0 +2,6 @@ +Tue Jun 2 21:23:34 UTC 2020 - Max Lin <[email protected]> + +- Fix build with scons 3.1.2 - env.Copy() has been depreacated + * add toluapp-fix-deprecared-env-copy.patch + +------------------------------------------------------------------- New: ---- toluapp-fix-deprecared-env-copy.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lua-toluapp.spec ++++++ --- /var/tmp/diff_new_pack.KXflPR/_old 2020-06-03 20:36:51.349987567 +0200 +++ /var/tmp/diff_new_pack.KXflPR/_new 2020-06-03 20:36:51.353987579 +0200 @@ -1,7 +1,7 @@ # # spec file for package lua-toluapp # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,7 +34,7 @@ Summary: C/C++ with Lua Integration Tool License: MIT Group: Development/Languages/Other -Url: https://github.com/LuaDist/toluapp +URL: https://github.com/LuaDist/toluapp Source: https://github.com/LuaDist/toluapp/archive/%{version}/toluapp-%{version}.tar.gz Patch0: toluapp-libdir.patch Patch1: toluapp-versioned-shared-lib.patch @@ -43,6 +43,8 @@ Patch4: toluapp-scons-py3.patch #PATCH-FIX-UPSTREAM [email protected] - scons Options() is deprecated in 0.98.1, use Variables() instead Patch5: scons-0.98.1-Options-deprecated.patch +#PATCH-FIX-OPENSUSE [email protected] - scons env.Copy() has been deprecated, use env.Clone() instead if needed +Patch6: toluapp-fix-deprecared-env-copy.patch BuildRequires: %{flavor}-devel BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -98,6 +100,7 @@ %patch2 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 %if "%{flavor}" != "lua51" %patch3 -p1 %endif ++++++ toluapp-fix-deprecared-env-copy.patch ++++++ Index: b/src/tests/SCsub =================================================================== --- a/src/tests/SCsub +++ b/src/tests/SCsub @@ -1,5 +1,8 @@ Import('env') -env_tests = env.Copy() +try: + env_tests = env.Copy() +except AttributeError: + env_tests = env.Clone() env_tests.LuaBinding('tclassbind.cpp', 'tclass.pkg', 'tclass', use_own=1, use_typeid=1)
