Fix Build error for riskv profile 02/295302/1 accepted/tizen_unified accepted/tizen_unified_dev tizen accepted/tizen/unified/20231226.154655 accepted/tizen/unified/20231226.180234 accepted/tizen/unified/dev/20230726.115900
authorJihoon Jung <jh8801.jung@samsung.com>
Wed, 5 Jul 2023 02:44:56 +0000 (11:44 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Wed, 5 Jul 2023 02:45:43 +0000 (11:45 +0900)
Change-Id: Ib8e551531b0e595a1ff59a4862f72a01f1bfbb55
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
build_common/external_libs.scons [changed mode: 0644->0755]
build_common/tools/UnpackAll.py [changed mode: 0644->0755]
resource/include/OCApi.h

old mode 100644 (file)
new mode 100755 (executable)
index b9c6947..1f0c42f
@@ -21,7 +21,7 @@
 #
 ##
 import os, subprocess
-import urllib.request, urllib.error, urllib.parse, urllib.parse
+import urllib, urlparse
 import SCons.Errors
 
 Import('env')
@@ -104,7 +104,7 @@ def __download(ienv, target, url) :
        try :
                print(("Download %s from %s" % (target, url)))
                print("Downloading ...")
-               stream = urllib.request.urlopen(url)
+               stream = urllib.urlopen(url)
                file = open(target, 'wb')
                file.write(stream.read())
                file.close()
old mode 100644 (file)
new mode 100755 (executable)
index 9788992..fd90995
@@ -99,7 +99,7 @@ import SCons.Util
 
 
 # enables Scons warning for this builder
-class UnpackWarning(SCons.Warnings.SConsWarning) :
+class UnpackWarning(SCons.Warnings.Warning) :
     pass
 
 SCons.Warnings.enableWarningClass(UnpackWarning)
index da8a401..493012a 100644 (file)
@@ -59,7 +59,7 @@ namespace OC
         /* We'll want to provide some sort of explicit hook for custom logging at some
         point; until then, this should do nicely (note that since these are lambdas,
         later a special target could be captured, allowing much flexibility): */
-        auto oclog_target = []() -> log_target_t&
+        inline auto oclog_target = []() -> log_target_t&
         {
             static OC::oc_log_stream    ols(oc_make_ostream_logger);
             static log_target_t         os(ols);
@@ -68,7 +68,7 @@ namespace OC
         };
     } // namespace OC::detail
 
-    auto oclog = []() -> boost::iostreams::stream<OC::oc_log_stream>&
+    inline auto oclog = []() -> boost::iostreams::stream<OC::oc_log_stream>&
     {
         return detail::oclog_target();
     };