Skip to contentSkip to conversation

package/arptables: preserve /usr/sbin symlink

PATCH In review James Hilliard 5 participants 49 messages May 6 – May 29 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/40 package/arptables: preserve /usr/sbin symlink

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/arptables/arptables.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/arptables/arptables.mk +1 -1
index 320a33bb3c..ec65201c86 100644
@@ -15,7 +15,7 @@ define ARPTABLES_BUILD_CMDS
 endef
 
 define ARPTABLES_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 755 -D $(@D)/arptables-legacy \
+	$(INSTALL) -m 755 $(@D)/arptables-legacy \
 		$(TARGET_DIR)/usr/sbin/arptables-legacy
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/40 package/babeld: preserve /usr/sbin symlink

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/babeld/babeld.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/babeld/babeld.mk +1 -1
index e9d20111f9..7845178ded 100644
@@ -14,7 +14,7 @@ define BABELD_BUILD_CMDS
 endef
 
 define BABELD_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 755 $(@D)/babeld $(TARGET_DIR)/usr/sbin/babeld
+	$(INSTALL) -m 755 $(@D)/babeld $(TARGET_DIR)/usr/sbin/babeld
 endef
 
 define BABELD_INSTALL_INIT_SYSV
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 3/40 package/bonnie: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/bonnie/bonnie.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/bonnie/bonnie.mk +2 -2
index e5c8640d39..6f48f38cdc 100644
@@ -11,8 +11,8 @@ BONNIE_LICENSE = GPL-2.0
 BONNIE_LICENSE_FILES = copyright.txt
 
 define BONNIE_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 755 $(@D)/bonnie++ $(TARGET_DIR)/usr/sbin/bonnie++
