From patchwork Thu Jan 7 16:56:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 564364 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id AE5EC1402A1 for ; Fri, 8 Jan 2016 03:56:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9CB778B813; Thu, 7 Jan 2016 16:56:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NMlhsmc4Vmkt; Thu, 7 Jan 2016 16:56:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id B5C278B749; Thu, 7 Jan 2016 16:56:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B53611C0F1D for ; Thu, 7 Jan 2016 16:56:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B1E70864EB for ; Thu, 7 Jan 2016 16:56:34 +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 3tzUIwPE7FmC for ; Thu, 7 Jan 2016 16:56:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by hemlock.osuosl.org (Postfix) with ESMTPS id 107EE82238 for ; Thu, 7 Jan 2016 16:56:32 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id C154118E41DE; Thu, 7 Jan 2016 14:52:35 -0200 (BRST) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id B52D018E41DC; Thu, 7 Jan 2016 14:52:35 -0200 (BRST) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yH_bg3tgx3WU; Thu, 7 Jan 2016 14:52:35 -0200 (BRST) Received: from buildroot-dev.ped.datacom.ind.br (buildroot-dev.ped.datacom.ind.br [172.26.23.11]) by mail.datacom.ind.br (Postfix) with ESMTP id 9A44518E41CF; Thu, 7 Jan 2016 14:52:35 -0200 (BRST) From: Carlos Santos To: buildroot@buildroot.org Date: Thu, 7 Jan 2016 14:56:22 -0200 Message-Id: <1452185782-7505-1-git-send-email-casantos@datacom.ind.br> X-Mailer: git-send-email 1.8.3.1 Subject: [Buildroot] [PATCH 1/1] readline: fix stripping on target X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Libraries got installed read only, so strip failed. Signed-off-by: Carlos Santos Acked-by: Gustavo Zacarias --- package/readline/readline.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/readline/readline.mk b/package/readline/readline.mk index 3d31696..58cd948 100644 --- a/package/readline/readline.mk +++ b/package/readline/readline.mk @@ -24,5 +24,14 @@ define READLINE_INSTALL_INPUTRC endef READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_INPUTRC +ifneq ($(BR2_STATIC_LIBS),y) +# libraries get installed read only, so strip fails +define READLINE_INSTALL_FIXUPS_SHARED + for i in $(addprefix $(TARGET_DIR)/usr/lib/,libhistory.so.* libreadline.so.*); \ + do chmod +w $$i; done +endef +READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_FIXUPS_SHARED +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))