Closed Bug 651623 Opened 9 years ago Closed 9 years ago
_VERSION expansion on Open BSD
Followup to https://bugzilla.mozilla.org/show_bug.cgi?id=648721, esp http://hg.mozilla.org/projects/cedar/rev/ea5232835539. As of now, with expandlib_config.py, DLL_SUFFIX is set to normalize_suffix(".so.$(if $(SO_VERSION),$(SO_VERSION),1.0)"), which confuses it (it tries to link libxul.so with libmozalloc.a & libmozsqlite3.a, which don't exist). The previous hack doesn't work for that case, so let's use a plain shell if in the configure.in block. Tested with SO_VERSION set to nothing, foo.bar and 23.0, for each of them DLL_SUFFIX is correctly set in mozilla-config.h/expandlib_config.py, and defaults to .so.1.0 if SO_VERSION is not set.
Attachment #527373 - Flags: review?(mh+mozilla)
Comment on attachment 527373 [details] [diff] [review] Use a shell test to set DLL_SUFFIX depending on SO_VERSION in env >+ if test $SO_VERSION ; then Just a nit: for consistency, make that: if test "$SO_VERSION"; then A small note about the patch itself, since you bothered creating an hg patch with a commit message, please put the bug number in the summary line, and make it concise so that it fits on one short line (for some value of short), though you can expand your thoughts on the following lines (though I don't know if it's better to leave an empty line between both, like with git, but then most people don't add notes after the summary).
Attachment #527373 - Flags: review?(mh+mozilla) → review+
New version with better commit message, and quote SO_VERSION. I'm somewhat getting used to hg queues... and m-c builds and runs fine on OpenBSD with only 9 patches!
Comment on attachment 527389 [details] [diff] [review] Use a shell test to set DLL_SUFFIX depending on SO_VERSION in env >+ if test "$SO_VERSION" ; then without the space before the semi-colon and we're good. Thanks
Attachment #527389 - Flags: review?(mh+mozilla) → review+
Attachment #527394 - Flags: review?(mh+mozilla) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
You need to log in before you can comment on or make changes to this bug.