tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Scripts with PHP shebang & mbedtls (wip/hiawatha)



Hi all,

I'm working on bringing www/hiawatha up-to-date in wip/hiawatha and
I'm running into an issue with some of the installed php scripts
that get installed, namely, `lefh`. This is an optional (it isn't
optional in my pkgsrc recipe) script that does some stuff with
Let's Encrypt. I have in the Makefile a REPLACE_PHP which works
but gives me a /usr/pkg/bin/php not found error during install
phase. When I add php as a dependency or as a bl3 it always fails
the checksum for php. Even if I use a bl3 to php83 it tries to
install php82. I'm not sure if there is something else required
for php that I'm missing or what. Any ideas that could be causing
this?

I've temporarily bypassed this issue by using CHECK_INTERPRETER_SKIP
but I don't see this as a good solution. It appears that other
package managers don't actually require php for their hiawatha
packages. Note: php is not required to build the program.
OpenBSD just has a note about requiring php if you wish to
run the scripts. Should I follow suite or make php a dependency?

My last question is related to the TLS library this package uses,
security/mbedtls. There are 2 options: using the vendored version or
system version. I'd prefer to use the system version but it appears
our version isn't built with PTHREAD or THREAD_C support and I can't
seem to get it to build with those. Given this issue, I've stuck with
just using the vendored version. This is how OpenBSD does it but
FreeBSD uses the system version. It seems to me that adding pthread
and thread_c (not really sure what this second one is) may be
difficult seeing as explicitly adding in the pthread cmake option
for security/mbedtls isn't working for me. Is it okay for me to just
use the vendored version or should I put on my surgical gloves and
disect this more?

Thanks,

Kev


Home | Main Index | Thread Index | Old Index