-	$(INSTALL) -D -m 755 $(@D)/zcav $(TARGET_DIR)/usr/sbin/zcav
+	$(INSTALL) -m 755 $(@D)/bonnie++ $(TARGET_DIR)/usr/sbin/bonnie++
+	$(INSTALL) -m 755 $(@D)/zcav $(TARGET_DIR)/usr/sbin/zcav
 endef
 
 $(eval $(autotools-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH 4/40 package/darkhttpd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/darkhttpd/darkhttpd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/darkhttpd/darkhttpd.mk +1 -1
index ca8495f5c4..0010f58c28 100644
@@ -15,7 +15,7 @@ define DARKHTTPD_BUILD_CMDS
 endef
 
 define DARKHTTPD_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/darkhttpd \
+	$(INSTALL) -m 0755 $(@D)/darkhttpd \
 		$(TARGET_DIR)/usr/sbin/darkhttpd
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

PATCH 5/40 package/dcron: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/dcron/dcron.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/dcron/dcron.mk +1 -1
index f0c3efbf8f..7e70e69c14 100644
@@ -14,7 +14,7 @@ define DCRON_BUILD_CMDS
 endef
 
 define DCRON_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m0700 $(@D)/crond $(TARGET_DIR)/usr/sbin/crond
+	$(INSTALL) -m0700 $(@D)/crond $(TARGET_DIR)/usr/sbin/crond
 	$(INSTALL) -D -m4755 $(@D)/crontab $(TARGET_DIR)/usr/bin/crontab
 	$(INSTALL) -D -m0644 $(@D)/extra/root.crontab $(TARGET_DIR)/etc/cron.d/system
 	# Busybox provides run-parts, so there is no need to use nor install provided run-cron
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH 6/40 package/ebtables: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/ebtables/ebtables.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/ebtables/ebtables.mk +1 -1
index 09a9f4ba7d..42edfde557 100644
@@ -13,7 +13,7 @@ EBTABLES_SELINUX_MODULES = iptables
 
 ifeq ($(BR2_PACKAGE_EBTABLES_UTILS_SAVE),y)
 define EBTABLES_INSTALL_TARGET_UTILS_SAVE
-	$(INSTALL) -m 0755 -D $(@D)/ebtables-save.sh $(TARGET_DIR)/usr/sbin/ebtables-legacy-save
+	$(INSTALL) -m 0755 $(@D)/ebtables-save.sh $(TARGET_DIR)/usr/sbin/ebtables-legacy-save
 endef
 EBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_INSTALL_TARGET_UTILS_SAVE
 else
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

PATCH 7/40 package/fbset: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/fbset/fbset.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/fbset/fbset.mk +1 -1
index 526cba40d3..7010560248 100644
@@ -15,7 +15,7 @@ define FBSET_BUILD_CMDS
 endef
 
 define FBSET_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 755 $(@D)/fbset $(TARGET_DIR)/usr/sbin/fbset
+	$(INSTALL) -m 755 $(@D)/fbset $(TARGET_DIR)/usr/sbin/fbset
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

PATCH 8/40 package/fmc: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/fmc/fmc.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/fmc/fmc.mk +1 -1
index d88fa9614d..b0fd0df38f 100644
@@ -32,7 +32,7 @@ define FMC_BUILD_CMDS
 endef
 
 define FMC_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/source/fmc $(TARGET_DIR)/usr/sbin/fmc
+	$(INSTALL) -m 0755 $(@D)/source/fmc $(TARGET_DIR)/usr/sbin/fmc
 	cp -dpfr $(@D)/etc/fmc $(TARGET_DIR)/etc/
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#8 lore raw

PATCH 9/40 package/freescale-imx/imx-m4fwloader: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/freescale-imx/imx-m4fwloader/imx-m4fwloader.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.mk +1 -1
index 320d5dc617..da7f4af221 100644
@@ -15,7 +15,7 @@ define IMX_M4FWLOADER_BUILD_CMDS
 endef
 
 define IMX_M4FWLOADER_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 755 $(@D)/imx-m4fwloader \
+	$(INSTALL) -m 755 $(@D)/imx-m4fwloader \
 		$(TARGET_DIR)/usr/sbin/imx-m4fwloader
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#9 lore raw

PATCH 10/40 package/gptfdisk: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/gptfdisk/gptfdisk.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/gptfdisk/gptfdisk.mk +1 -1
index b35899bf9b..cdb7bfb7ca 100644
@@ -41,7 +41,7 @@ endef
 
 define GPTFDISK_INSTALL_TARGET_CMDS
 	for i in $(GPTFDISK_TARGETS_y); do \
-		$(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
+		$(INSTALL) -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
 	done
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#10 lore raw

PATCH 11/40 package/hans: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/hans/hans.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/hans/hans.mk +1 -1
index 6d2b1dabe5..07ae336329 100644
@@ -14,7 +14,7 @@ define HANS_BUILD_CMDS
 endef
 
 define HANS_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 755 -D $(@D)/hans $(TARGET_DIR)/usr/sbin/hans
+	$(INSTALL) -m 755 $(@D)/hans $(TARGET_DIR)/usr/sbin/hans
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#11 lore raw

PATCH 12/40 package/hostapd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/hostapd/hostapd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/hostapd/hostapd.mk +1 -1
index d83b574fad..76cec9b31d 100644
@@ -149,7 +149,7 @@ define HOSTAPD_BUILD_CMDS
 endef
 
 define HOSTAPD_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd \
+	$(INSTALL) -m 0755 $(@D)/$(HOSTAPD_SUBDIR)/hostapd \
 		$(TARGET_DIR)/usr/sbin/hostapd
 	$(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd_cli \
 		$(TARGET_DIR)/usr/bin/hostapd_cli
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#12 lore raw

PATCH 13/40 package/irda-utils: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/irda-utils/irda-utils.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/irda-utils/irda-utils.mk +1 -1
index 18a3e58604..031a024486 100644
@@ -32,7 +32,7 @@ IRDA_UTILS_SBINS- += $(IRDA_UTILS_SBINS-y)
 
 define IRDA_UTILS_INSTALL_TARGET_CMDS
 	for i in $(IRDA_UTILS_SBINS-y); do \
-		$(INSTALL) -m 0755 -D $(@D)/$$i/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
+		$(INSTALL) -m 0755 $(@D)/$$i/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
 	done
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#13 lore raw

PATCH 14/40 package/libpri: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/libpri/libpri.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/libpri/libpri.mk +1 -1
index 48a1019210..4b359008ba 100644
@@ -46,7 +46,7 @@ endef
 
 define LIBPRI_INSTALL_TARGET_CMDS
 	$(foreach u,$(LIBPRI_UTILS),\
-		$(INSTALL) -D -m 0755 $(@D)/$(u) $(TARGET_DIR)/usr/sbin/$(u)$(sep))
+		$(INSTALL) -m 0755 $(@D)/$(u) $(TARGET_DIR)/usr/sbin/$(u)$(sep))
 	$(call LIBPRI_INSTALL_SO,$(TARGET_DIR))
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#14 lore raw

PATCH 15/40 package/libss7: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/libss7/libss7.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/libss7/libss7.mk +1 -1
index faa147c78e..6baed4cf28 100644
@@ -49,7 +49,7 @@ endef
 
 define LIBSS7_INSTALL_TARGET_CMDS
 	$(foreach u,$(LIBSS7_UTILS),\
-		$(INSTALL) -D -m 0755 $(@D)/$(u) $(TARGET_DIR)/usr/sbin/$(u)$(sep))
+		$(INSTALL) -m 0755 $(@D)/$(u) $(TARGET_DIR)/usr/sbin/$(u)$(sep))
 	$(call LIBSS7_INSTALL_SO,$(TARGET_DIR))
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#15 lore raw

PATCH 16/40 package/linux-tools: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/linux-tools/linux-tool-hv.mk.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/linux-tools/linux-tool-hv.mk.in +1 -1
index e638fecfc6..0310d90c88 100644
@@ -40,7 +40,7 @@ endif
 
 define HV_INSTALL_TARGET_CMDS
 	$(foreach prog,$(HV_PROGS_y), \
-		$(INSTALL) -m 0755 -D $(LINUX_DIR)/tools/hv/$(prog) \
+		$(INSTALL) -m 0755 $(LINUX_DIR)/tools/hv/$(prog) \
 			$(TARGET_DIR)/usr/sbin/$(HV_$(prog))
 	)
 	$(HV_KVP_HELPER)
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#16 lore raw

PATCH 17/40 package/mtd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/mtd/mtd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/mtd/mtd.mk +1 -1
index 2a625fccce..032c486c66 100644
@@ -157,7 +157,7 @@ MTD_TARGETS_$(BR2_PACKAGE_MTD_FSCKUBIFS)	+= fsck.ubifs
 
 define MTD_INSTALL_TARGET_CMDS
 	$(foreach f,$(MTD_TARGETS_y), \
-		$(INSTALL) -D -m 0755 $(@D)/$(f) $(TARGET_DIR)/usr/sbin/$(notdir $(f))
+		$(INSTALL) -m 0755 $(@D)/$(f) $(TARGET_DIR)/usr/sbin/$(notdir $(f))
 	)
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#17 lore raw

PATCH 18/40 package/nethogs: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/nethogs/nethogs.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/nethogs/nethogs.mk +1 -1
index 74387d7397..5a8d825565 100644
@@ -15,7 +15,7 @@ define NETHOGS_BUILD_CMDS
 endef
 
 define NETHOGS_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/src/nethogs $(TARGET_DIR)/usr/sbin/nethogs
+	$(INSTALL) -m 0755 $(@D)/src/nethogs $(TARGET_DIR)/usr/sbin/nethogs
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#18 lore raw

PATCH 19/40 package/noip: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/noip/noip.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/noip/noip.mk +1 -1
index 8b57d82469..3918849ca2 100644
@@ -20,7 +20,7 @@ define NOIP_BUILD_CMDS
 endef
 
 define NOIP_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0755 -D $(@D)/noip2 $(TARGET_DIR)/usr/sbin/noip2
+	$(INSTALL) -m 0755 $(@D)/noip2 $(TARGET_DIR)/usr/sbin/noip2
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#19 lore raw

PATCH 20/40 package/odhcp6c: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/odhcp6c/odhcp6c.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/odhcp6c/odhcp6c.mk +1 -1
index 92688b7237..7c5cddfbb0 100644
@@ -12,7 +12,7 @@ ODHCP6C_LICENSE_FILES = COPYING
 ODHCP6C_DEPENDENCIES = libubox
 
 define ODHCP6C_INSTALL_SCRIPT
-	$(INSTALL) -m 0755 -D $(@D)/odhcp6c-example-script.sh \
+	$(INSTALL) -m 0755 $(@D)/odhcp6c-example-script.sh \
 		$(TARGET_DIR)/usr/sbin/odhcp6c-update
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#20 lore raw

PATCH 21/40 package/openssh: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/openssh/openssh.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/openssh/openssh.mk +1 -1
index 8f46d886dc..ae3ebdb320 100644
@@ -117,7 +117,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_OPENSSH_SERVER),y)
 define OPENSSH_INSTALL_SERVER_PROGRAMS
