if pkgName in [ "glibc"]:
command += " --define='_sbindir /usr/sbin'"
- if pkgName in ["libelf0","freetype2","help2man","acl","libcap","popt","pcre","which"]:
+ if pkgName in ["libelf0","freetype2","help2man","acl","libcap","popt","pcre","which","findutils","pkgconfig"]:
oe_runconf2='''oe_runconf2'''
command += " --define='%%_configure %s'" % oe_runconf2
- patternUrlSourceFile = r'Source[\d]*[\s]*:[\s]*(http.*/)(.*)'
+ patternUrlSourceFile = r'Source[\d]*[\s]*:[\s]*([http,ftp].*/)(.*)'
with open(tmp_package_spec_path,'r') as currentSpecFile:
currentSpecString=currentSpecFile.read()
command += " --define='%s #%s' " % (p,p)
command += " --parse %s " % tmp_package_spec_path
- #print "command :",command
+ # print "command :",command
if not os.path.isdir(os.path.join("/tmp","parsed_spec")):
os.mkdir(os.path.join("/tmp","parsed_spec"))
filesName=patternPatchDico[id]
+ if "-p" not in command:
+ command+=" -p0"
+
if filesName.endswith(".bz2"):
res+="bzcat ${S}/packaging/%s | patch %s --fuzz=2\n" % (filesName,command.replace("-b","-b --suffix") )
else: