From: Ilya Palachev Date: Tue, 5 Aug 2014 16:43:43 +0000 (+0400) Subject: Enable Aarch64 X-Git-Tag: submit/tizen_common/20140814.021031 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen_common%2F20140814.021031;p=platform%2Fupstream%2Frpmlint-mini.git Enable Aarch64 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 [ 199s] Could not find platform dependent libraries [ 199s] Consider setting $PYTHONHOME to [:] [ 199s] ImportError: No module named site Change-Id: I746bbc149c1f4446442035ea7b26d80cc56189a8 Signed-off-by: Ilya Palachev --- 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