Your message dated Sat, 10 Dec 2016 19:06:57 +0530
with message-id 
<capdygezyzhv4ia+vktjjlohasrymt9m3vamvjihhxjdzmoj...@mail.gmail.com>
and subject line Fixed in 0.9.3~r61328-1
has caused the Debian Bug report #802481,
regarding apertium-en-ca: please make the build reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
802481: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802481
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: apertium-en-ca
Version: 0.9.3~r61232-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that apertium-en-ca (as well as other apertium-*-* packages) could not
be built reproducibly.

The problem is that these packages try to run localedef to compile
files for the en_US.UTF-8 locale in a nonstandard directory. This is
problematic because localedef needs the locales package to work, but
"Build-Depends: locales" isn't guaranteed to install locales if
locales-all is already installed (because locales-all contains
"Provides: locales" in its control file) and locales-all isn't good
enough for localedef. The solution is to simply build-depend on
locales-all instead of locales and use the locale files in the default
location; here is a patch to do that. (While the patch is against the
apertium-en-ca source package, essentially identical patches should be
applied to the other apertium-*-* packages as well.)

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -ur apertium-en-ca-0.9.3~r61232.orig/debian/control apertium-en-ca-0.9.3~r61232/debian/control
--- apertium-en-ca-0.9.3~r61232.orig/debian/control	2015-07-09 17:21:03.000000000 +0300
+++ apertium-en-ca-0.9.3~r61232/debian/control	2015-10-20 15:33:17.591980258 +0300
@@ -9,7 +9,7 @@
                debhelper (>= 8.0),
                dh-autoreconf,
                gawk,
-               locales,
+               locales-all,
                pkg-config (>= 0.21)
 Standards-Version: 3.9.6
 Homepage: http://apertium.org/
diff -ur apertium-en-ca-0.9.3~r61232.orig/debian/rules apertium-en-ca-0.9.3~r61232/debian/rules
--- apertium-en-ca-0.9.3~r61232.orig/debian/rules	2015-07-09 16:46:04.000000000 +0300
+++ apertium-en-ca-0.9.3~r61232/debian/rules	2015-10-20 15:33:01.701610251 +0300
@@ -20,8 +20,5 @@
 	dh $@ --with autoreconf
 
 override_dh_auto_build:
-	mkdir -p debian/tmp/locale/
-	localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/
-	export LOCPATH=$(CURDIR)/debian/tmp/locale/ && \
 	export LC_ALL=en_US.UTF-8 && \
 	dh_auto_build

--- End Message ---
--- Begin Message ---
Package: apertium-en-ca
Version: 0.9.3~r61328-1

This is fixed. Closing.

-- 
Kartik Mistry | IRC: kart_
{0x1f1f, kartikm}.wordpress.com

--- End Message ---
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to