ncftp: specify ln -sf to remove existing destination files
PATCH 1/3 ncftp: specify ln -sf to remove existing destination files
This fixes below build error when executing "make ncftp-dirclean; make".
ln -s /usr/bin/ncftpbatch /opt/test/br-x86/buildroot/output/target/usr/bin/ncftpspooler
ln: failed to create symbolic link '/opt/test/br-x86/buildroot/output/target/usr/bin/ncftpspooler': File exists
make: *** [/opt/test/br-x86/buildroot/output/build/ncftp-3.2.5/.stamp_target_installed] Error 1
--- package/ncftp/ncftp.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/ncftp/ncftp.mk +1 -1
@@ -26,7 +26,7 @@ endif ifeq ($(BR2_PACKAGE_NCFTP_BATCH),y) NCFTP_TARGET_BINS += ncftpbatch NCFTP_INSTALL_NCFTP_BATCH = \ - ln -s /usr/bin/ncftpbatch $(TARGET_DIR)/usr/bin/ncftpspooler + ln -sf /usr/bin/ncftpbatch $(TARGET_DIR)/usr/bin/ncftpspooler endif ifeq ($(BR2_PACKAGE_NCFTP_BOOKMARKS),y)
Signature · 1 line
1.8.1.2
PATCH 2/3 sam-ba: specify ln -sf to remove existing destination file
This fixes below build error when executing "make host-sam-ba-dirclean; make host-sam-ba-rebuild".
ln -s ../../opt/sam-ba/sam-ba /opt/test/br-x86/buildroot/output/host/usr/bin/sam-ba
ln: failed to create symbolic link '/opt/test/br-x86/buildroot/output/host/usr/bin/sam-ba': File exists
make: *** [/opt/test/br-x86/buildroot/output/build/host-sam-ba-2.12/.stamp_host_installed] Error 1
--- package/sam-ba/sam-ba.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/sam-ba/sam-ba.mk +1 -1
@@ -24,7 +24,7 @@ endef define HOST_SAM_BA_INSTALL_CMDS mkdir -p $(HOST_DIR)/opt/sam-ba/ cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/ - ln -s ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba + ln -sf ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba endef $(eval $(host-generic-package))
Signature · 1 line
1.8.1.2
PATCH 3/3 tcl: specify ln -sf to remove existing destination file
In reply to Axel LinThis fixes below build error when executing
"make tcl-dirclean; make tcl-rebuild".
ln -s tclsh8.4 /opt/test/br-x86/buildroot/output/target/usr/bin/tclsh
ln: failed to create symbolic link '/opt/test/br-x86/buildroot/output/target/usr/bin/tclsh': File exists
make: *** [/opt/test/br-x86/buildroot/output/build/tcl-8.4.19/.stamp_target_installed] Error 1
--- package/tcl/tcl.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/tcl/tcl.mk +1 -1
@@ -37,7 +37,7 @@ endef TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_TCLSH else define TCL_SYMLINK_TCLSH - ln -s tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh + ln -sf tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh endef TCL_POST_INSTALL_TARGET_HOOKS += TCL_SYMLINK_TCLSH endif
Signature · 1 line
1.8.1.2
PATCH 1/3 ncftp: specify ln -sf to remove existing destination files
In reply to Axel LinQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Axel" == Axel Lin <[email protected]> writes:
Axel> This fixes below build error when executing "make ncftp-dirclean; make".
Axel> ln -s /usr/bin/ncftpbatch /opt/test/br-x86/buildroot/output/target/usr/bin/ncftpspooler Axel> ln: failed to create symbolic link '/opt/test/br-x86/buildroot/output/target/usr/bin/ncftpspooler': File exists Axel> make: *** [/opt/test/br-x86/buildroot/output/build/ncftp-3.2.5/.stamp_target_installed] Error 1
Axel> Signed-off-by: Axel Lin <[email protected]>
Committed all 3, thanks.
Signature · 1 line
Bye, Peter Korsgaard