-	$(INSTALL) -D -m 0755 $(@D)/sshd $(TARGET_DIR)/usr/sbin/sshd
+	$(INSTALL) -m 0755 $(@D)/sshd $(TARGET_DIR)/usr/sbin/sshd
 	$(INSTALL) -D -m 0755 $(@D)/sshd-session $(TARGET_DIR)/usr/libexec/sshd-session
 	$(INSTALL) -D -m 0755 $(@D)/sftp-server $(TARGET_DIR)/usr/libexec/sftp-server
 	$(INSTALL) -D -m 0755 $(@D)/sshd-auth $(TARGET_DIR)/usr/libexec/sshd-auth
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#21 lore raw

PATCH 22/40 package/p910nd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/p910nd/p910nd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/p910nd/p910nd.mk +1 -1
index fea8aafd50..d16fc68fa2 100644
@@ -14,7 +14,7 @@ define P910ND_BUILD_CMDS
 endef
 
 define P910ND_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/p910nd $(TARGET_DIR)/usr/sbin/p910nd
+	$(INSTALL) -m 0755 $(@D)/p910nd $(TARGET_DIR)/usr/sbin/p910nd
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#22 lore raw

PATCH 23/40 package/parprouted: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/parprouted/parprouted.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/parprouted/parprouted.mk +1 -1
index a0425d92cd..7e2343fab0 100644
@@ -14,7 +14,7 @@ define PARPROUTED_BUILD_CMDS
 endef
 
 define PARPROUTED_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/parprouted $(TARGET_DIR)/usr/sbin/parprouted
+	$(INSTALL) -m 0755 $(@D)/parprouted $(TARGET_DIR)/usr/sbin/parprouted
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#23 lore raw

PATCH 24/40 package/pptp-linux: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/pptp-linux/pptp-linux.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/pptp-linux/pptp-linux.mk +1 -1
index b6c740e710..b03a8dd41f 100644
@@ -19,7 +19,7 @@ define PPTP_LINUX_BUILD_CMDS
 endef
 
 define PPTP_LINUX_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0755 -D $(@D)/pptp $(TARGET_DIR)/usr/sbin/pptp
+	$(INSTALL) -m 0755 $(@D)/pptp $(TARGET_DIR)/usr/sbin/pptp
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#24 lore raw

PATCH 25/40 package/proftpd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/proftpd/proftpd.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/proftpd/proftpd.mk +3 -3
index ba026f5dd1..8643cf3979 100644
@@ -126,16 +126,16 @@ PROFTPD_MAKE = $(MAKE1)
 ifeq ($(BR2_PACKAGE_PERL),y)
 ifeq ($(BR2_PACKAGE_PROFTPD_MOD_QUOTATAB),y)
 define PROFTPD_INSTALL_FTPQUOTA
-	$(INSTALL) -D -m 0755 $(@D)/contrib/ftpquota $(TARGET_DIR)/usr/sbin/ftpquota
+	$(INSTALL) -m 0755 $(@D)/contrib/ftpquota $(TARGET_DIR)/usr/sbin/ftpquota
 endef
 endif
 define PROFTPD_INSTALL_FTPASSWD
-	$(INSTALL) -D -m 0755 $(@D)/contrib/ftpasswd $(TARGET_DIR)/usr/sbin/ftpasswd
+	$(INSTALL) -m 0755 $(@D)/contrib/ftpasswd $(TARGET_DIR)/usr/sbin/ftpasswd
 endef
 endif
 
 define PROFTPD_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/proftpd $(TARGET_DIR)/usr/sbin/proftpd
