summaryrefslogtreecommitdiff
path: root/packaging/qemu-accel-armv7el.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/qemu-accel-armv7el.spec')
-rw-r--r--packaging/qemu-accel-armv7el.spec11
1 files changed, 9 insertions, 2 deletions
diff --git a/packaging/qemu-accel-armv7el.spec b/packaging/qemu-accel-armv7el.spec
index c851a8b..1482e00 100644
--- a/packaging/qemu-accel-armv7el.spec
+++ b/packaging/qemu-accel-armv7el.spec
@@ -154,7 +154,7 @@ cp -a /usr/share/icecream-envs/%{icecream_cross_env}.tar.gz \
# And extract it for direct usage
tar xvz -C %buildroot%{our_path}/usr/share/icecream-envs/%{icecream_cross_env} -f /usr/share/icecream-envs/cross-armv7el-gcc47-icecream-backend_*.tar.gz
# It needs a tmp working directory which is writable
-install -d -m0777 %buildroot%{our_path}/usr/share/icecream-envs
+install -d -m0755 %buildroot%{our_path}/usr/share/icecream-envs
%endif
for binary in $binaries
@@ -234,7 +234,7 @@ exec -a /usr/bin/as %{our_path}/usr/bin/as.real -meabi=5 "$@"
chmod +x %{buildroot}%{our_path}/usr/bin/as
# allow abuild to do the mv
-chmod 777 %{buildroot}/emul
+chmod 755 %{buildroot}/emul
# make cross ld work with emulated compilers
mv %{buildroot}%{our_path}/usr/arm-tizen-linux-gnueabi/bin/ld{,.real}
@@ -279,6 +279,13 @@ cp -L /usr/bin/qemu-arm{,-binfmt} %buildroot/qemu/
export NO_BRP_CHECK_RPATH="true"
+# Install glibc-locale, otherwise msgmerge >= 0.18.3 fails
+cp -R /usr/lib/{gconv,locale} %{buildroot}%{our_path}/usr/lib
+cp -R /usr/share/locale %{buildroot}%{our_path}/usr/share
+# Fix permissions for abuild
+chmod 755 %{buildroot}%{our_path}/usr/lib/{gconv,locale}
+chmod 755 %{buildroot}%{our_path}/usr/share/locale
+
%post
set -x
if [ $(uname -m) = armv7l ]; then