[PATCH v2 0/2] tools: ynl: two patches to ease building with rpmbuild

From: Jan Stancek
Date: Tue Nov 12 2024 - 03:22:56 EST


I'm looking to build and package ynl for Fedora and Centos Stream users.
Default rpmbuild has couple hardening options enabled by default [1][2],
which currently prevent ynl from building.

This series contains 2 small patches to address it.

[1] https://fedoraproject.org/wiki/Changes/Harden_All_Packages
[2] https://fedoraproject.org/wiki/Changes/PythonSafePath

Changes in v2:
- rebased on top of https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/

Jan Stancek (2):
tools: ynl: add script dir to sys.path
tools: ynl: extend CFLAGS to keep options from environment

tools/net/ynl/cli.py | 3 +++
tools/net/ynl/ethtool.py | 2 ++
tools/net/ynl/generated/Makefile | 2 +-
tools/net/ynl/lib/Makefile | 2 +-
tools/net/ynl/samples/Makefile | 2 +-
tools/net/ynl/ynl-gen-c.py | 3 +++
6 files changed, 11 insertions(+), 3 deletions(-)

--
2.43.0