packaging gstreamer-1.0 no longer works on linux due to crash in determine_total_ram()
When attempting to build gstreamer-1.0 for Linux platforms, the packaging fails while determining total available ram.
Logs
./cerbero-uninstalled package gstreamer-1.0
Build tools install prefix will be /home/onur/WORKSPACE/cerbero/build/build-tools
Install prefix will be /home/onur/WORKSPACE/cerbero/build/dist/linux_x86_64
Traceback (most recent call last):
File "/home/onur/WORKSPACE/cerbero/cerbero/utils/__init__.py", line 505, in parse_file
exec(compile(open(filename).read(), filename, 'exec'), dict)
File "/home/onur/WORKSPACE/cerbero/recipes/gst-plugins-rs.recipe", line 12, in <module>
class Recipe(recipe.Recipe):
File "/home/onur/WORKSPACE/cerbero/recipes/gst-plugins-rs.recipe", line 67, in Recipe
if determine_num_cargo_jobs() == 1:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/onur/WORKSPACE/cerbero/cerbero/utils/__init__.py", line 101, in determine_num_cargo_jobs
ram = determine_total_ram()
^^^^^^^^^^^^^^^^^^^^^
File "/home/onur/WORKSPACE/cerbero/cerbero/utils/__init__.py", line 133, in determine_total_ram
return int(re.split(r'\s+', ram_size_query.stdout.splitlines()[1]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
WARNING: Error loading recipe in file /home/onur/WORKSPACE/cerbero/recipes/gst-plugins-rs.recipe
Traceback (most recent call last):
File "/home/onur/WORKSPACE/cerbero/cerbero/build/cookbook.py", line 458, in _load_recipes_from_file
parse_file(filepath, new_d)
File "/home/onur/WORKSPACE/cerbero/cerbero/utils/__init__.py", line 510, in parse_file
raise ex
File "/home/onur/WORKSPACE/cerbero/cerbero/utils/__init__.py", line 505, in parse_file
exec(compile(open(filename).read(), filename, 'exec'), dict)
File "/home/onur/WORKSPACE/cerbero/recipes/gst-plugins-rs.recipe", line 12, in <module>
class Recipe(recipe.Recipe):
File "/home/onur/WORKSPACE/cerbero/recipes/gst-plugins-rs.recipe", line 67, in Recipe
if determine_num_cargo_jobs() == 1:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/onur/WORKSPACE/cerbero/cerbero/utils/__init__.py", line 101, in determine_num_cargo_jobs
ram = determine_total_ram()
^^^^^^^^^^^^^^^^^^^^^
File "/home/onur/WORKSPACE/cerbero/cerbero/utils/__init__.py", line 133, in determine_total_ram
return int(re.split(r'\s+', ram_size_query.stdout.splitlines()[1]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
***** Error running 'package' command: