Bug 265753

Summary: graphics/lensfun: pkg_checksum_hash_sha256_file(read failed): Is a directory
Product: Ports & Packages Reporter: Gian-Simon Purkert <gspurki>
Component: Individual Port(s)Assignee: Alexey Dokuchaev <danfe>
Status: Closed FIXED    
Severity: Affects Only Me CC: heathn, scott.kanne
Priority: --- Flags: bugzilla: maintainer-feedback? (danfe)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to pkg-plist none

Description Gian-Simon Purkert 2022-08-10 08:17:35 UTC
When install lensfun with "make install clean" i got that error:

===>  Installing for lensfun-0.3.95_1
===>  Checking if lensfun is already installed
===>   Registering installation for lensfun-0.3.95_1
pkg-static: pkg_checksum_hash_sha256_file(read failed): Is a directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/lensfun
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/lensfun
Comment 1 heathn 2022-09-27 16:46:16 UTC
Created attachment 236878 [details]
Patch to pkg-plist

I had the same problem.  I've include a patch which fixed the issue for me.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-09-28 08:12:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f00462870ffcbdaebb11be12b42a8f58bcfead95

commit f00462870ffcbdaebb11be12b42a8f58bcfead95
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2022-09-28 08:11:30 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2022-09-28 08:11:30 +0000

    graphics/lensfun: fix packaging of the Python bits, enable test suite

    Python bits require distutils which was missing from the dependencies
    but often installed on user's machine, this breaking packaging.

    Drop redundant PYTHON_SUFFIX from the PLIST_SUB while here and enable
    the build of ancillary program (because why not).

    PR:             265753
    Submitted by:   Gian-Simon Purkert

 graphics/lensfun/Makefile  | 22 ++++++++++++++++++----
 graphics/lensfun/pkg-plist |  6 +++++-
 2 files changed, 23 insertions(+), 5 deletions(-)