Browse Source

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

android-5
Leonid Plyushch 7 years ago
committed by Fredrik Fornwall
parent
commit
c1e05918a1
  1. 2
      packages/libuuid/build.sh
  2. 12
      packages/libuuid/uuidP.h.patch

2
packages/libuuid/build.sh

@ -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

12
packages/libuuid/uuidP.h.patch

@ -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
Loading…
Cancel
Save