xz: drop relative-pkg-config-paths patch for a SED

liblzma.pc is generated by a make rule that expands $(libdir) and
$(includedir) to absolute paths, which OpenWrt's pkg-config wrapper
cannot redirect at the staging directory. Rewrite the staged copy with
SED instead of patching the template, as ~50 other packages here do.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean authored and Alexandru Ardelean committed 2026-10-07 09:36:46 +03:00
1 parent f6e2e2815a
commit b931f9376a
2 files changed
+3 -13

No files matched your search

+3
View File
@@ -103,6 +103,9 @@ define Build/InstallDev
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liblzma.pc \
$(1)/usr/lib/pkgconfig/
$(SED) \
's,^libdir=.*,libdir=$$$${exec_prefix}/lib,;s,^includedir=.*,includedir=$$$${prefix}/include,' \
$(1)/usr/lib/pkgconfig/liblzma.pc
endef
define Package/xz-utils/install
@@ -1,13 +0,0 @@
--- a/src/liblzma/liblzma.pc.in
+++ b/src/liblzma/liblzma.pc.in
@@ -3,8 +3,8 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
Name: liblzma
Description: General purpose data compression library