[DRE-commits] [ruby-delayed-job] 01/01: Fix FTBFS by using proper locales

Balasankar C balasankarc-guest at moszumanska.debian.org
Thu Jul 9 12:06:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-delayed-job.

commit 7d5340ac673cc5d76171f06de9be63009df09178
Author: Balasankar C <balasankarc at autistici.org>
Date:   Thu Jul 9 17:36:45 2015 +0530

    Fix FTBFS by using proper locales
---
 debian/changelog | 6 ++++++
 debian/control   | 2 ++
 debian/rules     | 9 ++++++++-
 3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 13b22dd..8440b3b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ruby-delayed-job (4.0.6-2) unstable; urgency=medium
+
+  * Fix FTBFS by using proper locales while building 
+
+ -- Balasankar C <balasankarc at autistici.org>  Thu, 09 Jul 2015 17:28:41 +0530
+
 ruby-delayed-job (4.0.6-1) unstable; urgency=medium
 
   * Initial release (Closes: #786900)
diff --git a/debian/control b/debian/control
index a2934ad..b563dca 100644
--- a/debian/control
+++ b/debian/control
@@ -5,12 +5,14 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
 Uploaders: Balasankar C <balasankarc at autistici.org>
 Build-Depends: debhelper (>= 7.0.50~),
                gem2deb,
+               locales,
                rake,
                ruby-actionmailer,
                ruby-activerecord,
                ruby-activesupport,
                ruby-rspec,
                ruby-sqlite3
+Build-Conflicts: locales-all
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-delayed-job.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-delayed-job.git;a=summary
diff --git a/debian/rules b/debian/rules
index 94fde2a..63fea73 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,8 +11,15 @@
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
+
 %:
-	dh $@ --buildsystem=ruby --with ruby
+	mkdir -p debian/build/locale
+	localedef -f UTF-8 -i en_US debian/build/locale/en_US.UTF-8
+	LOCPATH=$(CURDIR)/debian/build/locale LC_ALL=en_US.UTF-8 dh $@ --buildsystem=ruby --with ruby
+
+override_dh_clean:
+	LOCPATH=$(CURDIR)/debian/build/locale LC_ALL=en_US.UTF-8 dh_clean --buildsystem=ruby
+	rm -rf debian/build/
 
 override_dh_install:
 	chmod +x debian/ruby-delayed-job/usr/lib/ruby/vendor_ruby/generators/delayed_job/templates/script

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-delayed-job.git



More information about the Pkg-ruby-extras-commits mailing list