From patchwork Sat Jun 28 21:52:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 365322 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 66F5C140102 for ; Sun, 29 Jun 2014 07:52:38 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1BEC78A343; Sat, 28 Jun 2014 21:52:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d5yrZKgGh5Ae; Sat, 28 Jun 2014 21:52:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C3AEC8A7AB; Sat, 28 Jun 2014 21:52:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 579E41BF9ED for ; Sat, 28 Jun 2014 21:52:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5509D8933D for ; Sat, 28 Jun 2014 21:52:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7n45l8spXXJJ for ; Sat, 28 Jun 2014 21:52:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by fraxinus.osuosl.org (Postfix) with ESMTP id F32D889317 for ; Sat, 28 Jun 2014 21:52:29 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 7C677910; Sat, 28 Jun 2014 23:52:32 +0200 (CEST) Received: from localhost (AToulouse-651-1-133-46.w109-222.abo.wanadoo.fr [109.222.212.46]) by mail.free-electrons.com (Postfix) with ESMTPSA id 3F3A9908; Sat, 28 Jun 2014 23:52:32 +0200 (CEST) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Sat, 28 Jun 2014 23:52:23 +0200 Message-Id: <1403992343-29665-6-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1403992343-29665-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1403992343-29665-1-git-send-email-thomas.petazzoni@free-electrons.com> Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH 5/5] gettext: remove useless ABOUT-NLS file X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net For some reason, gettext installs on the target a documentation file named ABOUT-NLS in /usr/share/gettext, that is clearly not needed for the proper execution of programs. This commit adds a post-install hook in gettext.mk to get rid of this file. Signed-off-by: Thomas Petazzoni --- package/gettext/gettext.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk index 948ab9d..cc461f7 100644 --- a/package/gettext/gettext.mk +++ b/package/gettext/gettext.mk @@ -50,6 +50,13 @@ endef GETTEXT_POST_PATCH_HOOKS += HOST_GETTEXT_DISABLE_UNNEEDED HOST_GETTEXT_POST_PATCH_HOOKS += HOST_GETTEXT_DISABLE_UNNEEDED +define GETTEXT_REMOVE_UNNEEDED + $(RM) -rf $(TARGET_DIR)/usr/share/gettext/ABOUT-NLS + rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/gettext +endef + +GETTEXT_POST_INSTALL_TARGET_HOOKS += GETTEXT_REMOVE_UNNEEDED + # Force build with NLS support, otherwise libintl is not built # This is needed because some packages (eg. libglib2) requires # locales, but do not properly depend on BR2_ENABLE_LOCALE, and