Bug 247391

Summary: [patch] sysutils/py-salt fix after broken update
Product: Ports & Packages Reporter: Olli Hauer <ohauer>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: christer.edwards
Priority: --- Flags: christer.edwards: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 247390    
Bug Blocks:    
Attachments:
Description Flags
patch py-salt none

Description Olli Hauer freebsd_committer 2020-06-18 19:56:12 UTC
Created attachment 215749 [details]
patch py-salt

The port sysutils/py-salt seems broken after the last update r539546

There are two missing dependencies
- security/py-pycryptodome (instead security/py-pycrypt)
- sysutils/py-distro (new requirement)

System FreeBSD 12.1 (amd64) python3.7

Error message for missing py-distro,

Starting salt_master.
Traceback (most recent call last):
  File "/usr/local/bin/salt-master", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    @_call_aside
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'distro' distribution was not found and is required by salt
/usr/local/etc/rc.d/salt_master: WARNING: failed to start salt_master


Error message for py-pycryptodomex

Starting salt_master.
Traceback (most recent call last):
  File "/usr/local/bin/salt-master", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    @_call_aside
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycryptodomex>=3.9.7' distribution was not found and is required by salt
/usr/local/etc/rc.d/salt_master: WARNING: failed to start salt_master
Comment 1 commit-hook freebsd_committer 2020-06-18 20:22:42 UTC
A commit references this bug:

Author: krion
Date: Thu Jun 18 20:22:19 UTC 2020
New revision: 539568
URL: https://svnweb.freebsd.org/changeset/ports/539568

Log:
  Fix runtime error by adding security/py-pycryptodome
  and sysutils/py-distro dependencies.
  Remove py-ioflo and py-ioflo from tcp transport as they are
  not required anymore.

  PR:		247391
  Submitted by:	ohauer@
  Approved by:	maintainer

Changes:
  head/sysutils/py-salt/Makefile
Comment 2 commit-hook freebsd_committer 2020-06-18 20:24:43 UTC
A commit references this bug:

Author: krion
Date: Thu Jun 18 20:23:46 UTC 2020
New revision: 539569
URL: https://svnweb.freebsd.org/changeset/ports/539569

Log:
  MFH: r539568

  Fix runtime error by adding security/py-pycryptodome
  and sysutils/py-distro dependencies.
  Remove py-ioflo and py-ioflo from tcp transport as they are
  not required anymore.

  PR:		247391
  Submitted by:	ohauer@
  Approved by:	maintainer

  Approved by:	portmgr (blanket)

Changes:
_U  branches/2020Q2/
  branches/2020Q2/sysutils/py-salt/Makefile