Subject: [PATCH] testing/libfaketime: PREFIX is relevant during building

From: Norbert van Bolhuis <[email-masked]>
Date: Thu, 12 Nov 2020 22:58:09 +0100

faketime doesn't seem to work because it looks for the hard-coded
"PREFIX/.../libfaketime[MT].so.1" which it cannot find.
This is because the installation is done in PREFIX="/usr" while during
complation the (default) PREFIX="/usr/local" applies. So we better
use the same PREFIX for building.

Signed-off-by: Norbert van Bolhuis <[email-masked]>
---
testing/libfaketime/APKBUILD | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/libfaketime/APKBUILD b/testing/libfaketime/APKBUILD
index 1b2f8eb8..24e13ab8 100644
--- a/testing/libfaketime/APKBUILD
+++ b/testing/libfaketime/APKBUILD
@@ -12,7 +12,7 @@ options="!check" # 
https://github.com/wolfcw/libfaketime/issues/259
source="$pkgname-$pkgver.tar.gz::https://github.com/wolfcw/libfaketime/archive/v0.9.8.tar.gz"

build() {
-	make
+	make PREFIX="/usr"
}

check() {
--
2.26.2