Ticket #6316 (closed defect: fixed)
Opened 3 years ago
Last modified 3 years ago
OSX configure arithmetic error on ${ldver%.*} construct because of extra . in version number
| Reported by: | jwyates@… | Owned by: | nigel |
|---|---|---|---|
| Priority: | major | Milestone: | 0.21.1 |
| Component: | Ports - OSX | Version: | 0.21-fixes |
| Severity: | high | Keywords: | |
| Cc: | Ticket locked: | no |
Description
MacOSX 10.5.6 returns an extra "minor" version number for ld:
% ld -v @(#)PROGRAM:ld PROJECT:ld64-85.2.1
Which causes:
./configure: line 1788: 82: 85.2: syntax error: invalid arithmetic operator (error token is ".2")
and prevents successful configuration.
I am running osx-packager.pl from release-0-21-fixes. The following gets me past this issue, but I suspect there are better ways to do it:
Index: .osx-packager/src/myth-svn/mythtv/configure =================================================================== --- .osx-packager/src/myth-svn/mythtv/configure (revision 20102) +++ .osx-packager/src/myth-svn/mythtv/configure (working copy) @@ -1783,7 +1783,7 @@
disable ivtv disable hdpvr # Prevent linker problems on default Intel 10.5 XCode:
- ldver=$(ld -v 2>&1 | sed -e s/[-]*-)
+ ldver=$(ld -v 2>&1 | sed -e s/[-]*- | cut -c 1-4)
osxver=$(uname -r | cut -c 1) if ${ldver%.*} -lt "82" && ${osxver} = "9" && ${arch} = "x86_32" ?; then
cat <<EOF
Attachments
Change History
comment:1 Changed 3 years ago by jwyates@…
comment:2 Changed 3 years ago by paulh
- Owner changed from ijr to nigel
- Status changed from new to assigned
- Component changed from MythTV - General to Ports - OSX

I have not completed a build yet to confirm that all is well after this fix - I have only gotten configure to move on past this issue.