Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Sep 2022 00:16:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 266185] sysutils/smartmontools update-smart-drivedb ends with sed failure
Message-ID:  <bug-266185-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266185

            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 com=
mand

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=3D$(sed -n '/^[ {]*"VERSION: *[^"]*"/{s,^[ {]*"VERSION: \([1-9][./0-9]*
[^"]*\)".*$,\1,p;q}' "$1") \

to

  x=3D$(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 :)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266185-7788>