Bug#812899: libsm: please make the build reproducible (locale)
On Mon, Feb 1, 2016 at 16:20:22 +0100, Jérémy Bobbio wrote: > Julien Cristau: > > On Wed, Jan 27, 2016 at 18:48:18 +0100, Jérémy Bobbio wrote: > > > > > Source: libsm > > > Version: 2:1.2.2-1 > > > Severity: wishlist > > > Tags: patch > > > User: reproducible-bui...@lists.alioth.debian.org > > > Usertags: locale > > > > > > Hi! > > > > > > While working on the “reproducible builds” effort [1], we have noticed > > > that libsm could not be built reproducibly. > > > > > > The attached patch makes sure the text documentation is always generated > > > using a UTF-8 locale. Once applied, libsm can be built reproducibly in > > > our current experimental framework. > > > > > That patch is not suitable for upstream, since the C.UTF-8 locale is > > non-standard. > > Fair enough. Any suggestions then? Using `en_US.UTF-8` and `locales-all` > in Build-Depends? Unsetting LANG, LC_ALL and LC_CTYPE? > en_US.UTF-8 is also not guaranteed, so not suitable; C would work, but then generate uglier docs. The only workaround I can think of right now is to set LC_ALL=C.UTF-8 in debian/rules directly rather than shoe-horning that into the upstream makefile. Cheers, Julien
Bug#812899: libsm: please make the build reproducible (locale)
Julien Cristau: > On Wed, Jan 27, 2016 at 18:48:18 +0100, Jérémy Bobbio wrote: > > > Source: libsm > > Version: 2:1.2.2-1 > > Severity: wishlist > > Tags: patch > > User: reproducible-bui...@lists.alioth.debian.org > > Usertags: locale > > > > Hi! > > > > While working on the “reproducible builds” effort [1], we have noticed > > that libsm could not be built reproducibly. > > > > The attached patch makes sure the text documentation is always generated > > using a UTF-8 locale. Once applied, libsm can be built reproducibly in > > our current experimental framework. > > > That patch is not suitable for upstream, since the C.UTF-8 locale is > non-standard. Fair enough. Any suggestions then? Using `en_US.UTF-8` and `locales-all` in Build-Depends? Unsetting LANG, LC_ALL and LC_CTYPE? -- Lunar.''`. lu...@debian.org: :Ⓐ : # apt-get install anarchism `. `'` `- signature.asc Description: Digital signature
Processed: Re: Bug#812899: libsm: please make the build reproducible (locale)
Processing control commands: > tags -1 - patch Bug #812899 [src:libsm] libsm: please make the build reproducible (locale) Removed tag(s) patch. -- 812899: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812899 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#812899: libsm: please make the build reproducible (locale)
Control: tags -1 - patch On Wed, Jan 27, 2016 at 18:48:18 +0100, Jérémy Bobbio wrote: > Source: libsm > Version: 2:1.2.2-1 > Severity: wishlist > Tags: patch > User: reproducible-bui...@lists.alioth.debian.org > Usertags: locale > > Hi! > > While working on the “reproducible builds” effort [1], we have noticed > that libsm could not be built reproducibly. > > The attached patch makes sure the text documentation is always generated > using a UTF-8 locale. Once applied, libsm can be built reproducibly in > our current experimental framework. > That patch is not suitable for upstream, since the C.UTF-8 locale is non-standard. Cheers, Julien
Bug#812899: libsm: please make the build reproducible (locale)
Source: libsm Version: 2:1.2.2-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: locale Hi! While working on the “reproducible builds” effort [1], we have noticed that libsm could not be built reproducibly. The attached patch makes sure the text documentation is always generated using a UTF-8 locale. Once applied, libsm can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds -- Lunar.''`. lu...@debian.org: :Ⓐ : # apt-get install anarchism `. `'` `- From f23f58eb98288fc3178d582dc03a77a332dc82fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?=Date: Wed, 27 Jan 2016 18:32:31 +0100 Subject: [PATCH] Make sure text documentation is generated as UTF-8 Otherwise, if the package is built on a system with a locale using another character encoding, the resulting text documentation might not be readable on other systems. --- docbook.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docbook.am b/docbook.am index bba4d54..0c1a086 100644 --- a/docbook.am +++ b/docbook.am @@ -43,7 +43,7 @@ if HAVE_XMLTO_TEXT shelf_DATA += $(docbook:.xml=.txt) %.txt: %.xml $(chapters) - $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< + LC_ALL=C.UTF-8 $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< endif HAVE_XMLTO_TEXT if HAVE_FOP -- 2.7.0 signature.asc Description: Digital signature