Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 314931 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-9 / +9 lines)
Line  Link Here
0
-- uwsgiconfig.py
0
++ uwsgiconfig.py
Lines 68-76 Link Here
68
	p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
68
	p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
69
69
70
	if p.wait() == 0:
70
	if p.wait() == 0:
71
        	return p.stdout.read().rstrip().decode()
71
		return p.stdout.read().rstrip().decode()
72
	else:
72
	else:
73
        	return None
73
		return None
74
74
75
def add_o(x):
75
def add_o(x):
76
	if x == 'uwsgi':
76
	if x == 'uwsgi':
Lines 149-159 Link Here
149
	kvm_list = ['FreeBSD', 'OpenBSD', 'NetBSD', 'DragonFly']
149
	kvm_list = ['FreeBSD', 'OpenBSD', 'NetBSD', 'DragonFly']
150
150
151
	if uwsgi_os == 'SunOS':
151
	if uwsgi_os == 'SunOS':
152
        	ldflags.append('-lsendfile')
152
		ldflags.append('-lsendfile')
153
		ldflags.remove('-rdynamic')
153
		ldflags.remove('-rdynamic')
154
154
155
	if uwsgi_os in kvm_list:
155
	if uwsgi_os in kvm_list:
156
        	ldflags.append('-lkvm')
156
		ldflags.append('-lkvm')
157
157
158
	if uwsgi_os == 'OpenBSD':
158
	if uwsgi_os == 'OpenBSD':
159
		UGREEN = False
159
		UGREEN = False
Lines 245-252 Link Here
245
		gcc_list.append('erlang')
245
		gcc_list.append('erlang')
246
246
247
	if SCTP:
247
	if SCTP:
248
        	ldflags.append("-lsctp")
248
		ldflags.append("-lsctp")
249
        	cflags.append("-DUWSGI_SCTP")
249
		cflags.append("-DUWSGI_SCTP")
250
250
251
	if SPOOLER:
251
	if SPOOLER:
252
		depends_on("SPOOLER", ['EMBEDDED'])
252
		depends_on("SPOOLER", ['EMBEDDED'])
Lines 294-302 Link Here
294
		sys.exit(1)
294
		sys.exit(1)
295
295
296
	if cmd == '--cflags':
296
	if cmd == '--cflags':
297
        	print(' '.join(cflags))
297
		print(' '.join(cflags))
298
	if cmd == '--ldflags':
298
	if cmd == '--ldflags':
299
        	print(' '.join(ldflags))
299
		print(' '.join(ldflags))
300
	elif cmd == '--build':
300
	elif cmd == '--build':
301
		parse_vars()
301
		parse_vars()
302
		build_uwsgi(UWSGI_BIN_NAME)
302
		build_uwsgi(UWSGI_BIN_NAME)

Return to bug 314931