File: 1003_remove-php-libs.patch

package info (click to toggle)
uwsgi 2.0.28-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,968 kB
  • sloc: ansic: 86,892; python: 6,620; cpp: 1,131; java: 708; perl: 646; sh: 588; ruby: 555; makefile: 148; xml: 130; cs: 121; objc: 37; php: 28; erlang: 20; javascript: 11
file content (19 lines) | stat: -rw-r--r-- 657 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Remove PHP libraries when building PHP plugin.
Author: Janos Guljas <janos@debian.org>
Last-Update: 2016-02-08
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/plugins/php/uwsgiplugin.py
+++ b/plugins/php/uwsgiplugin.py
@@ -24,9 +24,9 @@
 # PHP8 and above does not add the version to the library
 # name
 if int(php_version) < 8:
-    LIBS = [os.popen(PHPPATH + ' --libs').read().rstrip(), '-lphp' + php_version]
+    LIBS = ['-lphp' + php_version]
 else:
-    LIBS = [os.popen(PHPPATH + ' --libs').read().rstrip(), '-lphp']
+    LIBS = ['-lphp']
 
 phplibdir = os.environ.get('UWSGICONFIG_PHPLIBDIR')
 if phplibdir: