[med-svn] [orthanc] 05/07: generating temporary locale
Sebastien Jodogne
jodogne-guest at moszumanska.debian.org
Thu Jul 20 10:28:58 UTC 2017
This is an automated email from the git hooks/post-receive script.
jodogne-guest pushed a commit to branch master
in repository orthanc.
commit 863282524fb24b1ebbe27cdcb52679a616afb9f2
Author: jodogne-guest <s.jodogne at gmail.com>
Date: Thu Jul 20 12:10:17 2017 +0200
generating temporary locale
---
debian/rules | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/debian/rules b/debian/rules
index ffd0e79..e8fe7fb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -59,13 +59,14 @@ override_dh_auto_build:
ln -s /usr/share/javascript/jquery/jquery.min.js Build/OrthancPluginDocumentation/doc/jquery.js
override_dh_auto_test:
- # Install the en_US locale (required for case-insensitive
- # comparison of strings with accents)
- locale-gen en_US
- locale-gen en_US.UTF-8
- sudo update-locale
-
- ( cd Build; ./UnitTests )
+ # Generate the en_US.UTF-8 locale before running tests
+ # (required for case-insensitive comparison of strings with
+ # accents). Full explanation:
+ # https://www.mattfischer.com/blog/archives/105
+ mkdir -p $(DESTDIR)/locale/
+ localedef -f UTF-8 -i en_US $(DESTDIR)/locale/en_US.UTF-8/
+
+ ( cd Build; LOCPATH=$(DESTDIR)/locale/ ./UnitTests )
override_dh_clean:
rm -rf ThirdPartyDownloads
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/orthanc.git
More information about the debian-med-commit
mailing list