Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits
Ticket #5769: configure needs cleaning up for Solaris.
 

Index | Next | Previous | View Flat


mythtv at cvs

Oct 5, 2008, 2:32 PM


Views: 459
Permalink
Ticket #5769: configure needs cleaning up for Solaris.

#5769: configure needs cleaning up for Solaris.
------------------------------------+---------------------------------------
Reporter: edwardoc[at]blastwave.org | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Mlocked: 0
------------------------------------+---------------------------------------
Here is my unified patch.
[edward[at]opensolaris0805:mythtv]> diff -u configure configure.sol
--- configure Sun Oct 5 22:29:04 2008
+++ configure.sol Sun Oct 5 22:21:08 2008
@@ -1123,6 +1123,7 @@
fi

# machine
+# uname -m prints the "name of the hardware type" and not the hardware
type its self. See OpenGroup SUS standard.
arch=`uname -m`
arch_raw="$arch"
cpu="generic"
@@ -1139,6 +1140,21 @@
processor_flags=`cat /proc/cpuinfo | grep "flags" | head -n 1`
fi

+# Solaris. Workaround some bad Linux assumptions for uname -m
+if [ "`uname -s`" = "SunOS" ]; then
+ if [ "`isainfo -b`" = "64" ]; then
+ arch="x86_64"
+ else
+ arch="x86_32"
+ fi
+ arch_raw="$arch"
+ if test x"$processor" = x"" -o x"$processor" = x"$arch_raw" -o \
+ x"$processor" = x"unknown" ; then
+ processor=`psrinfo -vp | sed 's/^[ \t]*//' | tail -1`
+ fi
+ processor_flags=`isainfo -x | cut -d ":" -f2 | head -n 1`
+fi
+
# Mac OS X equivalent
if test -f /usr/bin/hostinfo ; then
if test x"$processor" = x"" -o x"$processor" = x"$arch_raw" -o \


Thanks,
Edward O'Callaghan.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5769>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits

Subject User Time
Ticket #5769: configure needs cleaning up for Solaris. mythtv at cvs Oct 5, 2008, 2:32 PM
    Re: Ticket #5769: configure needs cleaning up for Solaris. mythtv at cvs Oct 6, 2008, 8:56 AM
    Re: Ticket #5769: configure needs cleaning up for Solaris. mythtv at cvs Oct 6, 2008, 9:16 AM
    Re: Ticket #5769: configure needs cleaning up for Solaris. mythtv at cvs Oct 9, 2009, 12:29 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.