ncurses: don't follow symlink on ln invocation

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).
This commit is contained in:
Peter Korsgaard 2008-07-01 19:24:36 +00:00
parent 654d98a010
commit 49b38b5009
1 changed files with 1 additions and 1 deletions

View 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