Skip to contentSkip to conversation

readline: fix stripping on target

PATCH New Carlos Santos 3 participants 3 messages Jan 7, 2016 – Jan 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 readline: fix stripping on target

Libraries got installed read only, so strip failed.

---
 package/readline/readline.mk | 9 +++++++++
 1 file changed, 9 insertions(+)
package/readline/readline.mk +9 -0
index 3d31696..58cd948 100644
@@ -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))
Signature · 1 line
1.8.3.1
#2 lore raw

PATCH 1/1 readline: fix stripping on target

In reply to Carlos Santos
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Carlos" == Carlos Santos <[email protected]> writes:

Libraries got installed read only, so strip failed.

---
 package/readline/readline.mk | 9 +++++++++
 1 file changed, 9 insertions(+)
package/readline/readline.mk +0 -0
index 3d31696..58cd948 100644

package/readline/readline.mk define READLINE_INSTALL_INPUTRC · line 32

Quoted 9 lines
package/readline/readline.mk +6 -0
@@ -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

Committed after simplifying it to just be:

chmod +w $(addprefix $(TARGET_DIR)/usr/lib/,libhistory.so.* libreadline.so.*)

Thanks.

Signature · 1 line
Bye, Peter Korsgaard