Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 351322 Details for
Bug 473484
sys-libs/glibc: locale-gen Prefix support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
locale-gen_prefix.patch
locale-gen_prefix.patch (text/plain), 2.24 KB, created by
Benda Xu
on 2013-06-18 17:09:56 UTC
(
hide
)
Description:
locale-gen_prefix.patch
Filename:
MIME Type:
Creator:
Benda Xu
Created:
2013-06-18 17:09:56 UTC
Size:
2.24 KB
patch
obsolete
>bug #473484 >Index: work/extra/locale/locale-gen >=================================================================== >--- work.orig/extra/locale/locale-gen >+++ work/extra/locale/locale-gen >@@ -8,7 +8,7 @@ unset POSIXLY_CORRECT IFS > umask 0022 > > argv0=${0##*/} >-source /etc/init.d/functions.sh || { >+source @GENTOO_PORTAGE_EPREFIX@/etc/init.d/functions.sh || { > echo "${argv0}: Could not source /etc/init.d/functions.sh!" 1>&2 > exit 1 > } >@@ -97,13 +97,14 @@ if [[ -n ${DESTDIR} ]] && [[ ${ROOT} != > eerror "DESTDIR and ROOT are mutually exclusive options" > exit 1 > fi >-if [[ ${ROOT} != "/" ]] ; then >- einfo "Using locale.gen from ROOT ${ROOT}etc/" >+: ${EROOT:="${ROOT%/}${EPREFIX}/"} >+if [[ ${EROOT} != "/" ]] ; then >+ einfo "Using locale.gen from EROOT ${EROOT}etc/" > fi > if [[ -n ${DESTDIR} ]] ; then > einfo "Building locales in DESTDIR '${DESTDIR}'" > else >- DESTDIR=${ROOT} >+ DESTDIR=${EROOT} > fi > > # XXX: should fix this ... >@@ -112,7 +113,7 @@ if [[ ${ROOT} != "/" ]] ; then > exit 0 > fi > >-: ${CONFIG:=${ROOT}etc/locale.gen} >+: ${CONFIG:=${EROOT}etc/locale.gen} > LOCALES=${DESTDIR}usr/share/i18n/locales > CHARMAPS=${DESTDIR}usr/share/i18n/charmaps > SUPPORTED=${DESTDIR}usr/share/i18n/SUPPORTED >@@ -150,7 +151,10 @@ fi > > # Extract the location of the locale dir on the fly as `localedef --help` has: > # locale path : /usr/lib64/locale:/usr/share/i18n >-LOCALEDIR=${DESTDIR}$(LC_ALL="C" "${DESTDIR}"usr/bin/localedef --help | sed -n -e '/locale path/{s|.* : ||;s|:.*||;p}') >+# For long paths, the line may get wrapped into two, in which case space (' ') is replaced >+# by newline (\n). >+LOCALEDIR=$(LC_ALL="C" "${DESTDIR}"usr/bin/localedef --help | sed -n -r '/locale path/{N;s|.*:[ \n](.*):/.*|\1|;p}') >+LOCALEDIR="${DESTDIR}${LOCALEDIR#${EPREFIX}}" > if [[ $? -ne 0 ]] || [[ -z ${LOCALEDIR} ]] || [[ ${LOCALEDIR} != ${DESTDIR}/usr/lib*/locale ]] ; then > eerror "Unable to parse the output of your localedef utility." 1>&2 > eerror "File a bug about this issue and include the output of 'localedef --help'." 1>&2 >@@ -280,7 +284,7 @@ generate_locale() { > -i "${input}" \ > -f "${charmap}" \ > -A "${ALIAS}" \ >- --prefix "${DESTDIR}" \ >+ --prefix "${DESTDIR%${EPREFIX}/}/" \ > "${locale}" 2>&1 > ret=$? > [[ -n ${output} ]] && eend ${ret}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 473484
:
351104
|
351106
|
351108
|
351110
|
351322
|
351324
|
351434
|
352206