Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
---|---|---|---|---|---|---|
01_build_doc.patch | =================================================================== | no | ||||
02_Move_setup.py_to_the_top_level.patch | pylibfdt: Move setup.py to the top level Using 'pip' and several setup.py sub-commands currently don't work with pylibfdt. The primary reason is Python packaging has opinions on the directory structure of repositories and one of those appears to be the inability to reference source files outside of setup.py's subtree. This means a sdist cannot be created with all necessary source components (i.e. libfdt headers). Moving setup.py to the top-level solves these problems. With this change. the following commands now work: Creating packages for pypi.org: ./setup.py sdist bdist_wheel Using pip for installs: pip install . pip install git+http://github.com/robherring/dtc.git@pypi-v2 |
Rob Herring <robh@kernel.org> | no | backport, 23b56cb7e18992650c79a04c9e4e3f2740bc1fbd | 2021-11-10 | |
03_fix_with_Python_3.10.patch | pylibfdt: fix with Python 3.10 Since Python 2.5 the argument parsing functions when parsing expressions such as s# (string plus length) expect the length to be an int or a ssize_t, depending on whether PY_SSIZE_T_CLEAN is defined or not. Python 3.8 deprecated the use of int, and with Python 3.10 this symbol must be defined and ssize_t used[1]. Define the magic symbol when building the extension, and cast the ints from the libfdt API to ssize_t as appropriate. [1] https://docs.python.org/3.10/whatsnew/3.10.html#id2 [dwg: Adjust for new location of setup.py] |
Ross Burton <ross.burton@arm.com> | no | upstream, 383e148b70a47ab15f97a19bb999d54f9c3e810f | 2021-11-11 | |
04_Install_to_dist_packages.patch | pylibfdt: Install to dist-packages | Bastian Germann <bage@debian.org> | no | 2022-05-20 |