Solved Need help with error while modifying a port

Hi, I am getting this error:

Code:
Traceback (most recent call last):
  File "uwsgiconfig.py", line 467, in build_uwsgi
    execfile('%s/uwsgiplugin.py' % path, up)
NameError: name 'execfile' is not defined

Python resources say this is normal, and one should code it this way:

Code:
>>> try:
...     execfile('1.py')
... except:
...     print("Error")
...

But this is exactly how it is coded, and I get the error nevertheless!


Context: I am trying to compile www/uwsgi with added support for PHP.
I added it to the port makefile:

Code:
OPTIONS_GROUP_PLG+=    PHP
PHP_DESC=              PHP embedded plugin

PHP_USES=              php:build
PHP_VARS=              USE_PHP+=session

post-patch-PHP-on:
       @${REINPLACE_CMD} -e 's/%(main_plugin)s,/%(main_plugin)s, php,/' ${WRKSRC}/buildconf/base.ini

This has worked all the time. But with newest quarterly it leads into beforementioned error.
Obvious changes are:
  • uwsgi was upgraded from 2.0.21 to 2.0.26
  • python was upraded from 3.9 to 3.11
 
Okay, this seems to come from another hack I did earlier to make PHP 8 work with uwsgi, which now apparently hss been fixed upstream. Investigating further... (neither PHP nor Python are my favourite, I prefer ruby for both...)
 
Did you enable Python environment variable during the Python installation process? If not, try using Python environment variable.
 
Back
Top