[Buildroot] [PATCH 0/2] Fix fail2ban
Angelo Compagnucci
angelo.compagnucci at gmail.com
Fri Apr 19 21:32:14 UTC 2024
This series fixes fail2ban not installing configuration files in /etc anymore.
While fixing the problem, I discovered a bug in the way we invoke the
pyinstaller.py in pep517 compatibility.
Basically, pyinstaller.py will install data_files defined in setup.py
and tarballed in the wheel inside the directory pointed by the --data parameter,
which is nowadays pointing to /usr of TARGET/STAGING directory.
I consider this wrong, because the data folder shall point to the
TARGET_DIR/STAGING_DIR to be correct and we shall trust the destination path
expressed in the setup.py.
In the case of fail2ban, configuration files end up being installed in
/usr/etc/fail2ban instead of /etc/fail2ban.
v1 -> v2:
Fix signed off with correct email.
v2 -> v3:
Fix commit author too
Angelo Compagnucci (2):
package/fail2ban: fix data_files installation path
package/pkg-python: fix pep517 data files installation
...001-setup.py-fix-data-relative-paths.patch | 73 +++++++++++++++++++
package/pkg-python.mk | 4 +-
2 files changed, 75 insertions(+), 2 deletions(-)
create mode 100644 package/fail2ban/0001-setup.py-fix-data-relative-paths.patch
--
2.34.1
More information about the buildroot
mailing list