summaryrefslogtreecommitdiff
path: root/packaging/qemu-accel-armv7l.spec
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2014-03-26 15:55:18 +0100
committerMaciej Wereski <m.wereski@partner.samsung.com>2014-04-11 10:25:59 +0200
commit6658b98accc8a164720e642472594f9a6c8d5691 (patch)
tree96bd6e827c890475e0eb41d521a1a820e6ba052e /packaging/qemu-accel-armv7l.spec
parentca50f86f943b96de45d50929495024471f0060aa (diff)
downloadqemu-accel-6658b98accc8a164720e642472594f9a6c8d5691.tar.gz
qemu-accel-6658b98accc8a164720e642472594f9a6c8d5691.tar.bz2
qemu-accel-6658b98accc8a164720e642472594f9a6c8d5691.zip
These files are required for some gettext tools to work properly. Such tool is msgmerge, which fails with following message: msgmerge: Cannot convert from "ISO-8859-1" to "UTF-8". msgmerge relies on iconv(), and iconv() does not support this conversion. msgmerge for nb.po failed! Also change chmod 777 to 755 for /emul Change-Id: Iab1fa355521856511cb8c01b7658e8d97090e7a8 Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Diffstat (limited to 'packaging/qemu-accel-armv7l.spec')
-rw-r--r--packaging/qemu-accel-armv7l.spec11
1 files changed, 9 insertions, 2 deletions
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec
index c4f44aa..8b844cb 100644
--- a/packaging/qemu-accel-armv7l.spec
+++ b/packaging/qemu-accel-armv7l.spec
@@ -113,7 +113,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-armv7l-gcc48-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
@@ -199,7 +199,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}
@@ -245,6 +245,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