+	$(INSTALL) -m 0755 $(@D)/proftpd $(TARGET_DIR)/usr/sbin/proftpd
 	$(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf
 	$(SED) 's/^\(Group\s\+\)nogroup/\1nobody/' $(TARGET_DIR)/etc/proftpd.conf
 	$(PROFTPD_INSTALL_FTPQUOTA)
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#25 lore raw

PATCH 26/40 package/ptpd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/ptpd/ptpd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/ptpd/ptpd.mk +1 -1
index 49587231e0..3ce994569a 100644
@@ -14,7 +14,7 @@ define PTPD_BUILD_CMDS
 endef
 
 define PTPD_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 755 -D $(@D)/src/ptpd $(TARGET_DIR)/usr/sbin/ptpd
+	$(INSTALL) -m 755 $(@D)/src/ptpd $(TARGET_DIR)/usr/sbin/ptpd
 endef
 
 define PTPD_INSTALL_INIT_SYSV
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#26 lore raw

PATCH 27/40 package/restorecond: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/restorecond/restorecond.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/restorecond/restorecond.mk +1 -1
index e8f432c88d..eff88b3f0a 100644
@@ -41,7 +41,7 @@ endef
 define RESTORECOND_INSTALL_TARGET_CMDS
 	$(INSTALL) -m 0644 -D $(@D)/restorecond.conf $(TARGET_DIR)/etc/selinux/restorecond.conf
 	$(INSTALL) -m 0644 -D $(@D)/restorecond_user.conf $(TARGET_DIR)/etc/selinux/restorecond_user.conf
-	$(INSTALL) -m 0755 -D $(@D)/restorecond $(TARGET_DIR)/usr/sbin/restorecond
+	$(INSTALL) -m 0755 $(@D)/restorecond $(TARGET_DIR)/usr/sbin/restorecond
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#27 lore raw

PATCH 28/40 package/spidev_test: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/spidev_test/spidev_test.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/spidev_test/spidev_test.mk +1 -1
index bd138b0142..ba097fc103 100644
@@ -44,7 +44,7 @@ define SPIDEV_TEST_BUILD_CMDS
 endef
 
 define SPIDEV_TEST_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 755 $(@D)/spidev_test \
+	$(INSTALL) -m 755 $(@D)/spidev_test \
 		$(TARGET_DIR)/usr/sbin/spidev_test
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#28 lore raw

PATCH 29/40 package/sredird: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/sredird/sredird.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/sredird/sredird.mk +1 -1
index 723c10acd6..68f276a8ae 100644
@@ -14,7 +14,7 @@ define SREDIRD_BUILD_CMDS
 endef
 
 define SREDIRD_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/sredird $(TARGET_DIR)/usr/sbin/sredird
+	$(INSTALL) -m 0755 $(@D)/sredird $(TARGET_DIR)/usr/sbin/sredird
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#29 lore raw

PATCH 30/40 package/tftpd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/tftpd/tftpd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/tftpd/tftpd.mk +1 -1
index 73ac7006a4..05ee31790b 100644
@@ -19,7 +19,7 @@ TFTPD_AUTORECONF_OPTS = --include=$(@D)/autoconf/m4
 
 define TFTPD_INSTALL_TARGET_CMDS
 	$(INSTALL) -D $(@D)/tftp/tftp $(TARGET_DIR)/usr/bin/tftp
-	$(INSTALL) -D $(@D)/tftpd/tftpd $(TARGET_DIR)/usr/sbin/tftpd
+	$(INSTALL) $(@D)/tftpd/tftpd $(TARGET_DIR)/usr/sbin/tftpd
 endef
 
 define TFTPD_INSTALL_INIT_SYSV
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#30 lore raw

PATCH 31/40 package/ti-gfx: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/ti-gfx/ti-gfx.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/ti-gfx/ti-gfx.mk +1 -1
index 2728572776..b67162dfa9 100644
@@ -165,7 +165,7 @@ define TI_GFX_INSTALL_BINS_CMDS
 			$(TARGET_DIR)/usr/bin/$(bin)
 	)
 	$(if $(BR2_PACKAGE_TI_GFX_DEBUG),
-		$(INSTALL) -D -m 0755 package/ti-gfx/esrev.sh \
+		$(INSTALL) -m 0755 package/ti-gfx/esrev.sh \
 			$(TARGET_DIR)/usr/sbin/esrev
 	)
 endef
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#31 lore raw

PATCH 32/40 package/ti-uim: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/ti-uim/ti-uim.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/ti-uim/ti-uim.mk +1 -1
index 8b1678f6b1..aac82581d8 100644
@@ -14,7 +14,7 @@ define TI_UIM_BUILD_CMDS
 endef
 
 define TI_UIM_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0755 -D $(@D)/uim \
+	$(INSTALL) -m 0755 $(@D)/uim \
 		$(TARGET_DIR)/usr/sbin/uim
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#32 lore raw

PATCH 33/40 package/triggerhappy: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/triggerhappy/triggerhappy.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/triggerhappy/triggerhappy.mk +2 -2
index bb30e7ce1d..20ac812661 100644
@@ -29,8 +29,8 @@ endif
 
 define TRIGGERHAPPY_INSTALL_TARGET_CMDS
 	$(INSTALL) -d $(TARGET_DIR)/etc/triggerhappy/triggers.d
-	$(INSTALL) -D -m 0755 $(@D)/thd $(TARGET_DIR)/usr/sbin/thd
-	$(INSTALL) -D -m 0755 $(@D)/th-cmd $(TARGET_DIR)/usr/sbin/th-cmd
+	$(INSTALL) -m 0755 $(@D)/thd $(TARGET_DIR)/usr/sbin/thd
+	$(INSTALL) -m 0755 $(@D)/th-cmd $(TARGET_DIR)/usr/sbin/th-cmd
 	$(TRIGGERHAPPY_INSTALL_UDEV_RULE)
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#33 lore raw

