maintainer-feedback requested: [Bug 264962] ports-mgmt/pkg 1.18.2: 'pkg-static: pkg_checksum_hash_sha256_file(read failed): Is a directory' error when package contains .egg-info dir

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 30 Jun 2022 14:56:33 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg@FreeBSD.org> for maintainer-feedback:
Bug 264962: ports-mgmt/pkg 1.18.2: 'pkg-static:
pkg_checksum_hash_sha256_file(read failed): Is a directory' error  when package
contains .egg-info dir
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264962



--- Description ---
Its impossible to create the package or install the port when it contains
.egg-info dir. Faced with the same error for graphics/lensfun and
sysutils/xen-tools
Error log (make package/make install in graphics/lensfun dir): 

DBG(3)[67579]> Pkg: add new file
'/usr/local/share/lensfun/version_2/timestamp.txt'
DBG(1)[67579]> Parsing plist line:
'lib/python3.9/site-packages/lensfun-0.3.95-py3.9.egg-info'
pkg-static: pkg_checksum_hash_sha256_file(read failed): Is a directory

Same and for sysutils/xen-tools:
DBG(1)[11477]> Parsing plist line:
'lib/python3.9/site-packages/pygrub-0.6-py3.9.egg-info'
pkg-static: pkg_checksum_hash_sha256_file(read failed): Is a directory
DBG(1)[11477]> Parsing plist line:
'lib/python3.9/site-packages/xen-3.0-py3.9.egg-info'
pkg-static: pkg_checksum_hash_sha256_file(read failed): Is a directory