Modify

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@…

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 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

comment:3 Changed 3 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 3 years ago by nigel

  • Status changed from assigned to closed
  • Resolution set to fixed

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

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.