--ignorearch added for rpm
authorVyacheslav Barinov <v.barinov@samsung.com>
Mon, 18 Jan 2016 07:51:29 +0000 (10:51 +0300)
committerDongkyun, Son <dongkyun.s@samsung.com>
Sun, 22 May 2016 11:06:00 +0000 (20:06 +0900)
Without the flag build will only work for native build roots but not for OBS
cross-builds

Change-Id: If24f0675ea01e925792480944736ddc468a0ff55
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
packaging/gcc-aarch64.spec
packaging/gcc-armv7l.spec
packaging/gcc.spec

index 9a754bf..21c904e 100644 (file)
@@ -632,7 +632,7 @@ pushd ${HOME}
 for pkg in gmp mpfr mpc isl cloog-isl; do
     sh -c "rpmbuild ${RPMBUILD_CMDLINE} /home/abuild/rpmbuild/SOURCES/${pkg}.spec"
     RPM_NAME=$(find '/home/abuild/rpmbuild/RPMS' -name "${pkg}-*.rpm" -not -name '*.src.rpm' -not -name '*debug*')
-    sudo rpm -i ${RPM_NAME}
+    sudo rpm -i --ignorearch ${RPM_NAME}
     find '/home/abuild/rpmbuild/' -name "${pkg}*.rpm" -delete
 done
 popd
index 4763720..9bc314d 100644 (file)
@@ -632,7 +632,7 @@ pushd ${HOME}
 for pkg in gmp mpfr mpc isl cloog-isl; do
     sh -c "rpmbuild ${RPMBUILD_CMDLINE} /home/abuild/rpmbuild/SOURCES/${pkg}.spec"
     RPM_NAME=$(find '/home/abuild/rpmbuild/RPMS' -name "${pkg}-*.rpm" -not -name '*.src.rpm' -not -name '*debug*')
-    sudo rpm -i ${RPM_NAME}
+    sudo rpm -i --ignorearch ${RPM_NAME}
     find '/home/abuild/rpmbuild/' -name "${pkg}*.rpm" -delete
 done
 popd
index d067a3c..e6263b1 100644 (file)
@@ -629,7 +629,7 @@ pushd ${HOME}
 for pkg in gmp mpfr mpc isl cloog-isl; do
     sh -c "rpmbuild ${RPMBUILD_CMDLINE} /home/abuild/rpmbuild/SOURCES/${pkg}.spec"
     RPM_NAME=$(find '/home/abuild/rpmbuild/RPMS' -name "${pkg}-*.rpm" -not -name '*.src.rpm' -not -name '*debug*')
-    sudo rpm -i ${RPM_NAME}
+    sudo rpm -i --ignorearch ${RPM_NAME}
     find '/home/abuild/rpmbuild/' -name "${pkg}*.rpm" -delete
 done
 popd