Bug 203774 - security/binwalk: fails with Signature Exception: 'freebsd10'
Summary: security/binwalk: fails with Signature Exception: 'freebsd10'
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kurt Jaeger
Depends on:
Reported: 2015-10-14 16:34 UTC by Ed Maste
Modified: 2015-10-14 18:17 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (pi)


Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 2015-10-14 16:34:41 UTC
I installed the binwalk package and it failed as mentioned in the Summary. (Upstream binwalk from git HEAD works fine, and reports itself as v2.1.0.)
Host is stable/10 from a month or so ago.

% binwalk freebsd-ubiquiti-edgerouter-lite                    

WARNING: Failed to load plugin module 'zlibvalid': 'freebsd10'

WARNING: Failed to load plugin module 'compressd': 'freebsd10'

WARNING: Failed to load plugin module 'zlibvalid': 'freebsd10'

WARNING: Failed to load plugin module 'compressd': 'freebsd10'

Signature Exception: 'freebsd10'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/binwalk/core/module.py", line 481, in main
  File "/usr/local/lib/python2.7/site-packages/binwalk/modules/signature.py", line 85, in init
    self.magic = binwalk.core.magic.Magic(self.mfile)
  File "/usr/local/lib/python2.7/site-packages/binwalk/core/magic.py", line 43, in __init__
    self.libmagic = binwalk.core.C.Library(self.LIBRARY, self.LIBMAGIC_FUNCTIONS)
  File "/usr/local/lib/python2.7/site-packages/binwalk/core/C.py", line 100, in __init__
    self.library = ctypes.cdll.LoadLibrary(self.find_library(library))
  File "/usr/local/lib/python2.7/site-packages/binwalk/core/C.py", line 140, in find_library
    for path in system_paths[sys.platform]:
KeyError: 'freebsd10'
Comment 1 commit-hook freebsd_committer 2015-10-14 18:13:34 UTC
A commit references this bug:

Author: pi
Date: Wed Oct 14 18:12:59 UTC 2015
New revision: 399285
URL: https://svnweb.freebsd.org/changeset/ports/399285

  security/binwalk: 2.0.1 -> 2.0.2 (or so)

  - old version did not work
  - current github head does work (tested)
  - new from head sees itself as 2.1.0, but not yet released, so...

  PR:		203774
  Requested by:	emaste

Comment 2 Kurt Jaeger freebsd_committer 2015-10-14 18:14:34 UTC
Updated, thanks for the hint that github head works!
Comment 3 Ed Maste freebsd_committer 2015-10-14 18:17:33 UTC
Thanks for the quick update!