From 6e089ad9576f9234143c881d1f03da8d844f61fb Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sat, 10 Feb 2024 20:02:58 -0500 Subject: [PATCH] Avoid licensecheck dependency in RHEL builds licensecheck pulls in nearly a hundred perl dependencies that are otherwise unneeded in RHEL. --- llhttp.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llhttp.spec b/llhttp.spec index f1a9493..1b5766a 100644 --- a/llhttp.spec +++ b/llhttp.spec @@ -71,9 +71,11 @@ BuildRequires: gcc-c++ # For check-null-licenses BuildRequires: python3-devel +%if !0%{?rhel} # For additional license auditing: BuildRequires: askalono-cli BuildRequires: licensecheck +%endif %description This project is a port of http_parser to TypeScript. llparse is used to @@ -149,6 +151,7 @@ popd # code with license problems in the source RPM. %{python3} '%{SOURCE3}' --exceptions '%{SOURCE4}' --with dev node_modules_dev +%if !0%{?rhel} # Ensure we have checked all of the licenses in the dev dependency bundle for # allowability. pattern="${pattern-}${pattern+|}UNKNOWN|(Apache|Python) License 2\\.0" @@ -212,6 +215,7 @@ licenses in the spec file! EOF exit 1 fi +%endif # http-loose-request.c:7205:20: error: invalid conversion from 'void*' to # 'const unsigned char*' [-fpermissive]