From 083290d47898e26c94ce99cedc2c6668c4e12bc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20Schr=C3=B6der?= Date: Tue, 23 Dec 2008 11:07:45 +0000 Subject: [PATCH] - fix builds where /etc/profile.d doesn't exist --- build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.7.4