sys-libs/glibc: Add small locale install hack for riscv
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 21 Apr 2019 19:05:35 +0000 (21:05 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 21 Apr 2019 19:06:05 +0000 (21:06 +0200)
Package-Manager: Portage-2.3.63, Repoman-2.3.12
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
sys-libs/glibc/glibc-2.29-r2.ebuild
sys-libs/glibc/glibc-9999.ebuild

index 8f920eb85ac4fed5ac8978e392a4a49b24f6e29f..c0f14491fe7062ca1aed7494a049107bf50cbc53 100644 (file)
@@ -1262,6 +1262,17 @@ glibc_do_src_install() {
                fi
        done
 
+       # HACK: If we're building for riscv, we need to additionally make sure that
+       # we can find the locale archive afterwards
+       case ${CTARGET} in
+               riscv*)
+                       if [[ ! -e ${ED}/usr/lib/locale ]] ; then
+                               dosym ../$(get_libdir)/locale /usr/lib/locale
+                       fi
+                       ;;
+               *) ;;
+       esac
+
        cd "${S}"
 
        # Install misc network config files
index b01dc8236359cf48ecd1cd0a89a178116d5c4b5e..4951020d519928e7a4948ec9c914d8fb2e69b71a 100644 (file)
@@ -1263,6 +1263,17 @@ glibc_do_src_install() {
                fi
        done
 
+       # HACK: If we're building for riscv, we need to additionally make sure that
+       # we can find the locale archive afterwards
+       case ${CTARGET} in
+               riscv*)
+                       if [[ ! -e ${ED}/usr/lib/locale ]] ; then
+                               dosym ../$(get_libdir)/locale /usr/lib/locale
+                       fi
+                       ;;
+               *) ;;
+       esac
+
        cd "${S}"
 
        # Install misc network config files