From b2f3fbd7436a7ecb7a306a82ed3a678c01ea3522 Mon Sep 17 00:00:00 2001 From: Turbo Fredriksson Date: Mon, 9 Jun 2014 23:27:09 +0200 Subject: [PATCH] Set LANG to a reasonable default (C) before calling 'rpmbuild' to avoid rpmbuild failing on the translated date string in the changelog. Closes: zfsonlinux/spl#306 --- config/rpm.am | 4 ++-- scripts/kmodtool | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/rpm.am b/config/rpm.am index 8b33bb5b6903..311c754d429d 100644 --- a/config/rpm.am +++ b/config/rpm.am @@ -63,7 +63,7 @@ srpm-common: dist rpmbuild="$$rpmbuild" \ rpmspec="$$rpmspec" \ rpm-local || exit 1; \ - $(RPMBUILD) \ + LANG=C $(RPMBUILD) \ --define "_tmppath $$rpmbuild/TMP" \ --define "_topdir $$rpmbuild" \ $(def) -bs $$rpmbuild/SPECS/$$rpmspec || exit 1; \ @@ -79,7 +79,7 @@ rpm-common: rpmbuild="$$rpmbuild" \ rpmspec="$$rpmspec" \ rpm-local || exit 1; \ - ${RPMBUILD} \ + LANG=C ${RPMBUILD} \ --define "_tmppath $$rpmbuild/TMP" \ --define "_topdir $$rpmbuild" \ $(def) --rebuild $$rpmpkg || exit 1; \ diff --git a/scripts/kmodtool b/scripts/kmodtool index 852ade021d3c..ce3f042947a5 100755 --- a/scripts/kmodtool +++ b/scripts/kmodtool @@ -64,7 +64,7 @@ print_akmodtemplate () cat <