Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1459>
|
|
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>
|
|
|
|
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>
|
|
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>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1408>
|
|
The library x264 should be searched
in ${prefix}/lib/x86_64-linux-gnu
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1377>
|
|
`exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN`
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1374>
|
|
Taglib depends on zlib.
Fixes https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/470
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1374>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1369>
|
|
Fixes: https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/468
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1367>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1366>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1363>
|
|
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>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1355>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1355>
|
|
macOS tar cannot take --checkpoint. However, Homebrewed GNU tar can.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1348>
|
|
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>
|
|
choco is not in PATH by default when installed by us.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1239>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1239>
|
|
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>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1238>
|
|
Update the README and the bootstrap script accordingly.
Backport of fddd8b4c.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1238>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1334>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1330>
|
|
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>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1326>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1325>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1316>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1310>
|
|
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>
|
|
Fixes https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/458
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1307>
|
|
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>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1303>
|
|
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>
|
|
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>
|
|
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>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
|
|
Fixes https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/427
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
|
|
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>
|
|
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>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1299>
|