[Bug 270893] security/py-notus-scanner: 22.4.5 is missing slackware module

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 17 Apr 2023 10:42:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270893

            Bug ID: 270893
           Summary: security/py-notus-scanner: 22.4.5 is missing slackware
                    module
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

During "service notus_scanner start" this happened:

Traceback (most recent call last):
  File "/usr/local/bin/notus-scanner", line 33, in <module>
    sys.exit(load_entry_point('notus-scanner==22.4.5', 'console_scripts',
'notus-scanner')())
  File "/usr/local/bin/notus-scanner", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in
import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/local/lib/python3.9/site-packages/notus/scanner/daemon.py", line
27, in <module>
    from .loader import JSONAdvisoriesLoader
  File
"/usr/local/lib/python3.9/site-packages/notus/scanner/loader/__init__.py", line
18, in <module>
    from .loader import AdvisoriesLoader
  File "/usr/local/lib/python3.9/site-packages/notus/scanner/loader/loader.py",
line 21, in <module>
    from ..models.packages.package import PackageAdvisories
  File
"/usr/local/lib/python3.9/site-packages/notus/scanner/models/packages/__init__.py",
line 24, in <module>
    from .slackware import SlackPackage
ModuleNotFoundError: No module named 'notus.scanner.models.packages.slackware'
/usr/local/etc/rc.d/notus_scanner: WARNING: failed to start notus_scanner

It's most likely due to an incomplete pkg-plist.
This package was built by yours truly on our dedicated builder.

Package details:

# pkg info -dfr py39-notus-scanner
py39-notus-scanner-22.4.5
Name           : py39-notus-scanner
Version        : 22.4.5
Installed on   : Sun Apr  9 21:28:14 2023 CEST [Sun Apr  9 19:28:14 2023 UTC]
Origin         : security/py-notus-scanner
Architecture   : FreeBSD:13:*
Prefix         : /usr/local
Categories     : security python
Licenses       : AGPLv3
Maintainer     : acm@FreeBSD.org
WWW            : https://github.com/greenbone/notus-scanner
Comment        : scanner for creating results from local security checks
Annotations    :
        flavor         : py39
        repo_type      : binary
        repository     : builder01
Flat size      : 1.33MiB
Description    :
Notus Scanner detects vulnerable products in a system environment. The scanning
method is to evaluate internal system information. It does this very fast and
even detects currently inactive products because it does not need to interact
with each of the products.

To report about vulnerabilities, Notus Scanner receives collected system
information on the one hand and accesses the vulnerability information from the
feed service on the other. Both input elements are in table form: the system
information is specific to each environment and the vulnerability information
is specific to each system type.

Notus Scanner integrates into the Greenbone Vulnerability Management framework
which allows to let it scan entire networks within a single task. Any
vulnerability test in the format of .notus files inside the Greenbone Feed will
be considered and automatically matched with the scanned environments.

WWW: https://github.com/greenbone/notus-scanner
Depends on     :
        py39-tomli-2.0.1_2
        py39-psutil-5.9.4
        py39-python-gnupg-0.4.7
        py39-paho-mqtt-1.6.1
        mosquitto-2.0.15_1
        python39-3.9.16_2
        py39-setuptools-63.1.0
        py39-sentry-sdk-1.5.12
        py39-packaging-23.0_2
Required by    :
        gvm-22.4.1

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