From: Michael Schröder Date: Tue, 23 Dec 2008 11:07:45 +0000 (+0000) Subject: - fix builds where /etc/profile.d doesn't exist X-Git-Tag: obs_2.0~297 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=083290d47898e26c94ce99cedc2c6668c4e12bc1;p=tools%2Fobs-build.git - fix builds where /etc/profile.d doesn't exist --- diff --git a/build b/build index 2e50eab..b3d76a4 100755 --- a/build +++ b/build @@ -1153,7 +1153,9 @@ for SPECFILE in "${SPECFILES[@]}" ; do # nasty hack to prevent rpath on known paths # FIXME: do this only for suse - echo "export SUSE_IGNORED_RPATHS=/etc/ld.so.conf" > "$BUILD_ROOT"/etc/profile.d/buildsystem.sh + if test -d "$BUILD_ROOT/etc/profile.d" ; then + echo "export SUSE_IGNORED_RPATHS=/etc/ld.so.conf" > "$BUILD_ROOT/etc/profile.d/buildsystem.sh" + fi # # now clean up RPM building directories