mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
package/vim: fix reinstallation
While not very common, it is nice when package re-installation works. Unfortunately the "installlinks" target of vim installs links with "ln -s", causing a package reinstallation to fail with: cd /home/thomas/buildroot/br/output-all/target/usr/bin; ln -s vim ex cd /home/thomas/buildroot/br/output-all/target/usr/bin; ln -s vim view cd /home/thomas/buildroot/br/output-all/target/usr/bin; ln -s vim rvim cd /home/thomas/buildroot/br/output-all/target/usr/bin; ln -s vim rview cd /home/thomas/buildroot/br/output-all/target/usr/bin; ln -s vim vimdiff ln: failed to create symbolic link 'ex': File exists ln: failed to create symbolic link 'view': File exists make[2]: *** [Makefile:2749: /home/thomas/buildroot/br/output-all/target/usr/bin/ex] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:2752: /home/thomas/buildroot/br/output-all/target/usr/bin/view] Error 1 ln: failed to create symbolic link 'rvim': File exists ln: failed to create symbolic link 'rview': File exists To fix this, we remove the target links before proceeding with the installation. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
57395ccf91
commit
67e84345c1
@@ -47,6 +47,7 @@ VIM_CONF_OPTS += --disable-selinux
|
||||
endif
|
||||
|
||||
define VIM_INSTALL_TARGET_CMDS
|
||||
$(RM) -f $(TARGET_DIR)/usr/bin/{ex,view,rvim,rview,vimdiff}
|
||||
cd $(@D)/src; \
|
||||
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) installvimbin; \
|
||||
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) installpack; \
|
||||
|
||||
Reference in New Issue
Block a user