[mythtv-commits] Ticket #5769: configure needs cleaning up for Solaris.

MythTV mythtv at cvs.mythtv.org
Mon Oct 6 15:56:45 UTC 2008


#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


More information about the mythtv-commits mailing list