-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97536 from gdamjan/fix-uwsgi-php-try3
Fix compiling and linking the php plugin in uwsgi
- Loading branch information
Showing
4 changed files
with
83 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/plugins/php/uwsgiplugin.py b/plugins/php/uwsgiplugin.py | ||
index d930c44e..2fcbc22a 100644 | ||
--- a/plugins/php/uwsgiplugin.py | ||
+++ b/plugins/php/uwsgiplugin.py | ||
@@ -17,6 +17,8 @@ php_version = os.popen(PHPPATH + ' --version').read().rstrip().split('.')[0] | ||
CFLAGS = [os.popen(PHPPATH + ' --includes').read().rstrip(), '-Wno-sign-compare'] | ||
LDFLAGS = os.popen(PHPPATH + ' --ldflags').read().rstrip().split() | ||
|
||
+LDFLAGS.append(os.environ.get('UWSGICONFIG_PHP_LDFLAGS', [])) | ||
+ | ||
if ld_run_path: | ||
LDFLAGS.append('-L%s' % ld_run_path) | ||
os.environ['LD_RUN_PATH'] = ld_run_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
pkgs/servers/uwsgi/no-ext-session-php_session.h-on-NixOS.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 6b9b3559d8ce59eda6c5cd6f04224cebaaa5d0ea Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= | ||
=?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= | ||
<gdamjan@gmail.com> | ||
Date: Tue, 8 Sep 2020 17:11:39 +0200 | ||
Subject: [PATCH] no ext/session/php_session.h on NixOS | ||
|
||
on NixOS php_session.h is in its own package, and is not installed in | ||
ext/session/ | ||
--- | ||
plugins/php/common.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/plugins/php/common.h b/plugins/php/common.h | ||
index 9bf1c069..be93f519 100644 | ||
--- a/plugins/php/common.h | ||
+++ b/plugins/php/common.h | ||
@@ -10,7 +10,7 @@ | ||
#endif | ||
#include "ext/standard/info.h" | ||
|
||
-#include "ext/session/php_session.h" | ||
+#include "php_session.h" | ||
|
||
#include <uwsgi.h> | ||
|
||
-- | ||
2.28.0 | ||
|