xref: /OK3568_Linux_fs/buildroot/package/zic/0001-remove-dependency-check-on-version-file.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom 4ad8932f93c490d15586b1def3863e9580e6eceb Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Martin Bark <martin@barkynet.com>
3*4882a593SmuzhiyunDate: Sat, 3 Dec 2016 13:51:50 +0000
4*4882a593SmuzhiyunSubject: [PATCH] remove dependency check on version file
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun$(VERSION_DEPS) includes dependencies from tzdata meaning applications
7*4882a593Smuzhiyunsuch as zic can't build from tzcode on their own.  Remove the dependency
8*4882a593Smuzhiyunto $(VERSION_DEPS) since it is not necessary to check for version updates
9*4882a593Smuzhiyunin released code.  This solves building zic from tzcode without needing
10*4882a593Smuzhiyuntzdata.
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunSigned-off-by: Martin Bark <martin@barkynet.com>
13*4882a593Smuzhiyun---
14*4882a593Smuzhiyun Makefile | 2 +-
15*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-)
16*4882a593Smuzhiyun
17*4882a593Smuzhiyundiff --git a/Makefile b/Makefile
18*4882a593Smuzhiyunindex 1b714a8..00d2c09 100644
19*4882a593Smuzhiyun--- a/Makefile
20*4882a593Smuzhiyun+++ b/Makefile
21*4882a593Smuzhiyun@@ -587,7 +587,7 @@ INSTALL:	ALL install date.1
22*4882a593Smuzhiyun # Otherwise, use $(VERSION) unless it is "unknown" and there is already
23*4882a593Smuzhiyun # a 'version' file, in which case reuse the existing 'version' contents
24*4882a593Smuzhiyun # and append "-dirty" if the contents do not already end in "-dirty".
25*4882a593Smuzhiyun-version:	$(VERSION_DEPS)
26*4882a593Smuzhiyun+version:
27*4882a593Smuzhiyun 		{ (type git) >/dev/null 2>&1 && \
28*4882a593Smuzhiyun 		  V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \
29*4882a593Smuzhiyun 				--abbrev=7 --dirty` || \
30*4882a593Smuzhiyun--
31*4882a593Smuzhiyun2.7.4
32*4882a593Smuzhiyun
33