From eb1cc1abfecfc1e1759f3fa6135e5cbd07bcfce6 Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 17 Jul 2019 05:26:17 -0300 Subject: main/keyutils: link libkeyutils.so to ../../lib/libkeyutils.so.1 Fixes https://gitlab.alpinelinux.org/alpine/aports/issues/10662 --- main/keyutils/APKBUILD | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main/keyutils/APKBUILD b/main/keyutils/APKBUILD index a1f1de7294..ad3a7dc4c9 100644 --- a/main/keyutils/APKBUILD +++ b/main/keyutils/APKBUILD @@ -2,16 +2,14 @@ # Maintainer: Natanael Copa pkgname=keyutils pkgver=1.6 -pkgrel=0 +pkgrel=1 pkgdesc="Linux Key Management Utilities" url="http://people.redhat.com/~dhowells/keyutils/" arch="all" options="!check" # Test suite requires RPM. license="GPL-2.0-or-later LGPL-2.0-or-later" -depends="" makedepends="file linux-headers" -install="" -subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +subpackages="$pkgname-dev:_dev $pkgname-doc $pkgname-libs" source="https://people.redhat.com/~dhowells/keyutils/keyutils-$pkgver.tar.bz2" build() { @@ -40,4 +38,10 @@ libs() { mv "$pkgdir"/lib "$subpkgdir"/ } +_dev() { + # Fix for #10662 + ln -fs ../../lib/libkeyutils.so.1 "$pkgdir"/usr/lib/libkeyutils.so + default_dev +} + sha512sums="ee50da165099ea26904066d24b27c5165cb1eb78df6768cba3a534aa318a5c8d926ec6e5322a38c8cedaa768cd79bdcb26ef918aa8447df2e5dfbbe7b8f200ff keyutils-1.6.tar.bz2" -- cgit v1.2.3