[Bug 266185] sysutils/smartmontools update-smart-drivedb ends with sed failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Sep 2022 00:16:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266185
Bug ID: 266185
Summary: sysutils/smartmontools update-smart-drivedb ends with
sed failure
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: samm@FreeBSD.org
Reporter: knezour@weboutsourcing.cz
Assignee: samm@FreeBSD.org
Flags: maintainer-feedback?(samm@FreeBSD.org)
update-smart-drivedb --no-verify
sed: 1: "/^[ {]*"VERSION: *[^"]* ...": extra characters at the end of q command
I guess that it is some GNU sed whatever on line 545 in get_db_version()
function, quick googling returned that semicolon may be cure and really,
changing
x=$(sed -n '/^[ {]*"VERSION: *[^"]*"/{s,^[ {]*"VERSION: \([1-9][./0-9]*
[^"]*\)".*$,\1,p;q}' "$1") \
to
x=$(sed -n '/^[ {]*"VERSION: *[^"]*"/{s,^[ {]*"VERSION: \([1-9][./0-9]*
[^"]*\)".*$,\1,p;q;SEMICOLON ADDED HERE}' "$1") \
resulted with
/usr/local/share/smartmontools/drivedb.h 7.3/5319 updated to 7.3/5405 (NOT
VERIFIED)
I have no clue if this is right solution or ugly patch :)
--
You are receiving this mail because:
You are the assignee for the bug.