Page MenuHomeFreeBSD

security/py-yubikey-manager: Update to 4.0.0
ClosedPublic

Authored by daniel_shafer.cc on Mar 20 2021, 5:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 9 2024, 4:50 AM
Unknown Object (File)
Apr 1 2024, 7:55 AM
Unknown Object (File)
Mar 29 2024, 5:08 AM
Unknown Object (File)
Mar 28 2024, 5:24 PM
Unknown Object (File)
Feb 8 2024, 2:15 PM
Unknown Object (File)
Jan 29 2024, 6:19 AM
Unknown Object (File)
Jan 23 2024, 7:18 AM
Unknown Object (File)
Jan 11 2024, 4:37 PM
Subscribers

Details

Summary
security/py-yubikey-manager: Update to 4.0.0

Changes can be viewed here:
https://developers.yubico.com/yubikey-manager/Release_Notes.html
Test Plan

portlint: looks fine.
poudriere: (testport, 122Samd64, good)

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 24 2021, 7:22 PM
This revision was automatically updated to reflect the committed changes.

This update doesn't actually work, though it does build:

$ ykman
Traceback (most recent call last):

File "/usr/local/bin/ykman", line 11, in <module>
  load_entry_point('yubikey-manager==4.0.0', 'console_scripts', 'ykman')()
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
  return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
  return ep.load()
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
  return self.resolve()
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
  module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.7/site-packages/ykman/__init__.py", line 29, in <module>
  from .device import (  # noqa
File "/usr/local/lib/python3.7/site-packages/ykman/device.py", line 52, in <module>
  from .hid import list_otp_devices, list_ctap_devices
File "/usr/local/lib/python3.7/site-packages/ykman/hid/__init__.py", line 46, in <module>
  raise Exception("Unsupported platform")

Exception: Unsupported platform

I've filed a bug at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254580, but the change should really be backed out until the port is patched to work on FreeBSD, since it is completely broken across the board right now.

This update doesn't actually work, though it does build:

$ ykman
Traceback (most recent call last):

File "/usr/local/bin/ykman", line 11, in <module>
  load_entry_point('yubikey-manager==4.0.0', 'console_scripts', 'ykman')()
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
  return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
  return ep.load()
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
  return self.resolve()
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
  module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.7/site-packages/ykman/__init__.py", line 29, in <module>
  from .device import (  # noqa
File "/usr/local/lib/python3.7/site-packages/ykman/device.py", line 52, in <module>
  from .hid import list_otp_devices, list_ctap_devices
File "/usr/local/lib/python3.7/site-packages/ykman/hid/__init__.py", line 46, in <module>
  raise Exception("Unsupported platform")

Exception: Unsupported platform

I've filed a bug at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254580, but the change should really be backed out until the port is patched to work on FreeBSD, since it is completely broken across the board right now.

I commented on the bug. I didn't know py-yubikey-manager actually provided it's own client. It is a direct dependency of yubikey-manager-qt which did work last I tested it. So if this is rolled back, then that one must be rolled back as well.

Nope, that's broken too in the same way:

$ ykman-gui
Got library name: "/usr/local/lib/qt5/qml/io/thp/pyotherside/libpyothersideplug in.so"
"PyOtherSide error: Traceback (most recent call last):\n\n File \"qrc:///py/yub ikey.py\", line 16, in <module>\n import ykman.logging_setup\n\n File \"/usr /local/lib/python3.7/site-packages/ykman/__init.py\", line 29, in <module>\n from .device import ( # noqa\n\n File \"/usr/local/lib/python3.7/site-packag es/ykman/device.py\", line 52, in <module>\n from .hid import list_otp_device s, list_ctap_devices\n\n File \"/usr/local/lib/python3.7/site-packages/ykman/hi d/init__.py\", line 46, in <module>\n raise Exception(\"Unsupported platfor m\")\n\nException: Unsupported platform\n"
qml: Cannot import module: yubikey (Traceback (most recent call last):

File "qrc:///py/yubikey.py", line 16, in <module>                                                         
  import ykman.logging_setup                                                                              

File "/usr/local/lib/python3.7/site-packages/ykman/__init__.py", line 29, in <                            module>                                                                                                     
  from .device import (  # noqa                                                                           

File "/usr/local/lib/python3.7/site-packages/ykman/device.py", line 52, in <mo                            dule>                                                                                               
  from .hid import list_otp_devices, list_ctap_devices                                                    

File "/usr/local/lib/python3.7/site-packages/ykman/hid/__init__.py", line 46,                             in <module>                                                                                                 
  raise Exception("Unsupported platform")

Exception: Unsupported platform
)
"PyOtherSide error: Traceback (most recent call last):\n\n File \"<string>\", l ine 1, in <module>\n\nNameError: name 'yubikey' is not defined\n"
qml: Function not found: 'yubikey.init' (Traceback (most recent call last):

File "<string>", line 1, in <module>

NameError: name 'yubikey' is not defined