The Samba-Bugzilla – Attachment 1491 Details for
Bug 3141
python bindings: samba_libs variable parsing patch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
source/python/setup.py patch: samba_libs parsing
001_all_samba-3.0.x-python-setup.patch (text/plain), 1.25 KB, created by
Christian Andreetta (dead mail address)
on 2005-10-06 03:36:31 UTC
(
hide
)
Description:
source/python/setup.py patch: samba_libs parsing
Filename:
MIME Type:
Creator:
Christian Andreetta (dead mail address)
Created:
2005-10-06 03:36:31 UTC
Size:
1.25 KB
patch
obsolete
>--- source/python/setup.py 2005-10-06 11:38:42.000000000 +0200 >+++ source/python/setup.py.new 2005-10-06 11:43:52.000000000 +0200 >@@ -52,21 +52,33 @@ > libraries = [] > library_dirs = [] > >+next_is_path = 0 >+next_is_flag = 0 > for lib in string.split(samba_libs): >- if lib[0:2] == "-l": >- libraries.append(lib[2:]) >+ if next_is_path <> 0: >+ library_dirs.append(lib); >+ next_is_path = 0; >+ continue >+ elif next_is_flag <> 0: >+ next_is_flag = 0; >+ continue >+ elif lib == "-Wl,-rpath": >+ next_is_path = 1; > continue >- if lib[0:8] == "-pthread": >+ elif lib[0:2] in ("-l","-pthread"): > libraries.append(lib[2:]) > continue >- if lib[0:2] == "-L": >+ elif lib[0:2] == "-L": > library_dirs.append(lib[2:]) > continue >- if lib[0:2] == "-W": >- # Skip linker flags >+ elif lib[0:2] in ("-W","-s"): >+ continue # Skip linker flags >+ elif lib[0:2] == "-z": >+ next_is_flag = 1 # Skip linker flags > continue >- print "Unknown entry '%s' in $LIBS variable passed to setup.py" % lib >- sys.exit(1) >+ else: >+ print "Unknown entry '%s' in $LIBS variable passed to setup.py" % lib >+ sys.exit(1) > > flags_list = string.split(samba_cflags) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3141
: 1491