PATCH 34/40 package/tunctl: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/tunctl/tunctl.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/tunctl/tunctl.mk +1 -1
index 0d7b88dfa5..28db576fef 100644
@@ -15,7 +15,7 @@ define TUNCTL_BUILD_CMDS
 endef
 
 define TUNCTL_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0755 -D $(@D)/tunctl $(TARGET_DIR)/usr/sbin/tunctl
+	$(INSTALL) -m 0755 $(@D)/tunctl $(TARGET_DIR)/usr/sbin/tunctl
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#34 lore raw

PATCH 35/40 package/uboot-tools: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/uboot-tools/uboot-tools.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/uboot-tools/uboot-tools.mk +2 -2
index fa0b6aba78..89d2ec38ea 100644
@@ -92,14 +92,14 @@ endif
 
 ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV),y)
 define UBOOT_TOOLS_INSTALL_FWPRINTENV
-	$(INSTALL) -m 0755 -D $(@D)/tools/env/fw_printenv $(TARGET_DIR)/usr/sbin/fw_printenv
+	$(INSTALL) -m 0755 $(@D)/tools/env/fw_printenv $(TARGET_DIR)/usr/sbin/fw_printenv
 	ln -sf fw_printenv $(TARGET_DIR)/usr/sbin/fw_setenv
 endef
 endif
 
 ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_DUMPIMAGE),y)
 define UBOOT_TOOLS_INSTALL_DUMPIMAGE
-	$(INSTALL) -m 0755 -D $(@D)/tools/dumpimage $(TARGET_DIR)/usr/sbin/dumpimage
+	$(INSTALL) -m 0755 $(@D)/tools/dumpimage $(TARGET_DIR)/usr/sbin/dumpimage
 endef
 endif
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#35 lore raw

Re: [Buildroot] [PATCH 35/40] package/uboot-tools: preserve /usr/sbin symlink

Hi James!

-D normally doesn't replace symlinks with directories, but Ubuntu 26.04 ships with Rust uutils instead of GNU coreutils, which has a bug in install that causes this:

https://github.com/uutils/coreutils/issues/12166

This also affects lots of other packages (e.g. lvm2) and patching every single one of them to not use install -D is probably out of the question.

Also, can you look at my patch for issue 173 (
https://gitlab.com/buildroot.org/buildroot/-/work_items/173)? uboot-tools currently silently builds without FIT_SIGNATURE support even if enabled. This should be fixed.

Best regards,
Ferdinand Bachmann

Quoted 44 lines · James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/uboot-tools/uboot-tools.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/uboot-tools/ renamed from package/uboot-tools/uboot-tools.mk +0 -0

uboot-tools.mk
index fa0b6aba78..89d2ec38ea 100644

package/uboot-tools/uboot-tools.mk +0 -1
@@ -92,14 +92,14 @@ endif
 
 ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV),y)
 define UBOOT_TOOLS_INSTALL_FWPRINTENV
-       $(INSTALL) -m 0755 -D $(@D)/tools/env/fw_printenv

$(TARGET_DIR)/usr/sbin/fw_printenv
+ $(INSTALL) -m 0755 $(@D)/tools/env/fw_printenv
$(TARGET_DIR)/usr/sbin/fw_printenv

        ln -sf fw_printenv $(TARGET_DIR)/usr/sbin/fw_setenv

endef
endif

ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_DUMPIMAGE),y)
define UBOOT_TOOLS_INSTALL_DUMPIMAGE
- $(INSTALL) -m 0755 -D $(@D)/tools/dumpimage
$(TARGET_DIR)/usr/sbin/dumpimage
+ $(INSTALL) -m 0755 $(@D)/tools/dumpimage
$(TARGET_DIR)/usr/sbin/dumpimage
endef
endif

Quoted 8 lines

--
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#36 lore raw

Re: [Buildroot] [PATCH 35/40] package/uboot-tools: preserve /usr/sbin symlink

Edit: I think there was a misunderstanding; I thought you were the maintainer for uboot-tools for a second. Sorry about that.

Added "Manuel Diener" who did the last version bump commit for uboot-tools to the thread.

Quoted 66 lines · Ferdinand Bachmann

Hi James!

-D normally doesn't replace symlinks with directories, but Ubuntu 26.04 ships with Rust uutils instead of GNU coreutils, which has a bug in install that causes this:

https://github.com/uutils/coreutils/issues/12166

This also affects lots of other packages (e.g. lvm2) and patching every single one of them to not use install -D is probably out of the question.

Also, can you look at my patch for issue 173 (
https://gitlab.com/buildroot.org/buildroot/-/work_items/173)? uboot-tools currently silently builds without FIT_SIGNATURE support even if enabled. This should be fixed.

Best regards,
Ferdinand Bachmann

Quoted 44 lines · James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/uboot-tools/uboot-tools.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/uboot-tools/ renamed from package/uboot-tools/uboot-tools.mk +0 -0

uboot-tools.mk
index fa0b6aba78..89d2ec38ea 100644

package/uboot-tools/uboot-tools.mk +0 -1
@@ -92,14 +92,14 @@ endif
 
 ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV),y)
 define UBOOT_TOOLS_INSTALL_FWPRINTENV
-       $(INSTALL) -m 0755 -D $(@D)/tools/env/fw_printenv

$(TARGET_DIR)/usr/sbin/fw_printenv
+ $(INSTALL) -m 0755 $(@D)/tools/env/fw_printenv
$(TARGET_DIR)/usr/sbin/fw_printenv

        ln -sf fw_printenv $(TARGET_DIR)/usr/sbin/fw_setenv

