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

Mailing List Archive: MythTV: Commits

Ticket #5769: configure needs cleaning up for Solaris.

 

 

MythTV commits RSS feed   Index | Next | Previous | View Threaded


mythtv at cvs

Oct 5, 2008, 2:32 PM

Post #1 of 4 (439 views)
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


mythtv at cvs

Oct 6, 2008, 8:56 AM

Post #2 of 4 (382 views)
Permalink
Re: Ticket #5769: configure needs cleaning up for Solaris. [In reply to]

#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 | Resolution:
Mlocked: 0 |
------------------------------------+---------------------------------------

Comment(by edwardoc[at]blastwave.org):

I found out something interesting today;

line 1153 of patch rev2 should read:
processor=`psrinfo -vp | sed 's/^[ " "]*//' | tail -1`

N.B. that is TAB.
Here is why, Although I am still a little confused :p

$ echo $SHELL ; uname -sv
/bin/ksh93
SunOS snv_99

$ /usr/sbin/psrinfo -vp | tail -1 | od -c
0000000 \t I n t e l ( r ) P e n t i u
0000020 m ( r ) D u a l C P U
0000040 E 2 1 8 0 @ 2 . 0 0 G H z
0000060 \n
0000061
$ /usr/sbin/psrinfo -vp | tail -1 | sed 's/^[ \t]*//'
Intel(r) Pentium(r) Dual CPU E2180 @ 2.00GHz

psrinfo src is here :
http://src.opensolaris.org/source/xref/onnv/onnv-
gate/usr/src/cmd/psrinfo/psrinfo.pl

$ echo " " | od -A x
0000000 020040 005040
0000004
$ echo '\t' | od -A x
0000000 005011
0000002

$ /usr/sbin/psrinfo -vp | tail -1 | sed 's/^[ " "]*//'
Intel(r) Pentium(r) Dual CPU E2180 @ 2.00GHz

Regards,
Edward O'Callaghan

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


mythtv at cvs

Oct 6, 2008, 9:16 AM

Post #3 of 4 (385 views)
Permalink
Re: Ticket #5769: configure needs cleaning up for Solaris. [In reply to]

#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 | Resolution:
Mlocked: 0 |
------------------------------------+---------------------------------------

Comment(by edwardoc[at]blastwave.org):

psrinfo -vp | sed 's/^[^t]//' | tail -1

Seems like the best solution.

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


mythtv at cvs

Oct 9, 2009, 12:29 PM

Post #4 of 4 (55 views)
Permalink
Re: Ticket #5769: configure needs cleaning up for Solaris. [In reply to]

#5769: configure needs cleaning up for Solaris.
------------------------------------+---------------------------------------
Reporter: edwardoc[at]blastwave.org | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: Ports - Solaris | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
------------------------------------+---------------------------------------
Changes (by stuartm):

* component: mythtv => Ports - Solaris


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

MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


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