From patchwork Tue Oct 2 19:03:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] Makefile: Add /usr/lib/locale to target-purgelocales Date: Tue, 02 Oct 2012 09:03:51 -0000 From: Valentine Barshak X-Patchwork-Id: 188624 Message-Id: <1349204631-21077-3-git-send-email-gvaxon@gmail.com> To: buildroot@busybox.net Some packages install locales to /usr/lib/locale. Parse and purge unneeded ones there too. Signed-off-by: Valentine Barshak --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); \