- tizen-coreutils build..
authorRonan Le Martret <ronan@fridu.net>
Fri, 5 Apr 2013 15:18:45 +0000 (17:18 +0200)
committerRonan Le Martret <ronan@fridu.net>
Fri, 5 Apr 2013 15:18:45 +0000 (17:18 +0200)
Tizen_TZ_package/spec2yocto.py

index 9ef0c02..fa25a98 100755 (executable)
@@ -263,7 +263,7 @@ class specParser:
         if pkgName in [ "glibc"]:
             command += " --define='_sbindir /usr/sbin'"
             
-        if pkgName in ["freetype","popt","pcre","which","findutils","coreutils"]:
+        if pkgName in ["freetype","popt","pcre","which","findutils","tizen-coreutils"]:
             oe_runconf2='''oe_runconf2'''
             
             command += " --define='%%_configure %s'" % oe_runconf2
@@ -315,15 +315,25 @@ class specParser:
                 tmpSpecFile.write(currentSpecString)
                 tmp_package_spec_path=tmpSpecFile.name
                
-               
-        
-                
-                
         if pkgName in ["attr","acl"] :
             command += " --define='_libdir \${base_prefix}/lib'"
             command += " --define='_libexecdir \${base_prefix}/usr/lib'"
     
-
+        if pkgName== "python-base":
+            with open(tmp_package_spec_path,'r') as currentSpecFile:
+                currentSpecString=currentSpecFile.read()
+            
+            currentSpecString=currentSpecString.replace('Makefile.pre.in\n','Makefile.pre.in ||:\n')
+            
+            with tempfile.NamedTemporaryFile(mode='w',
+                                             suffix='tmp',
+                                             prefix=os.path.basename(tmp_package_spec_path),
+                                             delete=False) as  tmpSpecFile:
+                tmpSpecFile.write(currentSpecString)
+                
+                tmp_package_spec_path=tmpSpecFile.name
+    
+    
         if self.__packagePN == "dbus-initial":
             with open(tmp_package_spec_path,'r') as currentSpecFile:
                 currentSpecString=currentSpecFile.read()