[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Available locales in a buildd



Hello.

I'm looking at some of the reasons packages do not build reproducibly,
and one of them is different locale settings.

Let's say that I want to ensure that some UTF-8 locale is available
during the build. It seems my options are the following:

* Add a "Build-Depends: locales-all"

The locales-all package is very big, but I guess it would work.

* Use the trick in the apertium packages, namely:

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


Any other way?


Thanks.


Reply to: