[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r1322 - in glibc-package/trunk/debian: . control.in debhelper.in



Author: barbier
Date: 2006-04-04 19:32:17 +0000 (Tue, 04 Apr 2006)
New Revision: 1322

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/control
   glibc-package/trunk/debian/control.in/libc
   glibc-package/trunk/debian/control.in/libc0.1
   glibc-package/trunk/debian/control.in/main
   glibc-package/trunk/debian/debhelper.in/libc.install
   glibc-package/trunk/debian/debhelper.in/libc.links
   glibc-package/trunk/debian/debhelper.in/libc.postinst
   glibc-package/trunk/debian/debhelper.in/libc.preinst
   glibc-package/trunk/debian/rules
Log:
Re-apply r1302:
  * Split out timezone data in a separate package. It's a first step, it
    should finally be built from a separate source package.


Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/changelog	2006-04-04 19:32:17 UTC (rev 1322)
@@ -1,3 +1,11 @@
+glibc (2.3.6-6) UNRELEASED; urgency=low
+
+  [ Aurelien Jarno ]
+  * Split out timezone data in a separate package. It's a first step, it
+    should finally be built from a separate source package.
+
+ -- Denis Barbier <barbier@debian.org>  Tue,  4 Apr 2006 20:37:03 +0200
+
 glibc (2.3.6-5) unstable; urgency=low
 
   [ Denis Barbier ]

Modified: glibc-package/trunk/debian/control
===================================================================
--- glibc-package/trunk/debian/control	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/control	2006-04-04 19:32:17 UTC (rev 1322)
@@ -44,6 +44,15 @@
  savings over how this package used to be, where all locales were generated
  by default. This created a package that unpacked to an excess of 30 megs.
 
+Package: tzdata
+Architecture: all
+Section: libs
+Priority: required
+Replaces: libc0.1, libc0.3, libc6, libc6.1
+Description: GNU C Library: Timezone data
+ This package contains data files with rules for various timezones around
+ the world.
+
 Package: nscd
 Architecture: alpha amd64 arm armeb i386 m68k mips mipsel powerpc ppc64 sparc ia64 hppa s390 sh3 sh4 sh3eb sh4eb kfreebsd-i386 kfreebsd-amd64
 Section: admin
@@ -60,11 +69,11 @@
 Section: libs
 Priority: required
 Provides: ${locale-compat:Depends}
-Description: GNU C Library: Shared libraries and Timezone data
+Depends: tzdata
+Description: GNU C Library: Shared libraries
  Contains the standard libraries that are used by nearly all programs on
  the system. This package includes shared versions of the standard C library
  and the standard math library, as well as many others.
- Timezone data is also included.
 
 Package: libc6-dev
 Architecture: amd64 arm armeb i386 m68k mips mipsel powerpc ppc64 sparc s390 hppa sh3 sh4 sh3eb sh4eb
@@ -132,11 +141,11 @@
 Section: libs
 Priority: required
 Provides: ${locale-compat:Depends}
-Description: GNU C Library: Shared libraries and Timezone data
+Depends: tzdata
+Description: GNU C Library: Shared libraries
  Contains the standard libraries that are used by nearly all programs on
  the system. This package includes shared versions of the standard C library
  and the standard math library, as well as many others.
- Timezone data is also included.
 
 Package: libc6.1-dev
 Architecture: alpha ia64
@@ -204,11 +213,11 @@
 Section: libs
 Priority: required
 Provides: ${locale-compat:Depends}
-Description: GNU C Library: Shared libraries and Timezone data
+Depends: tzdata
+Description: GNU C Library: Shared libraries
  Contains the standard libraries that are used by nearly all programs on
  the system. This package includes shared versions of the standard C library
  and the standard math library, as well as many others.
- Timezone data is also included.
 
 Package: libc0.3-dev
 Architecture: hurd-i386
@@ -276,11 +285,11 @@
 Section: libs
 Priority: required
 Provides: ${locale-compat:Depends}
-Description: GNU C Library: Shared libraries and Timezone data
+Depends: tzdata
+Description: GNU C Library: Shared libraries
  Contains the standard libraries that are used by nearly all programs on
  the system. This package includes shared versions of the standard C library
  and the standard math library, as well as many others.
- Timezone data is also included.
 
 Package: libc0.1-dev
 Architecture: kfreebsd-i386 kfreebsd-amd64

Modified: glibc-package/trunk/debian/control.in/libc
===================================================================
--- glibc-package/trunk/debian/control.in/libc	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/control.in/libc	2006-04-04 19:32:17 UTC (rev 1322)
@@ -3,11 +3,11 @@
 Section: libs
 Priority: required
 Provides: ${locale-compat:Depends}
-Description: GNU C Library: Shared libraries and Timezone data
+Depends: tzdata
+Description: GNU C Library: Shared libraries
  Contains the standard libraries that are used by nearly all programs on
  the system. This package includes shared versions of the standard C library
  and the standard math library, as well as many others.
- Timezone data is also included.
 
 Package: @libc@-dev
 Architecture: @archs@

Modified: glibc-package/trunk/debian/control.in/libc0.1
===================================================================
--- glibc-package/trunk/debian/control.in/libc0.1	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/control.in/libc0.1	2006-04-04 19:32:17 UTC (rev 1322)
@@ -3,11 +3,11 @@
 Section: libs
 Priority: required
 Provides: ${locale-compat:Depends}
-Description: GNU C Library: Shared libraries and Timezone data
+Depends: tzdata
+Description: GNU C Library: Shared libraries
  Contains the standard libraries that are used by nearly all programs on
  the system. This package includes shared versions of the standard C library
  and the standard math library, as well as many others.
- Timezone data is also included.
 
 Package: libc0.1-dev
 Architecture: kfreebsd-i386 kfreebsd-amd64

Modified: glibc-package/trunk/debian/control.in/main
===================================================================
--- glibc-package/trunk/debian/control.in/main	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/control.in/main	2006-04-04 19:32:17 UTC (rev 1322)
@@ -44,6 +44,15 @@
  savings over how this package used to be, where all locales were generated
  by default. This created a package that unpacked to an excess of 30 megs.
 
+Package: tzdata
+Architecture: all
+Section: libs
+Priority: required
+Replaces: libc0.1, libc0.3, libc6, libc6.1
+Description: GNU C Library: Timezone data
+ This package contains data files with rules for various timezones around
+ the world.
+
 Package: nscd
 Architecture: @threads_archs@
 Section: admin

Modified: glibc-package/trunk/debian/debhelper.in/libc.install
===================================================================
--- glibc-package/trunk/debian/debhelper.in/libc.install	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/debhelper.in/libc.install	2006-04-04 19:32:17 UTC (rev 1322)
@@ -1,7 +1,6 @@
 debian/tmp-libc/lib/*.so* lib
 debian/tmp-libc/usr/lib/gconv/*.so usr/lib/gconv
 debian/tmp-libc/usr/lib/gconv/gconv-modules usr/lib/gconv
-debian/tmp-libc/usr/share/zoneinfo/* usr/share/zoneinfo
 debian/tmp-libc/usr/bin/iconv usr/bin
 debian/tmp-libc/usr/bin/locale usr/bin
 debian/tmp-libc/usr/bin/localedef usr/bin

Modified: glibc-package/trunk/debian/debhelper.in/libc.links
===================================================================
--- glibc-package/trunk/debian/debhelper.in/libc.links	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/debhelper.in/libc.links	2006-04-04 19:32:17 UTC (rev 1322)
@@ -1 +0,0 @@
-etc/localtime usr/share/zoneinfo/localtime 

Modified: glibc-package/trunk/debian/debhelper.in/libc.postinst
===================================================================
--- glibc-package/trunk/debian/debhelper.in/libc.postinst	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/debhelper.in/libc.postinst	2006-04-04 19:32:17 UTC (rev 1322)
@@ -10,29 +10,6 @@
     echo LIBC
 }
 
-zone_banner() {
-    TZBase=$(LC_ALL=C TZ=UTC0 date)
-    UTdate=$(TZ=UTC0 date -d "$TZBase")
-    TZdate=$(TZ="$timezone" date -d "$TZBase")
-    extra_info="
-Local time is now:      $TZdate.
-Universal Time is now:  $UTdate."
-    echo "Current default timezone: '$timezone'.$extra_info"
-    echo "Run 'tzconfig' if you wish to change it."
-}
-
-set_timezone() {
-    frontend=`echo "$DEBIAN_FRONTEND" | tr '[:upper:]' '[:lower:]'`
-    if [ "$frontend" = noninteractive ]; then
-        echo "Non-interactive mode, setting timezone to UTC.  Run tzconfig to change."
-        echo "UTC" >/etc/timezone
-        ln -sf /usr/share/zoneinfo/UTC /etc/localtime
-    else
-        echo "Running 'tzconfig' to set this system's timezone."
-        /usr/sbin/tzconfig
-    fi
-}
-
 # Borrowed from sysvinit's postinst.
 #	Function like update-rc.d but simpler & faster.
 #	Usage: updatercd basename start|stop NN runlevel .
@@ -84,25 +61,6 @@
 	done
 }
 
-realpath()
-{
-    fname=${1%/} # strips trailing '/'
-    while [ -L "$fname" ]; do
-	oldfname="$fname"
-	fname="$(command ls -l $fname)"
-	fname="${fname#*\> }"
-	if [ "$fname" = . ] ; then
-	    fname="$(dirname $oldfname)"
-	elif echo $fname | grep -vq '^/' - ; then
-	    fname="$(dirname $oldfname)/$fname"
-	fi
-    done
-    pushd $(dirname $fname) > /dev/null
-    fname=$(pwd -P)/$(basename $fname)
-    popd > /dev/null
-    echo $fname
-}
-
 # element() is a helper function for file-rc:
 element() {
     local element list IFS
@@ -378,45 +336,7 @@
 	    fi
 	fi # end upgrading and $preversion lt 2.3.5-1
     fi # Upgrading
-    if [ -f /etc/timezone.save ]; then
-	mv -fb /etc/timezone.save /etc/timezone
-    fi
-    if [ -f /etc/timezone ]; then
-	timezone=$(cat /etc/timezone)
-    else
-	timezone=Factory
-    fi
-    if [ "$timezone" = Factory ]; then
-	if [ -L /etc/localtime ]; then
-	    localtime_link=$(realpath /etc/localtime)
-	    if [ -f "$localtime_link" ]; then
-		link_not_dangling=true
-	    fi
-	    if [ "$link_not_dangling" = true ]; then
-		timezone=$(echo $localtime_link | sed 's%^/usr/share/zoneinfo/%%')
-	    fi
-	fi
-    fi
-    if [ -f /usr/share/zoneinfo/$timezone ] && [ "$timezone" != Factory ]
-    then
-#	zic -l $timezone
-	rm -f /etc/localtime && \
-	ln -sf /usr/share/zoneinfo/$timezone /etc/localtime
-	zone_banner
-    # Handle problem caused by lame old tzconfig.
-    elif [ "$timezone" = "US/Pacific-New" ]
-    then
-	echo "US/Pacific" > /etc/timezone
-#	zic -l US/Pacific
-	rm -f /etc/localtime && \
-	ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime
-	zone_banner
-    else
-	set_timezone
-    fi
-    if [ "$(date +%Z)" = "/etc/localtime" ]; then
-	set_timezone
-    fi
+
 #    # DO NOT FOLLOW THIS EXAMPLE IN OTHER PACKAGES
      updatercd glibc.sh start 01 S .
      if [ -x /usr/sbin/invoke-rc.d ]; then

Modified: glibc-package/trunk/debian/debhelper.in/libc.preinst
===================================================================
--- glibc-package/trunk/debian/debhelper.in/libc.preinst	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/debhelper.in/libc.preinst	2006-04-04 19:32:17 UTC (rev 1322)
@@ -4,17 +4,6 @@
 
 if [ "$1" = upgrade ]
 then
-    if [ -f /var/lib/dpkg/info/timezone.postrm ]; then
-	rm -f /var/lib/dpkg/info/timezone.postrm
-    fi
-    if [ -f /var/lib/dpkg/info/timezones.postrm ]; then
-	rm -f /var/lib/dpkg/info/timezones.postrm
-    fi
-    if dpkg --compare-versions "$2" lt 2.1.3-8; then
-	if [ -s /etc/timezone ]; then
-	    cp -a /etc/timezone /etc/timezone.save
-	fi
-    fi
     if dpkg --compare-versions "$2" le 2.2.2-4 && test -e /lib/libdb.so.3; then
 	# Make upgrades to newer libdb.so.3 easier
 	cat /lib/libdb.so.3 > /lib/libdb.so.3.old

Modified: glibc-package/trunk/debian/rules
===================================================================
--- glibc-package/trunk/debian/rules	2006-04-04 19:29:10 UTC (rev 1321)
+++ glibc-package/trunk/debian/rules	2006-04-04 19:32:17 UTC (rev 1322)
@@ -118,7 +118,7 @@
 curpass = $(filter-out %_,$(subst _,_ ,$@))
 
 DEB_ARCH_REGULAR_PACKAGES = $(libc) $(libc)-dev $(libc)-dbg $(libc)-prof $(libc)-pic
-DEB_INDEP_REGULAR_PACKAGES = glibc-doc locales
+DEB_INDEP_REGULAR_PACKAGES = glibc-doc locales tzdata
 DEB_UDEB_PACKAGES = $(libc)-udeb libnss-dns-udeb libnss-files-udeb
 
 # Generic kernel version check



Reply to: