SHA256
3
0
forked from pool/cmake

Accepting request 257363 from home:olh:branches:devel:tools:building

- Remove . from PATH to fix check

Required for PMBS, and appearently also for OBS SLE11 build.

OBS-URL: https://build.opensuse.org/request/show/257363
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=178
This commit is contained in:
Tomáš Chvátal 2014-10-17 12:21:45 +00:00 committed by Git OBS Bridge
parent 2eaa9529bb
commit ff6e8760e9
2 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 17 11:53:37 UTC 2014 - olaf@aepfle.de
- Remove . from PATH to fix check
-------------------------------------------------------------------
Fri Sep 12 16:59:17 UTC 2014 - idonmez@suse.com

View File

@ -86,6 +86,30 @@ sed -i \
%fdupes %{buildroot}%{_datadir}/cmake
%check
%if 0%{?suse_version} <= 1140
# http://public.kitware.com/Bug/view.php?id=13237
# 0013237: 25 - FindPackageTest (Failed)
# Our 11.4 and older have . in PATH, as a result check fails.
# Having '.' in PATH is not needed anyway, so remove it here.
oIFS=$IFS
IFS=:
NPATH=
for path in $PATH
do
if test "$path" = "."
then
continue
fi
if test -n "$NPATH"
then
NPATH="$NPATH:$path"
else
NPATH="$path"
fi
done
IFS=$oIFS
export PATH=$NPATH
%endif
# Excluded tests:
# TestUpload: uses internet connection
# SimpleInstall: seems to fail due to RPATH strictness