Skip to content

Commit b36b9af

Browse files
committed
Fix issue with python-lhafile installation.
1 parent 61f2548 commit b36b9af

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

toolchain-m68k

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,24 @@ def build():
197197
environ['LANG'] = 'C'
198198
environ['TERM'] = 'xterm'
199199

200+
find_executable('perl')
201+
find_executable('patch')
202+
find_executable('make')
203+
find_executable('git')
204+
205+
with cwd('{archives}'):
206+
for url in URLS:
207+
if type(url) == tuple:
208+
url, name = url[0], url[1]
209+
else:
210+
name = path.basename(url)
211+
fetch(name, url)
212+
213+
unpack('python-lha', work_dir='{build}')
214+
python_setup('python-lha')
215+
216+
add_site_dir('{host}')
217+
200218
"""
201219
Make sure we always choose known compiler (from the distro) and not one in
202220
user's path that could shadow the original one.
@@ -218,28 +236,10 @@ def build():
218236
environ['CC'] = ' '.join([find_executable(CC), ARCH])
219237
environ['CXX'] = ' '.join([find_executable(CXX), ARCH])
220238

221-
find_executable('perl')
222-
find_executable('patch')
223-
find_executable('make')
224-
find_executable('git')
225-
226239
environ['PATH'] = ":".join([path.join('{target}', 'bin'),
227240
path.join('{host}', 'bin'),
228241
environ['PATH']])
229242

230-
add_site_dir('{host}')
231-
232-
with cwd('{archives}'):
233-
for url in URLS:
234-
if type(url) == tuple:
235-
url, name = url[0], url[1]
236-
else:
237-
name = path.basename(url)
238-
fetch(name, url)
239-
240-
unpack('python-lha', work_dir='{build}')
241-
python_setup('python-lha')
242-
243243
unpack('{m4}')
244244
configure('{m4}', '--prefix={host}')
245245
make('{m4}')

0 commit comments

Comments
 (0)