Cannot create Gstreamer Package for android arm64 on Ubuntu 20.04 LTS
Issue
Cannot create gstreamer-1.0 package for android-arm64 using the what's on main (fb25ddb4) on Ubuntu 20.04 LTS. due to ignore_cleanup_errors
keyword not being recognized, perhaps it's a python version issue?
Solution
Reverting disttarball.py to a4b064a8 solves the issue.
Output
onur@GstCompiler:~/WORKSPACE/test/cerbero$ ./cerbero-uninstalled -c config/cross-android-arm64.cbc package gstreamer-1.0
Build tools install prefix will be /home/onur/WORKSPACE/test/cerbero/build/build-tools
Install prefix will be /home/onur/WORKSPACE/test/cerbero/build/dist/android_arm64
Building the following recipes: libffi zlib pcre2 proxy-libintl libiconv glib gstreamer-1.0 libogg libpng pixman expat bzip2 freetype fontconfig cairo fribidi harfbuzz pango libtheora libvorbis orc opus graphene libjpeg-turbo gst-plugins-base-1.0 gst-shell speex tiff gdk-pixbuf libxml2 ca-certificates openssl glib-networking libpsl sqlite3 libsoup mpg123 lame wavpack flac taglib libvpx libdv opencore-amr gst-plugins-good-1.0 libass openh264 librtmp libsrtp libdca libnice soundtouch vo-aacenc libcroco librsvg openjpeg spandsp webrtc-audio-processing sbc ladspa srt zbar libltc vulkan-android gst-plugins-bad-1.0 a52dec x264 gst-plugins-ugly-1.0 ffmpeg gst-libav-1.0 json-glib gst-rtsp-server-1.0 gst-devtools-1.0 gst-editing-services-1.0 gst-android-1.0 dav1d
Building using 4 job(s) with the following job subdivisions: 4 general job(s)
[(1/76) proxy-libintl -> built]
[(2/76) zlib -> built]
[(3/76) bzip2 -> built]
[(4/76) libffi -> built]
[(5/76) ca-certificates -> built]
[(6/76) pcre2 -> built]
[(7/76) libogg -> built]
[(8/76) libjpeg-turbo -> built]
[(9/76) libpng -> built]
[(10/76) tiff -> built]
[(11/76) freetype -> built]
[(12/76) pixman -> built]
[(13/76) expat -> built]
[(14/76) opus -> built]
[(15/76) libiconv -> built]
[(16/76) libxml2 -> built]
[(17/76) fontconfig -> built]
[(18/76) openssl -> built]
[(19/76) orc -> built]
[(20/76) glib -> built]
[(21/76) libtheora -> built]
[(22/76) spandsp -> built]
[(23/76) libvorbis -> built]
[(24/76) fribidi -> built]
[(25/76) graphene -> built]
[(26/76) gdk-pixbuf -> built]
[(27/76) libsrtp -> built]
[(28/76) cairo -> built]
[(29/76) librtmp -> built]
[(30/76) openh264 -> built]
[(31/76) openjpeg -> built]
[(32/76) sbc -> built]
[(33/76) gstreamer-1.0 -> built]
[(34/76) srt -> built]
[(35/76) vo-aacenc -> built]
[(36/76) webrtc-audio-processing -> built]
[(37/76) sqlite3 -> built]
[(38/76) harfbuzz -> built]
[(39/76) libpsl -> built]
[(40/76) ladspa -> built]
[(41/76) glib-networking -> built]
[(42/76) wavpack -> built]
[(43/76) pango -> built]
[(44/76) libdca -> built]
[(45/76) vulkan-android -> built]
[(46/76) taglib -> built]
[(47/76) libcroco -> built]
[(48/76) soundtouch -> built]
[(49/76) libltc -> built]
[(50/76) libass -> built]
[(51/76) libnice -> built]
[(52/76) librsvg -> built]
[(53/76) zbar -> built]
[(54/76) libvpx -> already built]
[(55/76) gst-plugins-base-1.0 -> built]
[(56/76) libdv -> built]
[(57/76) json-glib -> built]
[(58/76) libsoup -> built]
[(59/76) mpg123 -> built]
[(60/76) lame -> built]
[(61/76) speex -> built]
[(62/76) opencore-amr -> built]
[(63/76) a52dec -> built]
[(64/76) flac -> built]
[(65/76) x264 -> built]
[(66/76) gst-plugins-ugly-1.0 -> built]
[(67/76) gst-shell -> built]
[(68/76) gst-plugins-bad-1.0 -> built]
[(69/76) dav1d -> built]
[(70/76) gst-rtsp-server-1.0 -> built]
[(71/76) gst-devtools-1.0 -> built]
[(72/76) ffmpeg -> built]
[(73/76) gst-libav-1.0 -> built]
[(74/76) gst-plugins-good-1.0 -> built]
[(75/76) gst-editing-services-1.0 -> built]
[(76/76) gst-android-1.0 -> built]
All done!
-----> Creating package for gstreamer-1.0
WARNING: No specific packager available for the distro version android_21_lollipop, using generic packager for distro android
Traceback (most recent call last):
File "<string>", line 24, in <module>
File "/home/onur/WORKSPACE/test/cerbero/cerbero/main.py", line 198, in main
Main(sys.argv[1:])
File "/home/onur/WORKSPACE/test/cerbero/cerbero/main.py", line 54, in __init__
self.run_command()
File "/home/onur/WORKSPACE/test/cerbero/cerbero/main.py", line 167, in run_command
res = commands.run(command, self.config, self.args)
File "/home/onur/WORKSPACE/test/cerbero/cerbero/commands/__init__.py", line 78, in run
return _commands[command].run(config, args)
File "/home/onur/WORKSPACE/test/cerbero/cerbero/commands/package.py", line 115, in run
paths = pkg.pack(output_dir, args.no_devel, args.force,
File "/home/onur/WORKSPACE/test/cerbero/cerbero/packages/disttarball.py", line 72, in pack
runtime = self._create_tarball(output_dir, PackageType.RUNTIME,
File "/home/onur/WORKSPACE/test/cerbero/cerbero/packages/android.py", line 37, in _create_tarball
return super()._create_tarball(output_dir, package_type, files, force, package_prefix)
File "/home/onur/WORKSPACE/test/cerbero/cerbero/packages/disttarball.py", line 148, in _create_tarball
self._write_tar(filename, package_prefix, files)
File "/home/onur/WORKSPACE/test/cerbero/cerbero/packages/disttarball.py", line 209, in _write_tar
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as d:
TypeError: __init__() got an unexpected keyword argument 'ignore_cleanup_errors'