Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: James Hilliard <james.hilliard1@gmail.com>
To: buildroot@buildroot.org
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>,
	Gary Bisson <bisson.gary@gmail.com>,
	Alexander Clouter <alex+buildroot@digriz.org.uk>,
	Sergio Prado <sergio.prado@e-labworks.com>,
	Sergey Matyukevich <geomatsi@gmail.com>,
	Bernd Kuhls <bernd@kuhls.net>,
	Brandon Maier <brandon.maier@collins.com>,
	"Alvaro G . M" <alvaro.gamez@hazent.com>,
	Paul Cercueil <paul@crapouillou.net>,
	Refik Tuzakli <tuzakli.refik@gmail.com>,
	James Hilliard <james.hilliard1@gmail.com>,
	Doug Kehn <rdkehn@gmail.com>,
	Spenser Gilliland <spenser@gillilanding.com>,
	Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	Marcus Hoffmann <bubu@bubu1.eu>,
	Pascal de Bruijn <p.debruijn@unilogic.nl>
Subject: [Buildroot] [PATCH 21/40] package/openssh: preserve /usr/sbin symlink
Date: Wed,  6 May 2026 16:33:22 -0600	[thread overview]
Message-ID: <20260506223341.1759760-21-james.hilliard1@gmail.com> (raw)
In-Reply-To: <20260506223341.1759760-1-james.hilliard1@gmail.com>

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.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/openssh/openssh.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index 8f46d886dc..ae3ebdb320 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -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
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2026-05-06 22:34 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-06 22:33 [Buildroot] [PATCH 01/40] package/arptables: preserve /usr/sbin symlink James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 02/40] package/babeld: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 03/40] package/bonnie: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 04/40] package/darkhttpd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 05/40] package/dcron: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 06/40] package/ebtables: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 07/40] package/fbset: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 08/40] package/fmc: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 09/40] package/freescale-imx/imx-m4fwloader: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 10/40] package/gptfdisk: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 11/40] package/hans: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 12/40] package/hostapd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 13/40] package/irda-utils: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 14/40] package/libpri: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 15/40] package/libss7: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 16/40] package/linux-tools: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 17/40] package/mtd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 18/40] package/nethogs: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 19/40] package/noip: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 20/40] package/odhcp6c: " James Hilliard
2026-05-06 22:33 ` James Hilliard [this message]
2026-05-06 22:33 ` [Buildroot] [PATCH 22/40] package/p910nd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 23/40] package/parprouted: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 24/40] package/pptp-linux: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 25/40] package/proftpd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 26/40] package/ptpd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 27/40] package/restorecond: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 28/40] package/spidev_test: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 29/40] package/sredird: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 30/40] package/tftpd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 31/40] package/ti-gfx: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 32/40] package/ti-uim: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 33/40] package/triggerhappy: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 34/40] package/tunctl: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 35/40] package/uboot-tools: " James Hilliard
2026-05-08  9:57   ` Ferdinand Bachmann
2026-05-08 10:08     ` Ferdinand Bachmann
2026-05-08 18:09     ` James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 36/40] package/udpcast: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 37/40] package/umtprd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 38/40] package/unscd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 39/40] package/vsftpd: " James Hilliard
2026-05-06 22:33 ` [Buildroot] [PATCH 40/40] package/wpa_supplicant: " James Hilliard
2026-05-14 19:38 ` [Buildroot] [PATCH 01/40] package/arptables: " Romain Naour via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260506223341.1759760-21-james.hilliard1@gmail.com \
    --to=james.hilliard1@gmail.com \
    --cc=alex+buildroot@digriz.org.uk \
    --cc=alvaro.gamez@hazent.com \
    --cc=bernd@kuhls.net \
    --cc=bisson.gary@gmail.com \
    --cc=brandon.maier@collins.com \
    --cc=bubu@bubu1.eu \
    --cc=buildroot@buildroot.org \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=eric.le.bihan.dev@free.fr \
    --cc=geomatsi@gmail.com \
    --cc=p.debruijn@unilogic.nl \
    --cc=paul@crapouillou.net \
    --cc=rdkehn@gmail.com \
    --cc=sergio.prado@e-labworks.com \
    --cc=spenser@gillilanding.com \
    --cc=tuzakli.refik@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox