Opened 12 years ago
Closed 10 years ago
#5769 closed patch (wontfix)
configure needs cleaning up for Solaris.
Reported by: | 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)
Change History (7)
Changed 12 years ago by
Attachment: | configure.patch added |
---|
Changed 12 years ago by
Attachment: | configure.2.patch added |
---|
Updated (Take2): configure Patch for Solaris target
comment:1 Changed 12 years ago by
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:3 Changed 11 years ago by
Component: | mythtv → Ports - Solaris |
---|
comment:4 Changed 11 years ago by
Owner: | changed from Isaac Richards to Janne Grunau |
---|---|
Status: | new → assigned |
Since this is a patch for the configure script we mostly inherit from ffmpeg, I'm assigning the ticket to Janne.
comment:5 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Closing as very stale, please feel free to reopen against current trunk if you can make Myth compile on Solaris.
Patch for configure.