Skip to content

Use a hard link for the Windows discovery alias#6478

Open
Tobias-Fischer wants to merge 1 commit into
eProsima:masterfrom
Tobias-Fischer:codex/robostack-fastdds-windows-hardlink
Open

Use a hard link for the Windows discovery alias#6478
Tobias-Fischer wants to merge 1 commit into
eProsima:masterfrom
Tobias-Fischer:codex/robostack-fastdds-windows-hardlink

Conversation

@Tobias-Fischer

Copy link
Copy Markdown

This is part of an effort to contribute RoboStack downstream patches back upstream.

Origin: RoboStack patch/ros-rolling-fastdds.win.patch, authored by Daisuke Nishimatsu.

The Windows install step creates an unversioned fast-discovery-server.exe alias for the versioned executable. PowerShell New-Item supports FileSystem item types including symbolic links and hard links, and using a hard link avoids depending on Windows symbolic link privileges for unprivileged installs.

Reference: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-item

This upstreams RoboStack patch patch/ros-rolling-fastdds.win.patch.

The Windows install step creates an unversioned fast-discovery-server.exe alias for the versioned executable. A PowerShell hard link provides that alias without depending on Windows symbolic link privileges, which can fail for unprivileged installs outside Developer Mode.

Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
@Tobias-Fischer

Copy link
Copy Markdown
Author

FYI @wep21 @traversaro, this was opened from the RoboStack upstreaming tracker: RoboStack/robostack.github.io#16

Source patch: https://github.com/RoboStack/ros-rolling/blob/main/patch/ros-rolling-fastdds.win.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant