0001-remove-dependency-check-on-version-file.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 4ad8932f93c490d15586b1def3863e9580e6eceb Mon Sep 17 00:00:00 2001
  2. From: Martin Bark <martin@barkynet.com>
  3. Date: Sat, 3 Dec 2016 13:51:50 +0000
  4. Subject: [PATCH] remove dependency check on version file
  5. $(VERSION_DEPS) includes dependencies from tzdata meaning applications
  6. such as zic can't build from tzcode on their own. Remove the dependency
  7. to $(VERSION_DEPS) since it is not necessary to check for version updates
  8. in released code. This solves building zic from tzcode without needing
  9. tzdata.
  10. Signed-off-by: Martin Bark <martin@barkynet.com>
  11. ---
  12. Makefile | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/Makefile b/Makefile
  15. index 0087b459..4773a977 100644
  16. --- a/Makefile
  17. +++ b/Makefile
  18. @@ -673,7 +673,7 @@ INSTALL: ALL install date.1
  19. # Otherwise, use $(VERSION) unless it is "unknown" and there is already
  20. # a 'version' file, in which case reuse the existing 'version' contents
  21. # and append "-dirty" if the contents do not already end in "-dirty".
  22. -version: $(VERSION_DEPS)
  23. +version:
  24. { (type git) >/dev/null 2>&1 && \
  25. V=$$(git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \
  26. --abbrev=7 --dirty) || \
  27. --
  28. 2.7.4