ports/172416: Building mplayer on 9.1-PRERELEASE errors with host architecture "UNKNOWN"

michael copeland michael at kryptos-security.com
Sat Oct 6 22:50:04 UTC 2012


>Number:         172416
>Category:       ports
>Synopsis:       Building mplayer on 9.1-PRERELEASE errors with host architecture "UNKNOWN"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 06 22:50:03 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     michael copeland
>Release:        9.1-PRERELEASE powerpc
>Organization:
Kryptos Security
>Environment:
FreeBSD mini.kryptos-security.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Sat Oct  6 01:06:47 EDT 2012     michael at mini.kryptos-security.com:/usr/obj/usr/src/sys/miniTV  powerpc
>Description:
Configure script fails when detecting $host_arch.

guilty part is:

 # host's CPU/instruction set
  case "$(uname -m 2>&1)" in
      x86_64|amd64|i[3-9]86*|i86pc|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686) host_arch=i386 ;;
      ia64) host_arch=ia64 ;;
      macppc|ppc*|Power*) host_arch=ppc ;;


uname -m gives us powerpc, this isn't here, so add it.


 # host's CPU/instruction set
  case "$(uname -m 2>&1)" in
      x86_64|amd64|i[3-9]86*|i86pc|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686) host_arch=i386 ;;
      ia64) host_arch=ia64 ;;
      macppc|ppc*|Power*|powerpc) host_arch=ppc ;;


builds and installs now.
>How-To-Repeat:
cd to /usr/ports/multimedia/mplayer  make install
>Fix:
edit configure script in work/mplayer-export-2012-07-21


find section 
# host's CPU/instruction set

patch section  macppc|ppc*|Power*) host_arch=ppc ;;

with            macppc|ppc*|Power*|powerpc) host_arch=ppc ;;



changing system var UNAME_m to ppc would also work, but this may break other ports.

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list