File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33NAME = 'airbrake'
44
5- CFLAGS = [spcall ('xml2 -config --cflags' )]
5+ CFLAGS = [spcall ('pkg -config --cflags libxml-2.0 ' )]
66LDFLAGS = []
77LIBS = [
88 '-lcurl' ,
9- spcall ('xml2 -config --libs' )
9+ spcall ('pkg -config --libs libxml-2.0 ' )
1010]
1111GCC_LIST = ['airbrake_plugin' ]
Original file line number Diff line number Diff line change 4848 break
4949
5050try :
51- JVM_INCPATH = ['-I" ' + os .environ ['UWSGICONFIG_JVM_INCPATH' ] + '"' ]
51+ JVM_INCPATH = ['-I' + os .environ ['UWSGICONFIG_JVM_INCPATH' ]]
5252except KeyError :
5353 pass
5454
5555try :
56- JVM_LIBPATH = ['-L"' + os .environ ['UWSGICONFIG_JVM_LIBPATH' ] + '"' ]
56+ JVM_INCPATH = [os .environ ['UWSGICONFIG_JVM_INCLUDES' ]]
57+ except KeyError :
58+ pass
59+
60+ try :
61+ JVM_LIBPATH = ['-L' + os .environ ['UWSGICONFIG_JVM_LIBPATH' ]]
5762except KeyError :
5863 pass
5964
Original file line number Diff line number Diff line change 2424# PHP8 and above does not add the version to the library
2525# name
2626if int (php_version ) < 8 :
27- LIBS = [os . popen ( PHPPATH + ' --libs' ). read (). rstrip (), '-lphp' + php_version ]
27+ LIBS = ['-lphp' + php_version ]
2828else :
29- LIBS = [os . popen ( PHPPATH + ' --libs' ). read (). rstrip (), '-lphp' ]
29+ LIBS = ['-lphp' ]
3030
3131phplibdir = os .environ .get ('UWSGICONFIG_PHPLIBDIR' )
3232if phplibdir :
Original file line number Diff line number Diff line change 33NAME = 'webdav'
44
55CFLAGS = ['-Wno-deprecated-declarations' ]
6- CFLAGS += os .popen ('xml2 -config --cflags' ).read ().rstrip ().split ()
6+ CFLAGS += os .popen ('pkg -config --cflags libxml-2.0 ' ).read ().rstrip ().split ()
77LDFLAGS = []
8- LIBS = os .popen ('xml2 -config --libs' ).read ().rstrip ().split ()
8+ LIBS = os .popen ('pkg -config --libs libxml-2.0 ' ).read ().rstrip ().split ()
99
1010GCC_LIST = ['webdav' ]
Original file line number Diff line number Diff line change @@ -1327,10 +1327,10 @@ def get_gcll(self):
13271327
13281328 if self .get ('xml' ):
13291329 if self .get ('xml' ) == 'auto' :
1330- xmlconf = spcall ('xml2 -config --libs' )
1330+ xmlconf = spcall ('pkg -config --libs libxml-2.0 ' )
13311331 if xmlconf and uwsgi_os != 'Darwin' :
13321332 self .libs .append (xmlconf )
1333- xmlconf = spcall ("xml2 -config --cflags" )
1333+ xmlconf = spcall ("pkg -config --cflags libxml-2.0 " )
13341334 self .cflags .append (xmlconf )
13351335 self .cflags .append ("-DUWSGI_XML -DUWSGI_XML_LIBXML2" )
13361336 self .gcc_list .append ('core/xmlconf' )
@@ -1341,13 +1341,13 @@ def get_gcll(self):
13411341 self .gcc_list .append ('core/xmlconf' )
13421342 report ['xml' ] = 'expat'
13431343 elif self .get ('xml' ) == 'libxml2' :
1344- xmlconf = spcall ('xml2 -config --libs' )
1344+ xmlconf = spcall ('pkg -config --libs libxml-2.0 ' )
13451345 if xmlconf is None :
13461346 print ("*** libxml2 headers unavailable. uWSGI build is interrupted. You have to install libxml2 development package or use libexpat or disable XML" )
13471347 sys .exit (1 )
13481348 else :
13491349 self .libs .append (xmlconf )
1350- xmlconf = spcall ("xml2 -config --cflags" )
1350+ xmlconf = spcall ("pkg -config --cflags libxml-2.0 " )
13511351 if xmlconf is None :
13521352 print ("*** libxml2 headers unavailable. uWSGI build is interrupted. You have to install libxml2 development package or use libexpat or disable XML" )
13531353 sys .exit (1 )
You can’t perform that action at this time.
0 commit comments