[mythtv-commits] Ticket #6316: OSX configure arithmetic error on ${ldver%.*} construct because of extra . in version number
MythTV
mythtv at cvs.mythtv.org
Wed Mar 4 16:16:05 UTC 2009
#6316: OSX configure arithmetic error on ${ldver%.*} construct because of extra .
in version number
---------------------------------+------------------------------------------
Reporter: jwyates at pacbell.net | Owner: ijr
Type: defect | Status: new
Priority: major | Milestone: 0.21.1
Component: MythTV - General | Version: 0.21-fixes
Severity: high | Mlocked: 0
---------------------------------+------------------------------------------
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
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6316>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list