1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-18 16:38:27 +00:00

libuuid: use correct path for /var/lib/libuuid/clock.txt

This commit is contained in:
Leonid Pliushch 2018-06-19 16:36:02 +03:00 committed by Fredrik Fornwall
parent b7ecf01d51
commit f222b0dd6c
2 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,6 @@
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/libuuid/
TERMUX_PKG_DESCRIPTION="Portable uuid C library"
TERMUX_PKG_VERSION=1.0.3
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/libuuid/libuuid-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=46af3275291091009ad7f1b899de3d0cea0252737550e7919d17237997db5644

View File

@ -0,0 +1,12 @@
diff -uNr libuuid-1.0.3/uuidP.h libuuid-1.0.3.mod/uuidP.h
--- libuuid-1.0.3/uuidP.h 2014-08-12 11:07:18.000000000 +0300
+++ libuuid-1.0.3.mod/uuidP.h 2018-06-19 16:34:52.864262517 +0300
@@ -37,7 +37,7 @@
#include "uuid.h"
-#define LIBUUID_CLOCK_FILE "/var/lib/libuuid/clock.txt"
+#define LIBUUID_CLOCK_FILE "@TERMUX_PREFIX@/var/lib/libuuid/clock.txt"
/*
* Offset between 15-Oct-1582 and 1-Jan-70