FS#69819 - [uwsgi-plugin-php] uwsgi-2.0.19.1-10 php plugins LDFLAGS

Attached to Project: Community Packages
Opened by nathan (ndowens) - Saturday, 27 February 2021, 20:41 GMT
Last edited by David Runge (dvzrv) - Saturday, 27 February 2021, 21:21 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
David Runge (dvzrv)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
uwsgi php7 & php8 plugins still compile with LDFLAGS -lphp8

Additional info:
* package version(s) 2.0.19.1-10

Steps to reproduce:
Not sure if it is just an Artix thing or maybe affects Arch as well, but I figure I would atleast report it and add possible patch and PKGBUILD
changes that we had to do, in order for php7 plugin to link against php7 and php to link against php8.

For the php7 PKGBUILD change I changed:
sed -e "s/ + php_version//" \
-i plugins/php/uwsgiplugin.py
to :
sed -e 's,+ php_version,,' \
-e 's,-lphp,-lphp7,' \
-i plugins/php7/uwsgiplugin.py

For php8, I updated the existing php8 patch with the following changes in pastebin:
https://termbin.com/lanu

The main change of the php8 patch is:
-LIBS = [os.popen(PHPPATH + ' --libs').read().rstrip(), '-lphp' + php_version]
+LIBS = [os.popen(PHPPATH + ' --libs').read().rstrip(), '-lphp']
This task depends upon

Closed by  David Runge (dvzrv)
Saturday, 27 February 2021, 21:21 GMT
Reason for closing:  Works for me
Additional comments about closing:  Arch Linux provides /usr/lib/libphp.so with php-embed, whereas Artix provides /usr/lib/libphp8.so.
Comment by David Runge (dvzrv) - Saturday, 27 February 2021, 21:15 GMT
@ndowens: Thanks for the report.

This is not the case according to my build logs (see attachment).
Comment by nathan (ndowens) - Saturday, 27 February 2021, 21:17 GMT
@dvzrv: Ah ok, seems to be just us then. Thanks for your time though
Comment by David Runge (dvzrv) - Saturday, 27 February 2021, 21:21 GMT
@ndowens: I guess Artix provides /usr/lib/libphp8.so, whereas Arch provides /usr/lib/libphp.so with php-embed.

I will close this, as it is not relevant for Arch, but thanks for the ticket nonetheless! :)

Loading...