Eray'ın non-pardus sistemlerde paket build edilebilmesi için eklediklerini kaldırdım..
Bunu işi burda bu şekilde halletmek yerine config dosyasına CC=gcc eklenerek çözülmesi doğru olur diye konuştuk. Bunu bir bug olarak giriyorum: #356
This commit is contained in:
@@ -19,7 +19,6 @@ from pisi.ui import ui
|
||||
|
||||
# ActionsAPI Modules
|
||||
from variables import glb
|
||||
from shelltools import exists_binary
|
||||
|
||||
env = glb.env
|
||||
dirs = glb.dirs
|
||||
@@ -90,18 +89,6 @@ def defaultprefixDIR():
|
||||
|
||||
# Binutils Variables
|
||||
|
||||
def getBinutilsInfo(util):
|
||||
cross_build_name = '%s-%s' % (HOST(), util)
|
||||
if not exists_binary(cross_build_name):
|
||||
if not exists_binary(util):
|
||||
ui.error('Error: util %s cannot be found' % util)
|
||||
else:
|
||||
ui.debug('Warning: %s does not exist, using plain name %s'
|
||||
% (cross_build_name, util))
|
||||
return util
|
||||
else:
|
||||
return cross_build_name
|
||||
|
||||
def AR():
|
||||
return getBinutilsInfo('ar')
|
||||
|
||||
|
||||
@@ -97,14 +97,6 @@ def system(command):
|
||||
|
||||
return p.close()
|
||||
|
||||
def exists_binary(bin):
|
||||
# determine if path has binary
|
||||
path = os.environ['PATH'].split(':')
|
||||
for directory in path:
|
||||
if os.path.exists(os.path.join(directory, bin) ):
|
||||
return True
|
||||
return False
|
||||
|
||||
def isLink(sourceFile):
|
||||
return os.path.islink(sourceFile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user