[med-svn] r11421 - trunk/packages/fis-gtm/fis-gtm/trunk/debian

Yaroslav Halchenko yoh at alioth.debian.org
Thu Jun 21 15:24:55 UTC 2012


Author: yoh
Date: 2012-06-21 15:24:55 +0000 (Thu, 21 Jun 2012)
New Revision: 11421

Modified:
   trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog
   trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules
Log:
setup and use UTF-8 locale (thanks Matt Fischer for the blog post http://www.mattfischer.com/blog/?p=105)

to avoid setting up those environments again for the install command (not sure
if needed actually), I decided to export those globally.  To ensure that locale
is present ASAP so there are not spurious warnings/errors I am using 'DUMMY :=
$(shell ...' construct so it gets "evaluated" right when encountered, i.e.
before any dh command.

Modified: trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog
===================================================================
--- trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog	2012-06-21 15:18:42 UTC (rev 11420)
+++ trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog	2012-06-21 15:24:55 UTC (rev 11421)
@@ -30,6 +30,8 @@
     - provide dumped from web changelog for the most recent release
     - utilize gtminstall script for the 2nd-stage build/installation
     - get-orig-source: fetch tarball from github of pre-release snapshots
+    - setup and use UTF-8 locale (thanks Matt Fischer for the blog post
+      http://www.mattfischer.com/blog/?p=105)
   * debian/watch:
     - parse upstream's single number version (e.g. 55000 -> 5.5-000)
 

Modified: trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules
===================================================================
--- trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules	2012-06-21 15:18:42 UTC (rev 11420)
+++ trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules	2012-06-21 15:24:55 UTC (rev 11421)
@@ -17,6 +17,12 @@
 BINPKG := $(shell awk '/Package:.*[0-9]/{print $$2;}' debian/control)
 GTM_INSTALL_DIR := lib/fis-gtm/$(UAPIDIR)
 
+# Set up some global environment variables needed for correct locale support
+export LOCPATH=$(CURDIR)/debian/tmp/locale
+export LC_ALL=en_US.UTF-8
+# Setup locales asap
+DUMMY := $(shell [ -e debian/tmp/locale/en_US.UTF-8 ] || { mkdir -p debian/tmp/locale/ && localedef -f UTF-8 -i en_US debian/tmp/locale/en_US.UTF-8; })
+
 %:
 	dh $@
 




More information about the debian-med-commit mailing list