Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Feb 2025 15:40:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 284505] net/samba420 missing some python modules for samba-tool on plist
Message-ID:  <bug-284505-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 284505
           Summary: net/samba420 missing some python modules for
                    samba-tool on plist
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: samba@FreeBSD.org
          Reporter: shellingfield@icloud.com
          Assignee: samba@FreeBSD.org
             Flags: maintainer-feedback?(samba@FreeBSD.org)

# I should have noticed sooner,,

command:
samba-tool user list

returns:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/samba/netcmd/main.py", line=
 91,
in samba_tool
    cmd, argv =3D cmd_sambatool()._resolve("samba-tool", *args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/samba/netcmd/__init__.py", =
line
344, in _resolve
    sub =3D self.subcommands[a]
          ~~~~~~~~~~~~~~~~^^^
  File "/usr/local/lib/python3.11/site-packages/samba/netcmd/main.py", line=
 35,
in __getitem__
    self[attr] =3D getattr(__import__('samba.netcmd.%s' % package,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/samba/netcmd/user/__init__.=
py",
line 24, in <module>
    from .auth import cmd_user_auth
  File
"/usr/local/lib/python3.11/site-packages/samba/netcmd/user/auth/__init__.py=
",
line 25, in <module>
    from .policy import cmd_user_auth_policy
  File
"/usr/local/lib/python3.11/site-packages/samba/netcmd/user/auth/policy.py",
line 25, in <module>
    from samba.netcmd.domain.models import AuthenticationPolicy, User
  File
"/usr/local/lib/python3.11/site-packages/samba/netcmd/domain/__init__.py", =
line
28, in <module>
    from .auth import cmd_domain_auth
  File
"/usr/local/lib/python3.11/site-packages/samba/netcmd/domain/auth/__init__.=
py",
line 25, in <module>
    from .policy import cmd_domain_auth_policy
  File
"/usr/local/lib/python3.11/site-packages/samba/netcmd/domain/auth/policy.py=
",
line 31, in <module>
    from samba.nt_time import NT_TICKS_PER_SEC
ModuleNotFoundError: No module named 'samba.nt_time'

Expected:
Guest
Administrator
krbtgt
dns-XXXX


i found pkg-plist.python don't have some .py file called from samba-tool.
for example,
above "samba-tool user list" call
/usr/local/lib/python3.11/site-packages/samba/netcmd/user/list.py,
but no file, no directory.

as a small test, replace /usr/local/lib/python3.11/site-packages/samba/
directory with stage on WRKDIR,
i could take expected result.

between net/samba419 and net/samba420, there are some difference about files
and directory structures.
so we should reflect this change into pkg-plist.python
# i'll check missing file and directory after some test,,,

Regards,

--=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-284505-7788>