Opened 11 years ago

Closed 9 years ago

#5769 closed patch (wontfix)

configure needs cleaning up for Solaris.

Reported by: edwardoc@… Owned by: Janne Grunau
Priority: minor Milestone: unknown
Component: Ports - Solaris Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Here is my unified patch. [edward@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.

Attachments (2)

configure.patch (976 bytes) - added by edwardoc@… 11 years ago.
Patch for configure.
configure.2.patch (979 bytes) - added by edwardoc@… 11 years ago.
Updated (Take2): configure Patch for Solaris target

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by edwardoc@…

Attachment: configure.patch added

Patch for configure.

Changed 11 years ago by edwardoc@…

Attachment: configure.2.patch added

Updated (Take2): configure Patch for Solaris target

comment:1 Changed 11 years ago by edwardoc@…

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

comment:2 Changed 11 years ago by edwardoc@…

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

Seems like the best solution.

comment:3 Changed 10 years ago by stuartm

Component: mythtvPorts - Solaris

comment:4 Changed 10 years ago by sphery

Owner: changed from Isaac Richards to Janne Grunau
Status: newassigned

Since this is a patch for the configure script we mostly inherit from ffmpeg, I'm assigning the ticket to Janne.

comment:5 Changed 9 years ago by robertm

Resolution: wontfix
Status: assignedclosed

Closing as very stale, please feel free to reopen against current trunk if you can make Myth compile on Solaris.

Note: See TracTickets for help on using tickets.