endef
endif

ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_DUMPIMAGE),y)
define UBOOT_TOOLS_INSTALL_DUMPIMAGE
- $(INSTALL) -m 0755 -D $(@D)/tools/dumpimage
$(TARGET_DIR)/usr/sbin/dumpimage
+ $(INSTALL) -m 0755 $(@D)/tools/dumpimage
$(TARGET_DIR)/usr/sbin/dumpimage
endef
endif

Quoted 9 lines
Quoted 8 lines

--
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#37 lore raw

Re: [Buildroot] [PATCH 35/40] package/uboot-tools: preserve /usr/sbin symlink

In reply to Ferdinand Bachmann
Quoted 4 lines · Ferdinand Bachmann

Hi James!

-D normally doesn't replace symlinks with directories, but Ubuntu 26.04 ships with Rust uutils instead of GNU coreutils, which has a bug in install that causes this:

Oh, that makes more sense, I had assumed it was due to merged bin since the rsync error was basically the same as this:
https://github.com/buildroot/buildroot/commit/28694dcec72b11faca6e9d9371fb0f65c590de8b

I tested with the documented workaround on github and it seems to have fixed the issue:
update-alternatives --install /usr/bin/install install /usr/bin/gnuinstall 100

Quoted 4 lines

https://github.com/uutils/coreutils/issues/12166

This also affects lots of other packages (e.g. lvm2) and patching every single one of them to not use install -D is probably out of the question.

Hmm, yeah, that's not ideal, not sure if we should still change the 40 I patched or not.

Quoted 46 lines

Also, can you look at my patch for issue 173 (https://gitlab.com/buildroot.org/buildroot/-/work_items/173)? uboot-tools currently silently builds without FIT_SIGNATURE support even if enabled. This should be fixed.

Best regards,
Ferdinand Bachmann

Quoted 40 lines · James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/uboot-tools/uboot-tools.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/uboot-tools/uboot-tools.mk +2 -2
index fa0b6aba78..89d2ec38ea 100644
@@ -92,14 +92,14 @@ endif
 
 ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV),y)
 define UBOOT_TOOLS_INSTALL_FWPRINTENV
-       $(INSTALL) -m 0755 -D $(@D)/tools/env/fw_printenv $(TARGET_DIR)/usr/sbin/fw_printenv
+       $(INSTALL) -m 0755 $(@D)/tools/env/fw_printenv $(TARGET_DIR)/usr/sbin/fw_printenv
        ln -sf fw_printenv $(TARGET_DIR)/usr/sbin/fw_setenv
 endef
 endif
 
 ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_DUMPIMAGE),y)
 define UBOOT_TOOLS_INSTALL_DUMPIMAGE
-       $(INSTALL) -m 0755 -D $(@D)/tools/dumpimage $(TARGET_DIR)/usr/sbin/dumpimage
+       $(INSTALL) -m 0755 $(@D)/tools/dumpimage $(TARGET_DIR)/usr/sbin/dumpimage
 endef
 endif
 
Quoted 7 lines
Quoted 7 lines

--
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#38 lore raw

Re: [Buildroot] [PATCH 35/40] package/uboot-tools: preserve /usr/sbin symlink

Quoted 6 lines · James Hilliard
Quoted 4 lines · Ferdinand Bachmann

Hi James!

-D normally doesn't replace symlinks with directories, but Ubuntu 26.04 ships with Rust uutils instead of GNU coreutils, which has a bug in install that causes this:

Ah, I should have read the rest of the thread before replying to patch 1/40 :-)

Quoted 4 lines

Oh, that makes more sense, I had assumed it was due to merged bin since the rsync error was basically the same as this:
https://github.com/buildroot/buildroot/commit/28694dcec72b11faca6e9d9371fb0f65c590de8b

Quoted 8 lines

I tested with the documented workaround on github and it seems to have fixed the issue:
update-alternatives --install /usr/bin/install install /usr/bin/gnuinstall 100

Quoted 4 lines

https://github.com/uutils/coreutils/issues/12166

This also affects lots of other packages (e.g. lvm2) and patching every single one of them to not use install -D is probably out of the question.

Actually, if it's really a uutils issue, please report it to Ubuntu. They are
very good at fixing this stuff quickly. I expect the issue to disappear shortly.

Quoted 3 lines

Hmm, yeah, that's not ideal, not sure if we should still change the 40 I patched or not.

No, we shouldn't. I marked the entire series as Rejected.

Please don't throw away your branch yet though. If Ubuntu claims that it's not
actuallly a bug, we're going to need it after all.

Regards,
Arnout

Quoted 50 lines
Quoted 50 lines

Also, can you look at my patch for issue 173 (https://gitlab.com/buildroot.org/buildroot/-/work_items/173)? uboot-tools currently silently builds without FIT_SIGNATURE support even if enabled. This should be fixed.

Best regards,
Ferdinand Bachmann

Quoted 43 lines · James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
  package/uboot-tools/uboot-tools.mk | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
package/uboot-tools/uboot-tools.mk +2 -3
index fa0b6aba78..89d2ec38ea 100644
@@ -92,14 +92,14 @@ endif
 
  ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV),y)
  define UBOOT_TOOLS_INSTALL_FWPRINTENV
-       $(INSTALL) -m 0755 -D $(@D)/tools/env/fw_printenv $(TARGET_DIR)/usr/sbin/fw_printenv
+       $(INSTALL) -m 0755 $(@D)/tools/env/fw_printenv $(TARGET_DIR)/usr/sbin/fw_printenv
         ln -sf fw_printenv $(TARGET_DIR)/usr/sbin/fw_setenv
  endef
  endif
 
  ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_DUMPIMAGE),y)
  define UBOOT_TOOLS_INSTALL_DUMPIMAGE
