tags: "post-build" and "post-build-DIST-on" in Makefile are not triggered so few files cannot be copied/created:
pkg-static: Unable to access file /tmp/var/db/repo/ports/devel/electron4/work/stage/usr/local/share/electron/releases/SHASUMS256.txt:No such file or directory
pkg-static: Unable to access file /tmp/var/db/repo/ports/devel/electron4/work/stage/usr/local/share/electron/releases/chromedriver-v4.2.8-freebsd-x64.zip:No such file or directory
pkg-static: Unable to access file /tmp/var/db/repo/ports/devel/electron4/work/stage/usr/local/share/electron/releases/electron-v4.2.8-freebsd-x64.zip:No such file or directory
pkg-static: Unable to access file /tmp/var/db/repo/ports/devel/electron4/work/stage/usr/local/share/electron/releases/mksnapshot-v4.2.8-freebsd-x64.zip:No such file or directory
I had to manually run:
$> make post-build
$> make post-build-DIST-on
Once I got such files I was able to install/package electron4.
(In reply to Sebastian Stroniewski-Wojtczak from comment #0)
Thanks for reporting the issue.
I guess the port option DIST is set OFF. Is that correct? If so, this seems an issue with pkg-plist and I will look into this.
Created attachment 206139 [details]
Patch to fix pkg-plist when DIST is OFF
The failure of build was due to an error in "pkg-plist", which forced a build process to unconditionally try to include the listed files in a package.
The attached patch fixes the error and also changes the DIST option to OFF by default (since including the binary zip files currently doesn't make much sense).
A commit references this bug:
Date: Mon Jul 29 21:47:27 UTC 2019
New revision: 507605
devel/electron4: Fix pkg-plist and change default options
Fix pkg-plist when DIST option is OFF.
The DIST option is set OFF by default, reducing the package size.
Submitted by: maintainer
Reported by: Sebastian Stroniewski-Wojtczak
Obtained from: https://github.com/tagattie/FreeBSD-Electron/pull/16
Thanks for reporting!