[Bug 276180] sysutils/smartmontools: update-smart-drivedb: GnuPG is not available

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Jan 2024 15:46:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276180

            Bug ID: 276180
           Summary: sysutils/smartmontools: update-smart-drivedb: GnuPG is
                    not available
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: samm@FreeBSD.org
          Reporter: freebsd@m-eng.net
          Assignee: samm@FreeBSD.org
             Flags: maintainer-feedback?(samm@FreeBSD.org)

Related to package:
-------------------

Name           : smartmontools
Version        : 7.4
Origin         : sysutils/smartmontools
Architecture   : FreeBSD:14:amd64
FreeBSD_version: 1400097
build_timestamp: 2023-12-11T05:28:08+0000


Error Description:
------------------

root@host:~ # update-smart-drivedb
/usr/local/sbin/update-smart-drivedb: GnuPG is not available ('--no-verify' to
ignore)
Try '/usr/local/sbin/update-smart-drivedb -h' for help

However the package security/gnupg is installed.


Proposed Fix:
-------------

In /usr/local/sbin/update-smart-drivedb change the following variable:

gpg=""

to

gpg="/usr/local/bin/gpg"

As an alternative, the script could check if /usr/local/bin/gpg exists and just
set the gpg variable if true.

if -e "/usr/local/bin/gpg" then
  gpg="/usr/local/bin/gpg"
fi

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