diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-04-21 21:05:35 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-04-21 21:06:05 +0200 |
commit | fedcbfbed423e21c79c2088f3776e918473fd814 (patch) | |
tree | a33f3450f71164aa217747702a5944f3d36ae60e | |
parent | 5a0a541e5695ded2639283d2fde7ba1ece03014b (diff) | |
download | gentoo-fedcbfbed423e21c79c2088f3776e918473fd814.tar.gz gentoo-fedcbfbed423e21c79c2088f3776e918473fd814.tar.xz |
sys-libs/glibc: Add small locale install hack for riscv
Package-Manager: Portage-2.3.63, Repoman-2.3.12
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r-- | sys-libs/glibc/glibc-2.29-r2.ebuild | 11 | ||||
-rw-r--r-- | sys-libs/glibc/glibc-9999.ebuild | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/sys-libs/glibc/glibc-2.29-r2.ebuild b/sys-libs/glibc/glibc-2.29-r2.ebuild index 8f920eb85ac..c0f14491fe7 100644 --- a/sys-libs/glibc/glibc-2.29-r2.ebuild +++ b/sys-libs/glibc/glibc-2.29-r2.ebuild @@ -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 diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild index b01dc823635..4951020d519 100644 --- a/sys-libs/glibc/glibc-9999.ebuild +++ b/sys-libs/glibc/glibc-9999.ebuild @@ -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 |