Bug 262020 - security/ssh-tools: Fails to run: sed: 1: "s/\s*=\s*/=/": RE error: trailing backslash (\)
Summary: security/ssh-tools: Fails to run: sed: 1: "s/\s*=\s*/=/": RE error: trailing ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Mateusz Piotrowski
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2022-02-17 18:40 UTC by freebsd
Modified: 2022-02-20 14:14 UTC (History)
0 users

See Also:
0mp: maintainer-feedback+
0mp: merge-quarterly-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd 2022-02-17 18:40:31 UTC
The ssh-facts command errors out with

sed: 1: "s/\s*=\s*/=/": RE error: trailing backslash (\)

This happens because FreeBSD sed does not support "\s", so this needs to be replaced by "[[:space:]]".

See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253893
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-02-20 14:13:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=10ef4e28ebf00b38ea11a7df9ff900b744b2c2c4

commit 10ef4e28ebf00b38ea11a7df9ff900b744b2c2c4
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2022-02-20 14:11:23 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2022-02-20 14:12:33 +0000

    security/ssh-tools: Fix regex in ssh-facts

    PR:             262020
    Reported by:    freebsd@schukraft.org

 security/ssh-tools/Makefile | 3 +++
 security/ssh-tools/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)
Comment 2 Mateusz Piotrowski freebsd_committer freebsd_triage 2022-02-20 14:14:58 UTC
MFC is not required. The port is not present in the quarterly branch.


Also, thanks for the report!