Robin Dunn: A mistake in regex??

Robin, you made a regex in Phoenix source code in buildtools/config.py on line 866 which is:

result = re.search(’^\s+SONAME\s+(.+)$’, output, re.MULTILINE)

Don’t you mean this:

result = re.search(’^\s+SOName\s+(.+)$’, output, re.MULTILINE)

Notice SONAME vs. SOName thing changed in the regex.

Bo�tjan Mejak wrote:

Robin, you made a regex in Phoenix source code in buildtools/config.py
on line 866 which is:
result = re.search('^\s+SONAME\s+(.+)$', output, re.MULTILINE)

Don't you mean this:
result = re.search('^\s+SOName\s+(.+)$', output, re.MULTILINE)

Notice SONAME vs. SOName thing changed in the regex.

No. The text that is being scanned (the output of objdump) uses "SONAME", and "SOName" is just how I used it in function and variable names. Does your objdump not use all caps for that record?

···

--
Robin Dunn
Software Craftsman

Uhm, yes, objdump uses all caps for that record by me as well.