Skip to content

Commit

Permalink
www-servers/uwsgi: fix build w/ newer php
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/904664
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Apr 28, 2023
1 parent cd2145a commit a6e3c66
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions www-servers/uwsgi/files/uwsgi-2.0.21-libphp-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
https://bugs.gentoo.org/904664
--- a/plugins/php/uwsgiplugin.py
+++ b/plugins/php/uwsgiplugin.py
@@ -14,6 +14,9 @@

php_version = os.popen(PHPPATH + ' --version').read().rstrip().split('.')[0]

+if php_version == '8' :
+ php_version = ''
+
CFLAGS = [os.popen(PHPPATH + ' --includes').read().rstrip(), '-Wno-sign-compare']
LDFLAGS = os.popen(PHPPATH + ' --ldflags').read().rstrip().split()

1 change: 1 addition & 0 deletions www-servers/uwsgi/uwsgi-2.0.21.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-php82.patch
"${FILESDIR}"/${P}-python-unicode.patch
"${FILESDIR}"/${P}-libphp-version.patch
)

pkg_setup() {
Expand Down

0 comments on commit a6e3c66

Please sign in to comment.