-       $(INSTALL) -m 0755 -D $(@D)/tools/dumpimage $(TARGET_DIR)/usr/sbin/dumpimage
+       $(INSTALL) -m 0755 $(@D)/tools/dumpimage $(TARGET_DIR)/usr/sbin/dumpimage
  endef
  endif
 
--

2.53.0

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#39 lore raw

Re: [Buildroot] [PATCH 35/40] package/uboot-tools: preserve /usr/sbin symlink

Hi!

Quoted 9 lines · Arnout Vandecappelle
Quoted 6 lines · James Hilliard
Quoted 4 lines · Ferdinand Bachmann

Hi James!

-D normally doesn't replace symlinks with directories, but Ubuntu 26.04 ships with Rust uutils instead of GNU coreutils, which has a bug in install that causes this:

Ah, I should have read the rest of the thread before replying to patch 1/40 :-)

I mostly saw this because I had a filter for "uboot-tools"; I didn't even notice that it was part of a larger patch set, sorry for not reading the subject line correctly ^^".

Quoted 9 lines
Quoted 9 lines

Oh, that makes more sense, I had assumed it was due to merged bin since the rsync error was basically the same as this:
https://github.com/buildroot/buildroot/commit/28694dcec72b11faca6e9d9371fb0f65c590de8b

I tested with the documented workaround on github and it seems to have fixed the issue:
update-alternatives --install /usr/bin/install install /usr/bin/gnuinstall 100

Quoted 1 line
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

https://github.com/uutils/coreutils/issues/12166

This also affects lots of other packages (e.g. lvm2) and patching every single one of them to not use install -D is probably out of the question.

Actually, if it's really a uutils issue, please report it to Ubuntu. They are
very good at fixing this stuff quickly. I expect the issue to disappear shortly.

This was reported to Ubuntu as
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2151454
on May 6th. The bug has not been triaged by the Ubuntu team yet and is still marked "new".

As of today there is no fix package available. The upstream uutils fix PR https://github.com/uutils/coreutils/pull/11505 is still in review.

Quoted 11 lines
Quoted 3 lines

Hmm, yeah, that's not ideal, not sure if we should still change the 40 I patched or not.

No, we shouldn't. I marked the entire series as Rejected.

Please don't throw away your branch yet though. If Ubuntu claims that it's not
actuallly a bug, we're going to need it after all.

Regards,
Arnout

If this takes too long for a fix to appear upstream it could be a good idea to mention the workaround in a news posting for the next release so users aren't confused by the build failures.

Best Regards,
Ferdinand Bachmann
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#40 lore raw

Re: [Buildroot] [PATCH 35/40] package/uboot-tools: preserve /usr/sbin symlink

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ferdinand" == Ferdinand Bachmann <[email protected]> writes:

Hello,

Quoted 10 lines
Quoted 2 lines

Actually, if it's really a uutils issue, please report it to Ubuntu. They are very good at fixing this stuff quickly. I expect the issue to disappear shortly.

This was reported to Ubuntu as
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2151454
on May 6th. The bug has not been triaged by the Ubuntu team yet and is still marked "new".

As of today there is no fix package available. The upstream uutils fix PR https://github.com/uutils/coreutils/pull/11505 is still in review.

FYI: The upstream issue has been merged, but no new release or updated Ubuntu package so far.

Quoted 3 lines

If this takes too long for a fix to appear upstream it could be a good idea to mention the workaround in a news posting for the next release so users aren't confused by the build failures.

I have sent a patch to detect the buggy version and inform the user how to change to the coreutils version here:

https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#41 lore raw

PATCH 36/40 package/udpcast: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/udpcast/udpcast.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/udpcast/udpcast.mk +1 -1
index e087f2dbb2..1393e21fbd 100644
@@ -16,7 +16,7 @@ UDPCAST_MAKE_OPTS = $(UDPCAST_TARGETS)
 
 define UDPCAST_INSTALL_TARGET_CMDS
 	$(foreach f,$(UDPCAST_TARGETS),\
-		$(INSTALL) -D -m 755 $(@D)/$(f) $(TARGET_DIR)/usr/sbin/$(f)
+		$(INSTALL) -m 755 $(@D)/$(f) $(TARGET_DIR)/usr/sbin/$(f)
 	)
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#42 lore raw

PATCH 37/40 package/umtprd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/umtprd/umtprd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/umtprd/umtprd.mk +1 -1
index 1a2b387219..bde6a2e0cc 100644
@@ -14,7 +14,7 @@ define UMTPRD_BUILD_CMDS
 endef
 
 define UMTPRD_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/umtprd $(TARGET_DIR)/usr/sbin/umtprd
+	$(INSTALL) -m 0755 $(@D)/umtprd $(TARGET_DIR)/usr/sbin/umtprd
 endef
 
 $(eval $(generic-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#43 lore raw

PATCH 38/40 package/unscd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/unscd/unscd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/unscd/unscd.mk +1 -1
index 94b46460f6..00198e56e3 100644
@@ -20,7 +20,7 @@ define UNSCD_BUILD_CMDS
 endef
 
 define UNSCD_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 755 -D $(@D)/nscd $(TARGET_DIR)/usr/sbin/nscd
+	$(INSTALL) -m 755 $(@D)/nscd $(TARGET_DIR)/usr/sbin/nscd
 	$(INSTALL) -m 600 -D package/unscd/nscd.conf $(TARGET_DIR)/etc/nscd.conf
 endef
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#44 lore raw

PATCH 39/40 package/vsftpd: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/vsftpd/vsftpd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/vsftpd/vsftpd.mk +1 -1
index 14c1b6be13..2f57a2f438 100644
@@ -67,7 +67,7 @@ endef
 # 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
 # That's why we have to adjust the permissions of /home/ftp
 define VSFTPD_INSTALL_TARGET_CMDS
-	$(INSTALL) -D -m 755 $(@D)/vsftpd $(TARGET_DIR)/usr/sbin/vsftpd
+	$(INSTALL) -m 755 $(@D)/vsftpd $(TARGET_DIR)/usr/sbin/vsftpd
 	test -f $(TARGET_DIR)/etc/vsftpd.conf || \
 		$(INSTALL) -D -m 644 $(@D)/vsftpd.conf \
 			$(TARGET_DIR)/etc/vsftpd.conf
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#45 lore raw

PATCH 40/40 package/wpa_supplicant: preserve /usr/sbin symlink

In reply to James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
 package/wpa_supplicant/wpa_supplicant.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/wpa_supplicant/wpa_supplicant.mk +3 -3
index fe4bc34d55..a0f7922f24 100644
@@ -245,14 +245,14 @@ endef
 
 ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_CLI),y)
 define WPA_SUPPLICANT_INSTALL_CLI
