mosquitto: fix installing libraries
authorGeorge Sapkin <redacted>
Sat, 2 May 2026 19:25:45 +0000 (22:25 +0300)
committerGeorge Sapkin <redacted>
Sun, 3 May 2026 07:15:04 +0000 (10:15 +0300)
Use cp instead of install when installing libraries to not follow
symlinks and create duplicate files.

Fixes: aa89f847 ("mosquitto: update to 2.0.18")
Signed-off-by: George Sapkin <redacted>
net/mosquitto/Makefile

index 1137ae219e1c2b85d8eefdfadab1af6cc8d51858..7a82f7b07c649ef738cde9262043d3ce723fbf61 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mosquitto
 PKG_VERSION:=2.0.22
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://mosquitto.org/files/source/
@@ -214,13 +214,13 @@ endef
 # This installs files on the target.  Compare with Build/InstallDev
 define Package/libmosquitto-ssl/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libmosquitto.so.* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmosquitto.so.* $(1)/usr/lib/
 endef
 Package/libmosquitto-nossl/install = $(Package/libmosquitto-ssl/install)
 
 define Package/libmosquittopp/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libmosquittopp.so.* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmosquittopp.so.* $(1)/usr/lib/
 endef
 
 # Applies to all...
git clone https://git.99rst.org/PROJECT