ncurses: don't follow symlink on ln invocation
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 Jul 2008 19:24:36 +0000 (19:24 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 Jul 2008 19:24:36 +0000 (19:24 -0000)
The ln -sf command would fail if $TARGET_DIR/usr/lib/terminfo already exists
as we don't have write permissions to the symlink target. Fixed by adding
-n option (don't dereference link).

package/ncurses/ncurses.mk

index e3ff6bc7da2213602bc7265c4188f43fd2d30797..7163af4d082f40fcb7335426f04beb306a2db569 100644 (file)
@@ -113,7 +113,7 @@ endif
 ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_MENU)),y)
        cp -dpf $(NCURSES_DIR)/lib/libmenu.so* $(TARGET_DIR)/usr/lib/
 endif
-       ln -sf /usr/share/terminfo $(TARGET_DIR)/usr/lib/terminfo
+       ln -snf /usr/share/terminfo $(TARGET_DIR)/usr/lib/terminfo
        mkdir -p $(TARGET_DIR)/usr/share/terminfo/x
        cp -dpf $(STAGING_DIR)/usr/share/terminfo/x/xterm $(TARGET_DIR)/usr/share/terminfo/x
        cp -dpf $(STAGING_DIR)/usr/share/terminfo/x/xterm-color $(TARGET_DIR)/usr/share/terminfo/x