summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/rpm.am4
-rwxr-xr-xscripts/kmodtool2
2 files changed, 3 insertions, 3 deletions
diff --git a/config/rpm.am b/config/rpm.am
index 8b33bb5b6..311c754d4 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 852ade021..ce3f04294 100755
--- a/scripts/kmodtool
+++ b/scripts/kmodtool
@@ -64,7 +64,7 @@ print_akmodtemplate ()
cat <<EOF
%global akmod_install mkdir -p \$RPM_BUILD_ROOT/%{_usrsrc}/akmods/; \\\
-rpmbuild --define "_sourcedir %{_sourcedir}" \\\
+LANG=C rpmbuild --define "_sourcedir %{_sourcedir}" \\\
--define "_srcrpmdir \$RPM_BUILD_ROOT/%{_usrsrc}/akmods/" \\\
-bs --nodeps %{_specdir}/%{name}.spec ; \\\
ln -s \$(ls \$RPM_BUILD_ROOT/%{_usrsrc}/akmods/) \$RPM_BUILD_ROOT/%{_usrsrc}/akmods/${kmodname}-kmod.latest