Blame SOURCES/0001-Unbundle-llhttp.patch

519eac
From bbe8b3ebacee8e7cde750d263ddf64581b447af1 Mon Sep 17 00:00:00 2001
519eac
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
519eac
Date: Wed, 16 Feb 2022 13:57:57 +0100
519eac
Subject: [PATCH] Unbundle llhttp
519eac
519eac
---
519eac
 aiohttp/_cparser.pxd | 2 +-
519eac
 setup.py             | 6 +-----
519eac
 2 files changed, 2 insertions(+), 6 deletions(-)
519eac
519eac
diff --git a/aiohttp/_cparser.pxd b/aiohttp/_cparser.pxd
519eac
index c2cd5a92..1b3be6d4 100644
519eac
--- a/aiohttp/_cparser.pxd
519eac
+++ b/aiohttp/_cparser.pxd
519eac
@@ -1,7 +1,7 @@
519eac
 from libc.stdint cimport int32_t, uint8_t, uint16_t, uint64_t
519eac
 
519eac
 
519eac
-cdef extern from "../vendor/llhttp/build/llhttp.h":
519eac
+cdef extern from "llhttp.h":
519eac
 
519eac
     struct llhttp__internal_s:
519eac
         int32_t _index
519eac
diff --git a/setup.py b/setup.py
519eac
index 4d59a022..0df68207 100644
519eac
--- a/setup.py
519eac
+++ b/setup.py
519eac
@@ -33,12 +33,8 @@ extensions = [
519eac
         [
519eac
             "aiohttp/_http_parser.c",
519eac
             "aiohttp/_find_header.c",
519eac
-            "vendor/llhttp/build/c/llhttp.c",
519eac
-            "vendor/llhttp/src/native/api.c",
519eac
-            "vendor/llhttp/src/native/http.c",
519eac
         ],
519eac
-        define_macros=[("LLHTTP_STRICT_MODE", 0)],
519eac
-        include_dirs=["vendor/llhttp/build"],
519eac
+        libraries=["llhttp"],
519eac
     ),
519eac
     Extension("aiohttp._helpers", ["aiohttp/_helpers.c"]),
519eac
     Extension("aiohttp._http_writer", ["aiohttp/_http_writer.c"]),
519eac
-- 
519eac
2.41.0
519eac