Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions plugins/airbrake/uwsgiplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

NAME='airbrake'

CFLAGS = [spcall('xml2-config --cflags')]
CFLAGS = [spcall('pkg-config --cflags libxml-2.0')]
LDFLAGS = []
LIBS = ['-lcurl', spcall('xml2-config --libs')]
LIBS = [
'-lcurl',
spcall('pkg-config --libs libxml-2.0')
]
GCC_LIST = ['airbrake_plugin']

13 changes: 9 additions & 4 deletions plugins/jvm/uwsgiplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,18 @@
break

try:
JVM_INCPATH = ['-I"' + os.environ['UWSGICONFIG_JVM_INCPATH'] + '"']
except:
JVM_INCPATH = ['-I' + os.environ['UWSGICONFIG_JVM_INCPATH']]
except KeyError:
pass

try:
JVM_LIBPATH = ['-L"' + os.environ['UWSGICONFIG_JVM_LIBPATH'] + '"']
except:
JVM_INCPATH = [os.environ['UWSGICONFIG_JVM_INCLUDES']]
except KeyError:
pass

try:
JVM_LIBPATH = ['-L' + os.environ['UWSGICONFIG_JVM_LIBPATH']]
except KeyError:
pass

if not JVM_INCPATH or not JVM_LIBPATH:
Expand Down
2 changes: 1 addition & 1 deletion plugins/php/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ PS_READ_FUNC(uwsgi) {
uint64_t valsize = 0;
char *value = uwsgi_cache_magic_get(key->val, key->len , &valsize, NULL, cache);
if (!value) {
*val = STR_EMPTY_ALLOC();
*val = ZSTR_EMPTY_ALLOC();
return SUCCESS;
}
*val = zend_string_init(value, valsize, 0);
Expand Down
4 changes: 2 additions & 2 deletions plugins/php/uwsgiplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions plugins/pty/pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ static void uwsgi_pty_init() {

}

static void uwsgi_pty_winch() {
static void uwsgi_pty_winch(int sig) {
// 2 uwsgi packets
char uwsgi_pkt[8];
#ifdef TIOCGWINSZ
Expand Down Expand Up @@ -309,7 +309,7 @@ static int uwsgi_pty_client() {
if (upty.uremote) {
signal(SIGWINCH, uwsgi_pty_winch);
// send current terminal size
uwsgi_pty_winch();
uwsgi_pty_winch(SIGWINCH);
}

upty.queue = event_queue_init();
Expand Down
2 changes: 1 addition & 1 deletion plugins/tuntap/tuntap.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ void uwsgi_tuntap_router_loop(int id, void *arg) {
}
}

static void uwsgi_tuntap_router() {
static void uwsgi_tuntap_router(int (*start)(void *), char **argv) {

if (!utt.routers) return;

Expand Down
4 changes: 2 additions & 2 deletions plugins/webdav/uwsgiplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
NAME = 'webdav'

CFLAGS = ['-Wno-deprecated-declarations']
CFLAGS += os.popen('xml2-config --cflags').read().rstrip().split()
CFLAGS += os.popen('pkg-config --cflags libxml-2.0').read().rstrip().split()
LDFLAGS = []
LIBS = os.popen('xml2-config --libs').read().rstrip().split()
LIBS = os.popen('pkg-config --libs libxml-2.0').read().rstrip().split()

GCC_LIST = ['webdav']
8 changes: 4 additions & 4 deletions uwsgiconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,10 +1315,10 @@ def get_gcll(self):

if self.get('xml'):
if self.get('xml') == 'auto':
xmlconf = spcall('xml2-config --libs')
xmlconf = spcall('pkg-config --libs libxml-2.0')
if xmlconf and uwsgi_os != 'Darwin':
self.libs.append(xmlconf)
xmlconf = spcall("xml2-config --cflags")
xmlconf = spcall("pkg-config --cflags libxml-2.0")
self.cflags.append(xmlconf)
self.cflags.append("-DUWSGI_XML -DUWSGI_XML_LIBXML2")
self.gcc_list.append('core/xmlconf')
Expand All @@ -1329,13 +1329,13 @@ def get_gcll(self):
self.gcc_list.append('core/xmlconf')
report['xml'] = 'expat'
elif self.get('xml') == 'libxml2':
xmlconf = spcall('xml2-config --libs')
xmlconf = spcall('pkg-config --libs libxml-2.0')
if xmlconf is None:
print("*** libxml2 headers unavailable. uWSGI build is interrupted. You have to install libxml2 development package or use libexpat or disable XML")
sys.exit(1)
else:
self.libs.append(xmlconf)
xmlconf = spcall("xml2-config --cflags")
xmlconf = spcall("pkg-config --cflags libxml-2.0")
if xmlconf is None:
print("*** libxml2 headers unavailable. uWSGI build is interrupted. You have to install libxml2 development package or use libexpat or disable XML")
sys.exit(1)
Expand Down