Bug 265753 - graphics/lensfun: pkg_checksum_hash_sha256_file(read failed): Is a directory
Summary: graphics/lensfun: pkg_checksum_hash_sha256_file(read failed): Is a directory
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-10 08:17 UTC by Gian-Simon Purkert
Modified: 2022-09-28 08:17 UTC (History)
2 users (show)

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


Attachments
Patch to pkg-plist (828 bytes, patch)
2022-09-27 16:46 UTC, heathn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)