summaryrefslogtreecommitdiff
path: root/macros.in
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-08-13 17:11:47 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-08-13 17:11:47 +0300
commit1d61f3e34b677c0b1f6d9f5de8f6996730a0261f (patch)
treee46862f5214b42f668db101c5767540604f69f17 /macros.in
parentde218d7069294c615dd45cf274dd109ebbdce335 (diff)
downloadlibrpm-tizen-1d61f3e34b677c0b1f6d9f5de8f6996730a0261f.tar.gz
librpm-tizen-1d61f3e34b677c0b1f6d9f5de8f6996730a0261f.tar.bz2
librpm-tizen-1d61f3e34b677c0b1f6d9f5de8f6996730a0261f.zip
Build script environment tweaks to improve reproducability
- unset CDPATH (RhBug:426955) and DISPLAY environment variables - always run in C locale
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/macros.in b/macros.in
index e3df7ee04..02c7c91ac 100644
--- 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}\"\