You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
project('test spec', 'c')
|
|
|
|
|
|
|
|
rpm = import('rpm')
|
|
|
|
dependency('zlib')
|
modules/rpm: workaround when ext_prog not found locally
Traceback (most recent call last):
File "../../../meson.py", line 184, in <module>
app.generate()
File "../../../meson.py", line 130, in generate
intr.run()
File "/home/brain/git/upstream/meson/interpreter.py", line 828, in run
self.evaluate_codeblock(self.ast)
File "/home/brain/git/upstream/meson/interpreter.py", line 850, in
evaluate_codeblock
raise e
File "/home/brain/git/upstream/meson/interpreter.py", line 844, in
evaluate_codeblock
self.evaluate_statement(cur)
File "/home/brain/git/upstream/meson/interpreter.py", line 897, in
evaluate_statement
return self.method_call(cur)
File "/home/brain/git/upstream/meson/interpreter.py", line 1620, in
method_call
return obj.method_call(method_name, args, kwargs)
File "/home/brain/git/upstream/meson/interpreter.py", line 625, in
method_call
value = fn(state, args, kwargs)
File "/home/brain/git/upstream/meson/modules/rpm.py", line 98, in
generate_spec_template
fn.write('BuildRequires: %s\n' % ' '.join(prog.fullpath))
TypeError: sequence item 0: expected str instance, NoneType found
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
10 years ago
|
|
|
find_program('nonexistprog', required : false)
|
|
|
|
|
|
|
|
lib = shared_library('mesontest_shared', ['lib.c', 'lib.h'],
|
|
|
|
version : '0.1', soversion : '0',
|
|
|
|
install : true)
|
|
|
|
executable('mesontest-bin', 'main.c',
|
|
|
|
link_with : lib,
|
|
|
|
install : true)
|
|
|
|
|
|
|
|
rpm.generate_spec_template()
|