From 2fd1e9d6e0ad7f6d0b3d150229750fb0a03c3907 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 30 May 2024 13:57:19 -0700 Subject: [PATCH] ngtcp2: fix bad pkgconfig paths Avoids leaking host paths. Signed-off-by: Rosen Penev --- libs/ngtcp2/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/ngtcp2/Makefile b/libs/ngtcp2/Makefile index 43c8055556..b7ffc2f6f7 100644 --- a/libs/ngtcp2/Makefile +++ b/libs/ngtcp2/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ngtcp2 PKG_VERSION:=1.4.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://github.com/ngtcp2/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/ @@ -32,6 +32,12 @@ endef CMAKE_OPTIONS += -DENABLE_LIB_ONLY=ON +define Build/InstallDev + $(call Build/InstallDev/cmake,$(1)) + $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libngtcp2.pc + $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libngtcp2.pc +endef + define Package/libngtcp2/install $(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libngtcp2*.so* $(1)/usr/lib -- 2.30.2