FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 02-14-2011, 08:33 AM
Martin Gracik
 
Default Keep the source files for locales and get rid of the binary form.

On Mon, 2011-02-14 at 10:14 +0100, Martin Sivak wrote:
> Anaconda prepares locale as needed during runtime. This saves space.
> ---
> share/ramdisk.ltmpl | 6 ++++--
> src/pylorax/installtree.py | 22 ----------------------
> 2 files changed, 4 insertions(+), 24 deletions(-)
>
> diff --git a/share/ramdisk.ltmpl b/share/ramdisk.ltmpl
> index 0b799a6..0281339 100644
> --- a/share/ramdisk.ltmpl
> +++ b/share/ramdisk.ltmpl
> @@ -747,13 +747,15 @@ remove "glibc-common" "/usr/bin/getconf"
> remove "glibc-common" "/usr/bin/getent"
> remove "glibc-common" "/usr/bin/ldd"
> remove "glibc-common" "/usr/bin/locale"
> -remove "glibc-common" "/usr/bin/localedef"
> remove "glibc-common" "/usr/bin/rpcgen"
> remove "glibc-common" "/usr/bin/sprof"
> remove "glibc-common" "/usr/bin/tzselect"
> remove "glibc-common" "/usr/libexec/*"
> remove "glibc-common" "/usr/sbin/*"
> -remove "glibc-common" "/usr/share/i18n/*"
> +
> +# remove generated locales anaconda knows how to restore them at runtime
> +remove "glibc-common" "/usr/lib/locale/*"
> +
> remove "gmp" "/usr/${libdir}/libgmpxx.*"
> remove "gmp" "/usr/${libdir}/libmp.*"
> remove "gnome-bluetooth-libs" "/usr/${libdir}/libgnome-bluetooth*"
> diff --git a/src/pylorax/installtree.py b/src/pylorax/installtree.py
> index 9883bba..5e7983e 100644
> --- a/src/pylorax/installtree.py
> +++ b/src/pylorax/installtree.py
> @@ -64,28 +64,6 @@ class LoraxInstallTree(BaseLoraxClass):
> langs = map(lambda l: l.split()[3].replace(".UTF-8", ".utf8"), langs)
> langs = set(langs)

few more lines can be removed here

>
> - # get locales from locale-archive
> - localearch = "/usr/lib/locale/locale-archive"
> -
> - cmd = [self.lcmds.LOCALEDEF, "--list-archive", localearch]
> - proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, preexec_fn=chroot)
> - output = proc.stdout.read()
> -
> - remove = set(output.split()) - langs
> -
> - # remove not needed locales
> - cmd = [self.lcmds.LOCALEDEF, "-i", localearch,
> - "--delete-from-archive"] + list(remove)
> - proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, preexec_fn=chroot)
> - proc.wait()
> -
> - localearch = joinpaths(self.root, localearch)
> - shutil.move(localearch, localearch + ".tmpl")
> -
> - proc = subprocess.Popen([self.lcmds.BUILD_LOCALE_ARCHIVE],
> - preexec_fn=chroot)
> - proc.wait()
> -
> # remove unneeded locales from /usr/share/locale
> with open(langtable, "r") as fobj:
> langs = fobj.readlines()

--
Martin Gracik <mgracik@redhat.com>

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org