Provide a pkgconfig file with libkeyutils.a

https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/commit/?id=4e58e9a45b87f9409d80a559984a3405d8d5a975

Signed-off-by: jiawenhao <jiawenhao@xfusion.com>
This commit is contained in:
jiawenhao 2025-04-18 10:59:58 +08:00
parent ad99c94282
commit 97b1ce93f6
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 2faeb864575e17704be5e9a4bd697588286d800a Mon Sep 17 00:00:00 2001
From: jiawenhao <jiawenhao@xfusion.com>
Date: Thu, 17 Apr 2025 18:59:59 +0800
Subject: [PATCH] provide-a-pkgconfig-file-with-libkeyutils.a
---
Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index 599b145..d8d4ee3 100644
--- a/Makefile
+++ b/Makefile
@@ -201,6 +201,8 @@ ifeq ($(NO_SOLIB),0)
$(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
mkdir -p $(DESTDIR)$(USRLIBDIR)
$(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
+endif
+ifneq ($(filter 0, $(NO_ARLIB) $(NO_SOLIB)),)
sed \
-e 's,@VERSION\@,$(VERSION),g' \
-e 's,@prefix\@,$(PREFIX),g' \
--
2.27.0

View File

@ -1,6 +1,6 @@
Name: keyutils
Version: 1.6.3
Release: 7
Release: 8
Summary: Utilities of Linux Key Management
License: GPLv2+ and LGPLv2+
@ -10,6 +10,7 @@ Source0: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/s
Patch9000: bugfix-fix-argv-string-out-of-bounds.patch
Patch9001: backport-fix-a-formatting-on-the-keyctl.1-man-page.patch
Patch9002: backport-fix-format-specifier-for-pointer-subtraction.patch
Patch9003: backport-provide-a-pkgconfig-file-with-libkeyutils.a.patch
BuildRequires: gcc gcc-c++
BuildRequires: glibc-kernheaders >= 2.4-9.1.92
@ -98,6 +99,9 @@ make \
%{_mandir}/man*/*
%changelog
* Fri Apr 18 2025 jiawenhao <jiawenhao@xfusion.com> - 1.6.3-8
- DESC: Provide a pkgconfig file with libkeyutils.a
* Fri Apr 18 2025 jiawenhao <jiawenhao@xfusion.com> - 1.6.3-7
- DESC: Fix format specifier for pointer subtraction