initial import
This commit is contained in:
28
uwsgi/uwsgi_fix_build.patch
Normal file
28
uwsgi/uwsgi_fix_build.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
--- a/plugins/router_basicauth/router_basicauth.c 2017-03-31 00:11:36.000000000 +0200
|
||||
+++ b/plugins/router_basicauth/router_basicauth.c 2023-08-20 18:03:16.000000000 +0200
|
||||
@@ -68,9 +68,14 @@
|
||||
|
||||
#if defined(__linux__) && defined(__GLIBC__)
|
||||
struct crypt_data cd;
|
||||
- cd.initialized = 0;
|
||||
+ memset(&cd, 0, sizeof(struct crypt_data));
|
||||
+ /* work around glibc-2.2.5 bug,
|
||||
+ * has been fixed at some time in glibc-2.3.X */
|
||||
+#if (__GLIBC__ == 2) && \
|
||||
+ (defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 2 && __GLIBC_MINOR__ < 4)
|
||||
// we do as nginx here
|
||||
cd.current_salt[0] = ~cpwd[0];
|
||||
+#endif
|
||||
crypted = crypt_r( colon+1, cpwd, &cd);
|
||||
#else
|
||||
if (uwsgi.threads > 1) pthread_mutex_lock(&ur_basicauth_crypt_mutex);
|
||||
--- a/plugins/tauthon/uwsgiplugin.py 2017-03-31 00:11:36.000000000 +0200
|
||||
+++ b/plugins/tauthon/uwsgiplugin.py 2023-08-20 18:38:48.462568472 +0200
|
||||
@@ -60,6 +60,6 @@
|
||||
|
||||
os.environ['LD_RUN_PATH'] = "%s" % libdir
|
||||
|
||||
- LIBS.append('-lpython%s' % get_python_version())
|
||||
+ LIBS.append('-ltauthon%s' % get_python_version())
|
||||
else:
|
||||
LIBS = []
|
||||
Reference in New Issue
Block a user