Patchwork [2/2] Makefile: Add /usr/lib/locale to target-purgelocales

login
register
mail settings
Submitter Valentine Barshak
Date Oct. 2, 2012, 7:03 p.m.
Message ID <1349204631-21077-3-git-send-email-gvaxon@gmail.com>
Download mbox | patch
Permalink /patch/188624/
State Accepted
Delegated to: Peter Korsgaard
Headers show

Comments

Valentine Barshak - Oct. 2, 2012, 7:03 p.m.
Some packages install locales to /usr/lib/locale.
Parse and purge unneeded ones there too.

Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Peter Korsgaard - Feb. 4, 2014, 9:22 a.m.
>>>>> "Valentine" == Valentine Barshak <gvaxon@gmail.com> writes:

Hi,

 > Some packages install locales to /usr/lib/locale.
 > Parse and purge unneeded ones there too.

Sorry for the delay - Commited, thanks.

Patch

diff --git a/Makefile b/Makefile
index 009debe..694c49a 100644
--- a/Makefile
+++ b/Makefile
@@ -476,7 +476,7 @@  target-purgelocales:
 	rm -f $(LOCALE_WHITELIST)
 	for i in $(LOCALE_NOPURGE); do echo $$i >> $(LOCALE_WHITELIST); done
 
-	for dir in $(wildcard $(addprefix $(TARGET_DIR),/usr/share/locale /usr/share/X11/locale /usr/man /usr/share/man)); \
+	for dir in $(wildcard $(addprefix $(TARGET_DIR),/usr/share/locale /usr/share/X11/locale /usr/man /usr/share/man /usr/lib/locale)); \
 	do \
 		(cd $$dir && rm -f locale.dir && \
 		for lang in $$(ls .|grep -v "man\|locale\.dir"); \