summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Palachev <i.palachev@samsung.com>2014-08-05 20:43:43 +0400
committerIlya Palachev <i.palachev@samsung.com>2014-08-06 11:24:26 +0400
commit1be8d9a8d0522d67bad78572c6f218d4f5ac9f82 (patch)
tree7efffe5f475c0245863bbe3de1c8590783aafaf2
parent811427acbd1eea9ee2031905e97d35e7c3461320 (diff)
downloadrpmlint-mini-1be8d9a8d0522d67bad78572c6f218d4f5ac9f82.tar.gz
rpmlint-mini-1be8d9a8d0522d67bad78572c6f218d4f5ac9f82.tar.bz2
rpmlint-mini-1be8d9a8d0522d67bad78572c6f218d4f5ac9f82.zip
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>
-rw-r--r--packaging/rpmlint-mini.spec3
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/rpmlint-mini.spec b/packaging/rpmlint-mini.spec
index a668cee..46fbf0c 100644
--- a/packaging/rpmlint-mini.spec
+++ b/packaging/rpmlint-mini.spec
@@ -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