Enable Aarch64 01/25501/2 accepted/tizen/common/20140827.143025 submit/tizen/20140812.112543 submit/tizen_common/20140814.021031 submit/tizen_ivi/20140902.000000
authorIlya Palachev <i.palachev@samsung.com>
Tue, 5 Aug 2014 16:43:43 +0000 (20:43 +0400)
committerIlya Palachev <i.palachev@samsung.com>
Wed, 6 Aug 2014 07:24:26 +0000 (11:24 +0400)
Created symlink /opt/testing/lib -> /opt/testing/lib64

This is done in case when macro %{_lib} is not equal "lib"
(it's the case during the aarch64 build).

Without this patch all builds for architecture aarch64 will fail
because rpmlint will not be able to start because of the following
error:

[  199s] RPMLINT report:
[  199s] ===============
[  199s] qemu: Unsupported syscall: 219
[  199s] Could not find platform independent libraries <prefix>
[  199s] Could not find platform dependent libraries <exec_prefix>
[  199s] Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
[  199s] ImportError: No module named site

Change-Id: I746bbc149c1f4446442035ea7b26d80cc56189a8
Signed-off-by: Ilya Palachev <i.palachev@samsung.com>
packaging/rpmlint-mini.spec

index a668cee..46fbf0c 100644 (file)
@@ -111,6 +111,9 @@ export PYTHONPATH LD_LIBRARY_PATH
 $RPM_BUILD_ROOT/opt/testing/bin/python -tt -u -O $RPM_BUILD_ROOT/opt/testing/share/rpmlint/rpmlint.pyo --help || exit 1
 echo ".. ok"
 
+if [ "x%{_lib}" != "xlib" ] ; then
+    ln -s /opt/testing/%{_lib} $RPM_BUILD_ROOT/opt/testing/lib
+fi
 
 %files
 %manifest %{name}.manifest