-	$(INSTALL) -m 0755 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_cli \
+	$(INSTALL) -m 0755 $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_cli \
 		$(TARGET_DIR)/usr/sbin/wpa_cli
 endef
 endif
 
 ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE),y)
 define WPA_SUPPLICANT_INSTALL_PASSPHRASE
-	$(INSTALL) -m 0755 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_passphrase \
+	$(INSTALL) -m 0755 $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_passphrase \
 		$(TARGET_DIR)/usr/sbin/wpa_passphrase
 endef
 endif
@@ -281,7 +281,7 @@ endef
 endif
 
 define WPA_SUPPLICANT_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0755 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_supplicant \
+	$(INSTALL) -m 0755 $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_supplicant \
 		$(TARGET_DIR)/usr/sbin/wpa_supplicant
 	$(INSTALL) -m 644 -D package/wpa_supplicant/wpa_supplicant.conf \
 		$(TARGET_DIR)/etc/wpa_supplicant.conf
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#46 lore raw
In reply to James Hilliard

Hello James, All,

Le 07/05/2026 à 00:33, James Hilliard a écrit :

Quoted 8 lines

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

Maybe this is something we have to fix in the package infrastructure?

Quoted 4 lines

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

This should happen in the autobuilders when BR2_ROOTFS_MERGED_BIN and BR2_PER_PACKAGE_DIRECTORIES are both set. Can you share a link to the issue?

I can't reproduce here with arptables package with BR2_ROOTFS_MERGED_BIN=y and BR2_PER_PACKAGE_DIRECTORIES=y.

Best regards,
Romain

Quoted 11 lines
---
 package/arptables/arptables.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/arptables/arptables.mk +0 -0
index 320a33bb3c..ec65201c86 100644

package/arptables/arptables.mk define ARPTABLES_BUILD_CMDS · line 21

Quoted 8 lines
package/arptables/arptables.mk +1 -1
@@ -15,7 +15,7 @@ define ARPTABLES_BUILD_CMDS
 endef
 
 define ARPTABLES_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 755 -D $(@D)/arptables-legacy \
+	$(INSTALL) -m 755 $(@D)/arptables-legacy \
 		$(TARGET_DIR)/usr/sbin/arptables-legacy
 endef
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#47 lore raw
In reply to James Hilliard
Quoted 4 lines · James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

Which version of install are you using? It shouldn't do that...

Regards,
Arnout

Quoted 19 lines

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
  package/arptables/arptables.mk | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/arptables/arptables.mk +0 -0
index 320a33bb3c..ec65201c86 100644

package/arptables/arptables.mk define ARPTABLES_BUILD_CMDS · line 21

Quoted 8 lines
package/arptables/arptables.mk +1 -1
@@ -15,7 +15,7 @@ define ARPTABLES_BUILD_CMDS
  endef
 
  define ARPTABLES_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 755 -D $(@D)/arptables-legacy \
+	$(INSTALL) -m 755 $(@D)/arptables-legacy \
  		$(TARGET_DIR)/usr/sbin/arptables-legacy
  endef
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#48 lore raw
Quoted 10 lines · Arnout Vandecappelle via buildroot
Quoted 4 lines · James Hilliard

With BR2_ROOTFS_MERGED_BIN=y, /usr/sbin is a symlink to bin. Using install -D for files below $(TARGET_DIR)/usr/sbin can create the parent directory path and replace that symlink with a real directory.

Which version of install are you using? It shouldn't do that...

I reproduced this issue on Ubuntu 26.04. The problem is caused by Rust's coreutils, see https://github.com/uutils/coreutils/issues/11469#issuecomment-4389604475.

Quoted 24 lines

Regards,
Arnout

Quoted 21 lines

With per-package directories, this can later make rsync fail when a package target directory contains a non-empty usr/sbin directory and the skeleton provides usr/sbin -> bin.

The skeleton dependency has already created /usr/sbin, either as a directory or as the merged-bin symlink, so use plain install and let it follow the existing path.

---
  package/arptables/arptables.mk | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/arptables/arptables.mk +0 -0
index 320a33bb3c..ec65201c86 100644
@@ -15,7 +15,7 @@ define ARPTABLES_BUILD_CMDS
  endef
 
Quoted 6 lines

package/arptables/arptables.mk define ARPTABLES_BUILD_CMDS · line 21

Quoted 6 lines
package/arptables/arptables.mk +1 -1
  define ARPTABLES_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 755 -D $(@D)/arptables-legacy \
+	$(INSTALL) -m 755 $(@D)/arptables-legacy \
  		$(TARGET_DIR)/usr/sbin/arptables-legacy
  endef
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot