The current packed yourls port requires the additional loading of the following php modules to operate correctly: php81-iconv php81-pdo_mysql Below is a patch that could potentially fix the issue for users: --- Makefile.orig 2022-12-23 10:38:06.682048000 +1100 +++ Makefile 2022-12-23 10:41:58.378126000 +1100 @@ -10,7 +10,9 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cpe php -USE_PHP= bcmath curl json mysqli pcre xml +USE_PHP= bcmath curl iconv json mysqli pcre pdo xml + +MYSQL_USE= PHP=pdo_mysql NO_ARCH= yes NO_BUILD= yes
Thanks, can you attach the patch as file?
The copy/paste still had an error in it. I have attached the patch file from the hosts that I built and ran the port from. Yourls runs as expected and has all correct minimum dependencies.
Created attachment 239241 [details] Modified dependencies Attached patched Makefile enables yourls to run without pdo_mysql and iconv php errors.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=7d772f44a657b6fd380bbb46db7be084b7d26211 commit 7d772f44a657b6fd380bbb46db7be084b7d26211 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-02-05 15:29:59 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-02-05 15:50:16 +0000 www/yourls: Fix PHP dependencies - Fix USE_PHP: - Add missing iconv - Replace mysqli with pdo_mysql - Bump PORTREVISION for dependency change PR: 268522 Reported by: Jason Tubnor <jason@tubnor.net> www/yourls/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Committed. Thanks!