summaryrefslogtreecommitdiff
path: root/package/tzdata
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-22 22:37:50 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-22 22:37:50 +0100
commit9436a026e2e23d207fbdcb9e8bc9b076e3573700 (patch)
treeadb1937bc90be8869a5f7c9636da84773414eb3b /package/tzdata
parent52b1b0100c53b1f8699955df618fcb47744e0a7e (diff)
activate GCC cflags check, cleanup FLAGS stuff in OpenADK.
* remove TCFLAGS/TLDFLAGS/TCPPFLAGS and only use TARGET_CFLAGS/TARGET_LDFLAGS/TARGET_CPPFLAGS, ... * activate GCC_HONOUR_COPTS and fix all packages to honour CFLAGS * use CC_FOR_BUILD, CFLAGS_FOR_BUILD, ... for all build compilation, remove HOST* variants * introduce KERNEL_MODULE_FLAGS for external kernel modules * mark rpm package as broken, mark syslinux for native builds only, mark libhugetlb for eglibc/glibc only usage
Diffstat (limited to 'package/tzdata')
-rw-r--r--package/tzdata/Makefile2
-rw-r--r--package/tzdata/patches/patch-Makefile64
2 files changed, 66 insertions, 0 deletions
diff --git a/package/tzdata/Makefile b/package/tzdata/Makefile
index fd496e883..e6a1bbda0 100644
--- a/package/tzdata/Makefile
+++ b/package/tzdata/Makefile
@@ -11,6 +11,8 @@ PKG_DESCR:= Timezone data (/usr/share/zoneinfo)
PKG_SECTION:= utils
PKG_URL:= ftp://elsie.nci.nih.gov/pub/
PKG_SITES:= ftp://elsie.nci.nih.gov/pub/
+PKG_NOPARALLEL:= 1
+
# Note that tzcode does NOT have the same version as tzdata does :[
DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz tzcode2010n.tar.gz
# both archives do not extract into subdirectories
diff --git a/package/tzdata/patches/patch-Makefile b/package/tzdata/patches/patch-Makefile
new file mode 100644
index 000000000..d8b759a8c
--- /dev/null
+++ b/package/tzdata/patches/patch-Makefile
@@ -0,0 +1,64 @@
+--- w-tzdata-2010o-1.orig/Makefile 2010-10-12 18:36:50.000000000 +0200
++++ w-tzdata-2010o-1/Makefile 2011-01-22 22:10:00.358658180 +0100
+@@ -212,13 +212,13 @@ GCC_DEBUG_FLAGS = -Dlint -g -O -fno-comm
+ # before the first Monday in January when a "%V" format is used and January 1
+ # falls on a Friday, Saturday, or Sunday.
+
+-CFLAGS=
++CFLAGS?=
+
+ # If you want zic's -s option used when installing, uncomment the next line
+ # ZFLAGS= -s
+
+ zic= ./zic
+-ZIC= $(zic) $(ZFLAGS)
++ZIC= ./zic_for_build $(ZFLAGS)
+
+ # The name of a Posix-compliant `awk' on your system.
+ AWK= nawk
+@@ -279,7 +279,7 @@ ENCHILADA= $(DOCS) $(SOURCES) $(DATA) $(
+
+ SHELL= /bin/sh
+
+-all: tzselect zic zdump $(LIBOBJS)
++all: zic_for_build tzselect zic zdump $(LIBOBJS)
+
+ ALL: all date
+
+@@ -309,6 +309,14 @@ INSTALL: ALL install date.1
+ -rm -f $(MANDIR)/man1/date.1
+ cp date.1 $(MANDIR)/man1/.
+
++zic_for_build:
++ $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) zic.c -o zic_build.o
++ $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) localtime.c -o localtime_build.o
++ $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) asctime.c -o asctime_build.o
++ $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) scheck.c -o scheck_build.o
++ $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) ialloc.c -o ialloc_build.o
++ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ zic_build.o localtime_build.o asctime_build.o scheck_build.o ialloc_build.o
++
+ zdump: $(TZDOBJS)
+ $(CC) $(CFLAGS) $(LFLAGS) $(TZDOBJS) $(LDLIBS) -o $@
+
+@@ -319,10 +327,10 @@ yearistype: yearistype.sh
+ cp yearistype.sh yearistype
+ chmod +x yearistype
+
+-posix_only: zic $(TDATA)
++posix_only: zic_for_build $(TDATA)
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR) -L /dev/null $(TDATA)
+
+-right_only: zic leapseconds $(TDATA)
++right_only: zic_for_build leapseconds $(TDATA)
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR) -L leapseconds $(TDATA)
+
+ # In earlier versions of this makefile, the other two directories were
+@@ -334,7 +342,7 @@ right_only: zic leapseconds $(TDATA)
+ # Therefore, the other two directories are now siblings of $(TZDIR).
+ # You must replace all of $(TZDIR) to switch from not using leap seconds
+ # to using them, or vice versa.
+-other_two: zic leapseconds $(TDATA)
++other_two: zic_for_build leapseconds $(TDATA)
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)-posix -L /dev/null $(TDATA)
+ $(ZIC) -y $(YEARISTYPE) \
+ -d $(TZDIR)-leaps -L leapseconds $(TDATA)