Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252919 - localepurge should support the ROOT variable
Summary: localepurge should support the ROOT variable
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-29 01:33 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-03-21 12:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-29 01:33:44 UTC
[I'm opening this bug proxying for solar who's unable to connect to the zilla right now.]

It would be nice if localepurge supported the ROOT variable so that it could be used during cross-building, and during post_src_install too. A working patch would be

--- /usr/bin/localepurge        2008-12-07 07:09:23.000000000 +0000
+++ /usr/local/bin/localepurge.root     2008-12-07 07:08:59.000000000 +0000
@@ -154,7 +154,7 @@
 # Getting rid of superfluous locale files in $LOCALEDIR:
 
 purgelocale () {
-    local LOCALEDIR="$1"
+    local LOCALEDIR="${ROOT}/$1"
     if [ -d $LOCALEDIR ]; then
 
         if [ "$SHOWFREEDSPACE" = "enabled" ]; then
@@ -192,7 +192,7 @@
 # Getting rid of localized man pages in $MANPAGEDIR
 
 purgeman () {
-    local MANPAGEDIR="$1"
+    local MANPAGEDIR="${ROOT}/$1"
     if [ -d $MANPAGEDIR ] && [ "`grep -x ^MANDELETE ${CONFIGFILE}`" ]; then
 
         if [ "$SHOWFREEDSPACE" = "enabled" ]; then
Comment 1 Serkan Kaba (RETIRED) gentoo-dev 2008-12-29 05:29:27 UTC
(In reply to comment #0)
> It would be nice if localepurge supported the ROOT variable so that it could be
> used during cross-building, and during post_src_install too. A working patch
> would be
> 
Bug #199286.
Comment 2 Pacho Ramos gentoo-dev 2012-03-21 12:00:54 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > It would be nice if localepurge supported the ROOT variable so that it could be
> > used during cross-building, and during post_src_install too. A working patch
> > would be
> > 
> Bug #199286.

Looks like this wouldn't  be needed then

If you disagree, feel free to reopen (or even commit it yourself as this is an orphan package)