summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-10-19recipe: Fix Python 3.13 compatibility1.22L. E. Segovia1-1/+3
Python 3.13 adds a predefined instance variable, `__static_attributes__`, that matches the expected syntax for build steps' identification. See https://docs.python.org/3.13/whatsnew/3.13.html#summary-release-highlights Co-Authored-by: Nirbheek Chauhan <nirbheek@centricular.com> Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1598>
2024-04-30Build 1.22 branch againTim-Philipp Müller3-4/+4
2024-04-30Build 1.22.12 release1.22.12Tim-Philipp Müller14-15/+15
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1459>
2024-04-25cerbero: Fix shutil.rmtree hack to passthrough unknown kwargsNirbheek Chauhan1-3/+3
Android tarball creation was broken for a while on Fedora because a new kwarg was added in Python 3.12 ``` Traceback (most recent call last): File "<string>", line 24, in <module> File "/home/nirbheek/projects/repos/cerbero.git/cerbero/main.py", line 224, in main Main(sys.argv[1:]) File "/home/nirbheek/projects/repos/cerbero.git/cerbero/main.py", line 52, in __init__ self.run_command() File "/home/nirbheek/projects/repos/cerbero.git/cerbero/main.py", line 192, in run_command res = commands.run(command, self.config, self.args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nirbheek/projects/repos/cerbero.git/cerbero/commands/__init__.py", line 79, in run return _commands[command].run(config, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nirbheek/projects/repos/cerbero.git/cerbero/commands/package.py", line 156, in run paths = pkg.pack( ^^^^^^^^^ File "/home/nirbheek/projects/repos/cerbero.git/cerbero/packages/disttarball.py", line 73, in pack runtime = self._create_tarball(output_dir, PackageType.RUNTIME, dist_files, force, package_prefix) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nirbheek/projects/repos/cerbero.git/cerbero/packages/android.py", line 32, in _create_tarball return super()._create_tarball(output_dir, package_type, files, force, package_prefix) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nirbheek/projects/repos/cerbero.git/cerbero/packages/disttarball.py", line 152, in _create_tarball self._write_tar(filename, package_prefix, files) File "/home/nirbheek/projects/repos/cerbero.git/cerbero/packages/disttarball.py", line 213, in _write_tar with tempfile.TemporaryDirectory() as d: File "/usr/lib64/python3.12/tempfile.py", line 946, in __exit__ self.cleanup() File "/usr/lib64/python3.12/tempfile.py", line 950, in cleanup self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors) File "/usr/lib64/python3.12/tempfile.py", line 930, in _rmtree _shutil.rmtree(name, onexc=onexc) TypeError: rmtree() got an unexpected keyword argument 'onexc' ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1402>
2024-03-20Build 1.22 branch againTim-Philipp Müller3-4/+4
2024-03-20libkate.recipe: Fix subdirs editing when autoreconf is run1.22.11Nirbheek Chauhan1-0/+10
We were only modifying Makefile.in to change SUBDIRS to avoid a forced-autoreconf. However, on non-Windows, we were running autoreconf manually, so the Makefile.in changes were getting overwritten. Edit SUBDIRS in Makefile.am too when we run autoreconf, which coincides with when we want to apply a configure.ac patch. Fixes a build failure on latest Fedora: ``` make[4]: Entering directory '/home/nirbheek/projects/repos/cerbero.git/1.22/build/sources/android_universal/armv7/libkate-0.4.1/tools/KateDJ' /bin/sh /home/nirbheek/projects/repos/cerbero.git/1.22/build/sources/android_universal/armv7/libkate-0.4.1/misc/autotools/install-sh -d "/home/nirbheek/projects/repos/cerbero.git/1.22/build/dist/android_universal/armv7/lib/python3.12/site-packages/kdj" for module in __init__ constants finder tools muxer demuxer tester options ui_main ui_editor ui_options; do \ /usr/bin/install -c -m 644 "../../tools/KateDJ/kdj/$module.py" "/home/nirbheek/projects/repos/cerbero.git/1.22/build/dist/android_universal/armv7/lib/python3.12/site-packages/kdj"; \ if test -z ""; then \ ../../misc/autotools/py-compile --basedir "/home/nirbheek/projects/repos/cerbero.git/1.22/build/dist/android_universal/armv7/lib/python3.12/site-packages/kdj" "$module.py"; \ else \ ../../misc/autotools/py-compile --destdir "" --basedir "/home/nirbheek/projects/repos/cerbero.git/1.22/build/dist/android_universal/armv7/lib/python3.12/site-packages/kdj" "$module.py"; \ fi \ done Traceback (most recent call last): File "<string>", line 2, in <module> ModuleNotFoundError: No module named 'imp' [...] ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1414>
2024-03-20glib: disable error for int-conversion introduced by default with clang 15Matthew Waters4-4/+9
macos/ios now ship clang 15 which flipped some default errors for some warnings around int->pointer conversion that currently fail in glib to the version we ship here. Unflip those errors. https://reviews.llvm.org/D129881 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1409>
2024-03-20Build 1.22.11 releaseTim-Philipp Müller14-15/+15
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1408>
2024-02-19x264: fix linker path in pc fileStéphane Cerveau1-18/+20
The library x264 should be searched in ${prefix}/lib/x86_64-linux-gnu Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1377>
2024-02-16cerbero: Ignore another spurious rustc failure on WindowsNirbheek Chauhan1-0/+1
`exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN` Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1374>
2024-02-16taglib.recipe: Fix msvc x86 build raceNirbheek Chauhan1-0/+2
Taglib depends on zlib. Fixes https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/470 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1374>
2024-02-15Build 1.22 branch againTim-Philipp Müller3-4/+4
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1369>
2024-02-13msvc: Ship tag.dll file1.22.10Seungha Yang1-4/+1
Fixes: https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/468 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1367>
2024-02-13Build 1.22.10 releaseTim-Philipp Müller15-16/+16
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1366>
2024-02-13gst-plugins-bad: Ship ivfparse pluginSeungha Yang1-0/+3
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1363>
2024-02-12shell/new_call: Fix output streams contents being hidden from the user on errorL. E. Segovia1-3/+3
subprocess.check_call, for some reason, does not log appropriately the contents of stdout on error, nor it crashes out when a shell is required. This is the cause of a hidden failure when issuing `ld` to prelink all objects on macOS, because I specified a glob that would be expanded by the shell, and this step never occurs because it's already passed verbatim to `sh`. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1364>
2024-02-09gst-plugins-bad: build soundtouch plugin on MSVCTim-Philipp Müller3-20/+99
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1355>
2024-02-09sountouch.recipe: Fix symbol export on MSVCNirbheek Chauhan2-3/+58
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1355>
2024-02-09cerbero: Fix GNU tar --checkpoint compatibility with macOSL. E. Segovia2-1/+10
macOS tar cannot take --checkpoint. However, Homebrewed GNU tar can. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1348>
2024-02-07cerbero: Fix bootstrap venv error after upgrading PythonNirbheek Chauhan1-7/+7
Unable to symlink '/usr/bin/python3' to 'cerbero.git/build/build-tools/bin/python3' cerbero.git/build/build-tools/bin/python: error while loading shared libraries: libpython3.11.so.1.0: cannot open shared object file: No such file or directory Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1347>
2024-01-30bootstrap-windows.ps1: Fix check for existing choco installNirbheek Chauhan1-5/+8
choco is not in PATH by default when installed by us. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1239>
2024-01-30bootstrap-windows.ps1: Remove hard-coded MSYS2 directoryNirbheek Chauhan2-2/+3
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1239>
2024-01-30cerbero: Greatly improve usability of bootstrap-windows.ps1Nirbheek Chauhan2-28/+167
Instead of being a dumb list of commands, the script now does the following: 1. Detects whether choco is already installed, and upgrades it if so. 2. Checks whether vsredist140, cmake, git, git-lfs, python3, wix, MSYS2 are installed before trying to install them using choco. 3. If a tool is already installed but is too old, prompt before trying to install with choco 4. Checks whether MSYS2 packages are installed before trying to (re)install them. 5. Checks whether Visual Studio is already installed before trying to install it. 6. If Visual Studio is installed, also check whether the Windows 11 SDK is installed. If not, prompt the user and install it. Users can now fearlessly run `tools\bootstrap-windows.ps1` to install or update packages. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1239>
2024-01-29README: Various windows-specific doc fixesNirbheek Chauhan1-15/+17
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1238>
2024-01-29Support both VS 2019 and 2022Nirbheek Chauhan2-22/+45
Update the README and the bootstrap script accordingly. Backport of fddd8b4c. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1238>
2024-01-28gst-plugins-good: build taglib plugin on MSVCTim-Philipp Müller1-4/+0
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1334>
2024-01-25Build 1.22 branch againTim-Philipp Müller3-4/+4
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1330>
2024-01-25osx: remove XML::Parser intltool from bootstrap1.22.9Matthew Waters2-16/+1
XML::Parser currently fails installing and is not needed anymore. Error is very similar to that outlined in where -lexpat does not seem to be added to the link command: https://stackoverflow.com/questions/65383579/cant-install-xmlparser-on-m1-mac-with-homebrew-perl-5-32 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1327>
2024-01-24Build 1.22.9 releaseTim-Philipp Müller14-15/+15
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1326>
2024-01-24Build 1.22 branch againTim-Philipp Müller3-4/+4
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1325>
2023-12-18Build 1.22.8 releaseTim-Philipp Müller14-15/+15
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1316>
2023-11-21cerbero: Fix some more python 3.12 string escape warningsNirbheek Chauhan3-4/+4
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1310>
2023-11-21pango: Add Perl interpreter consistency checkL. E. Segovia2-0/+29
In Windows, we've got the case that Perl is found from the UCRT64 path, but Meson wants to invoke it for a MSYS64 script. This results in a Locale::gettext import failure only detectable at build time. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1311>
2023-11-17cerbero: Fix bundle-source not including build-tools recipesNirbheek Chauhan1-5/+6
Fixes https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/458 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1307>
2023-11-17cerbero: Fix exception when handling CalledProcessErrorNirbheek Chauhan1-1/+3
The 'output' param can be str or bytes depending on the python version, so handle both separately. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1307>
2023-11-16Build 1.22 branch againTim-Philipp Müller3-4/+4
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1303>
2023-11-16cerbero: Fix another python escape string warning1.22.7Nirbheek Chauhan1-1/+1
This one is actually valid, we do not want Python to interpret \033 into \x2b. We want to put \033 as-is into the string for the shell to interpret as an escape code. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
2023-11-16cerbero: Remove incorrect error handling in rmtreeNirbheek Chauhan1-3/+0
This code has never worked, it just emits an error saying the exception cannot be subscripted. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
2023-11-15Stop using setuptools in a bunch of places, incl meson.recipeNirbheek Chauhan4-10/+29
Since Python 3.12, venv no longer installs setuptools by default, and frankly we don't need it anymore since we can install with pip. The only place left that uses setuptools is bundlesource now. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
2023-11-15cerbero: Fix some warnings about escaping with Python 3.12Nirbheek Chauhan3-4/+4
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
2023-11-15cerbero: Fix bootstrap on Windows with Python 3.12Nirbheek Chauhan1-0/+5
Fixes https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/427 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
2023-11-15cerbero: Port from imp module to importlib moduleNirbheek Chauhan5-112/+14
imp module was removed in Python 3.12 We no longer need the site.py patch from setuptools because we use a venv now. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
2023-11-15cerbero: Add Windows 11 to the supported versions listNirbheek Chauhan2-1/+3
Older Python reports Windows 11 as '10', but newer Python (at least 3.12) reports it as '11'. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
2023-11-14cargo-c: Update to 0.9.26Sebastian Dröge3-316/+404
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
2023-11-14cargo-c: Update to 0.9.24Sebastian Dröge2-5/+3032
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
2023-11-14cargo-c: Update to 0.9.23Sebastian Dröge1-3/+3
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
2023-11-14cargo-c: Update to 0.9.22Sebastian Dröge1-3/+3
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
2023-11-14cargo-c: Update to 0.9.20Sebastian Dröge1-3/+3
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
2023-11-14cargo-c: Update to 0.9.19Sebastian Dröge1-3/+3
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
2023-11-14cargo-c: Update to 0.9.17Sebastian Dröge1-3/+3
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>