Opened 10 years ago

Closed 10 years ago

#6316 closed defect (fixed)

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

Change History (4)

comment:1 Changed 10 years ago by jwyates@…

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.

comment:2 Changed 10 years ago by paulh

Component: MythTV - GeneralPorts - OSX
Owner: changed from Isaac Richards to Nigel
Status: newassigned

comment:3 Changed 10 years ago by gnassas@…

I think you can just backport the #6337 fix since it looks like it's in the same piece of script.

comment:4 Changed 10 years ago by Nigel

Resolution: fixed
Status: assignedclosed

(In [20561]) Mac OS 10.5 math fix from trunk [20207]. Closes #6316. Thanks Paul, George.

Note: See TracTickets for help on using tickets.