r1302 - in glibc-package/trunk/debian: . control.in debhelper.in
Author: aurel32
Date: 2006-03-22 22:09:41 +0000 (Wed, 22 Mar 2006)
New Revision: 1302
Modified:
glibc-package/trunk/debian/changelog
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:
* 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-03-20 22:09:42 UTC (rev 1301)
+++ glibc-package/trunk/debian/changelog 2006-03-22 22:09:41 UTC (rev 1302)
@@ -4,6 +4,10 @@
* Add am_pm formatting information to en_NZ. (Closes: #356328)
* Add interlingua locale. (Closes: #224756) Thanks Alberto Mardegan
+ [ 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> Mon, 20 Mar 2006 21:36:11 +0100
glibc (2.3.6-4) unstable; urgency=low
Modified: glibc-package/trunk/debian/control.in/libc
===================================================================
--- glibc-package/trunk/debian/control.in/libc 2006-03-20 22:09:42 UTC (rev 1301)
+++ glibc-package/trunk/debian/control.in/libc 2006-03-22 22:09:41 UTC (rev 1302)
@@ -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-03-20 22:09:42 UTC (rev 1301)
+++ glibc-package/trunk/debian/control.in/libc0.1 2006-03-22 22:09:41 UTC (rev 1302)
@@ -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-03-20 22:09:42 UTC (rev 1301)
+++ glibc-package/trunk/debian/control.in/main 2006-03-22 22:09:41 UTC (rev 1302)
@@ -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-03-20 22:09:42 UTC (rev 1301)
+++ glibc-package/trunk/debian/debhelper.in/libc.install 2006-03-22 22:09:41 UTC (rev 1302)
@@ -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-03-20 22:09:42 UTC (rev 1301)
+++ glibc-package/trunk/debian/debhelper.in/libc.links 2006-03-22 22:09:41 UTC (rev 1302)
@@ -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-03-20 22:09:42 UTC (rev 1301)
+++ glibc-package/trunk/debian/debhelper.in/libc.postinst 2006-03-22 22:09:41 UTC (rev 1302)
@@ -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-03-20 22:09:42 UTC (rev 1301)
+++ glibc-package/trunk/debian/debhelper.in/libc.preinst 2006-03-22 22:09:41 UTC (rev 1302)
@@ -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-03-20 22:09:42 UTC (rev 1301)
+++ glibc-package/trunk/debian/rules 2006-03-22 22:09:41 UTC (rev 1302)
@@ -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: