Bug 251252 - www/mod_php80: wrong libphp name
Summary: www/mod_php80: wrong libphp name
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Torsten Zuehlsdorff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-19 10:13 UTC by Jonas Palm
Modified: 2021-03-08 10:45 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Palm 2020-11-19 10:13:55 UTC
The libphp library is just called libphp.so with www/mod_php80:
root@webserver:/ # pkg list mod_php80
/usr/local/libexec/apache24/libphp.so

But Mk/Uses/php.mk expects the following (line 281):
RUN_DEPENDS+=   ${PHPBASE}/${APACHEMODDIR}/libphp${PHP_VER:C/.$//}.so:${MOD_PHP_PORT}

This causes ports with
USES += php:mod
to fail.

Poudriere error:
webserver-meta depends on file: /usr/local/libexec/apache24/libphp8.so - not found
Comment 1 Torsten Zuehlsdorff freebsd_committer 2021-01-04 12:36:15 UTC
Hi Jonas,

after your issue there came up a duplicate. But in the duplicate, i added a patch which should fix the issue. Can you please have a look at #251411 and check the patch there?

Thank you!
Torsten
Comment 2 Jonas Palm 2021-01-13 10:55:22 UTC
Hi Torsten,

Unfortunately this patch doesn't fix the problem as Mk/Uses/php.mk still expects the major version number in the libphpX.so library.

Best regards,
Jonas
Comment 3 Jonas Palm 2021-03-08 10:45:16 UTC
For clarification, I can build www/mod_php80 and lang/php80 just fine right now. The problem is that any port having 

USES += php:mod

set will fail. As explained in the bug report.