CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
tzdata: updated to 2016j
[crossrootfs.git] / tzdata / zic_host-makefile.patch
index 5772498c9d026747ac14a64e76cf8025e25f1779..fab8b9cc64dd8f8ca56912ac5eb6a53c521a129a 100644 (file)
@@ -1,57 +1,31 @@
---- Makefile.orig      2014-10-01 15:40:50.900427432 +0000
-+++ Makefile   2014-10-01 15:42:37.400428739 +0000
-@@ -231,8 +231,8 @@
+Binary files orig/.Makefile.un~ and new/.Makefile.un~ differ
+diff -pruN orig/Makefile new/Makefile
+--- orig/Makefile      2016-11-07 00:38:36.000000000 +0000
++++ new/Makefile       2017-02-15 18:46:50.541740747 +0000
+@@ -255,14 +255,14 @@ LEAPSECONDS=
  
- LDFLAGS=      $(LFLAGS)
+ # The zic command and its arguments.
  
 -zic=          ./zic
 -ZIC=          $(zic) $(ZFLAGS)
-+ZIC_HOST=             ./zic_host
-+ZIC=          $(ZIC_HOST) $(ZFLAGS)
++zic=          ./zic_host
++ZIC_HOST=             $(zic) $(ZFLAGS)
  
  ZFLAGS=
  
-@@ -347,7 +347,7 @@
-                       $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR) \
-                       $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
-                       $(DESTDIR)$(MANDIR)/man8
--              $(ZIC) -y $(YEARISTYPE) \
-+              $(ZIC_HOST) -y $(YEARISTYPE) \
-                       -d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
-               cp -f iso3166.tab zone.tab $(DESTDIR)$(TZDIR)/.
-               cp zic zdump $(DESTDIR)$(SBINDIR)/.
-@@ -380,11 +380,11 @@
-               $(AWK) -f leapseconds.awk leap-seconds.list >$@
+ # How to use zic to install tz binary files.
  
- posix_only:   zic $(TDATA)
--              $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) \
-+              $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) \
-                       -L /dev/null $(TDATA)
+-ZIC_INSTALL=  $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) $(LEAPSECONDS)
++ZIC_INSTALL=  $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) $(LEAPSECONDS)
  
- right_only:   zic leapseconds $(TDATA)
--              $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) \
-+              $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) \
-                       -L leapseconds $(TDATA)
+ # The name of a Posix-compliant 'awk' on your system.
+ AWK=          awk
+@@ -475,7 +475,7 @@ INSTALLARGS = \
+  PACKRATDATA='$(PACKRATDATA)' \
+  TZDIR=$(TZDIR) \
+  YEARISTYPE=$(YEARISTYPE) \
+- ZIC='$(ZIC)'
++ ZIC='$(ZIC_HOST)'
  
- # In earlier versions of this makefile, the other two directories were
-@@ -398,16 +398,16 @@
- # to using them, or vice versa.
- right_posix:  right_only leapseconds
-               rm -fr $(DESTDIR)$(TZDIR)/right
--                $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
-+                $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
-                       -L leapseconds $(TDATA)
--              $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
-+              $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
-                       -L /dev/null $(TDATA)
- posix_right:  posix_only leapseconds
-               rm -fr $(DESTDIR)$(TZDIR)-posix
--                $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
-+                $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
-                       -L /dev/null $(TDATA)
--              $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
-+              $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
-                       -L leapseconds $(TDATA)
- zones:                $(REDO)
+ # 'make install_data' installs one set of tz binary files.
+ # It can be tailored by setting LEAPSECONDS, PACKRATDATA, etc.