Build script environment tweaks to improve reproducability
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 13 Aug 2009 14:11:47 +0000 (17:11 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 13 Aug 2009 14:11:47 +0000 (17:11 +0300)
- unset CDPATH (RhBug:426955) and DISPLAY environment variables
- always run in C locale

macros.in

index e3df7ee..02c7c91 100644 (file)
--- a/macros.in
+++ b/macros.in
@@ -807,6 +807,9 @@ print (t)\
   RPM_PACKAGE_VERSION=\"%{version}\"\
   RPM_PACKAGE_RELEASE=\"%{release}\"\
   export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE\
+  LANG=C\
+  export LANG\
+  unset CDPATH DISPLAY ||:\
   %{?buildroot:RPM_BUILD_ROOT=\"%{u2p:%{buildroot}}\"\
   export RPM_BUILD_ROOT}\
   %{?_javaclasspath:CLASSPATH=\"%{_javaclasspath}\"\