Subject: pkg/4998: xanim package - all the world is not an i386
To: None <gnats-bugs@gnats.netbsd.org>
From: None <abs@mono.org>
List: netbsd-bugs
Date: 02/15/1998 17:09:47
>Number: 4998
>Category: pkg
>Synopsis: xanim package - all the world is not an i386
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 15 17:20:01 1998
>Last-Modified:
>Originator: David Brownlee
>Organization:
<a href="http://www.mono.org/">Monochrome</a>
>Release: 1.3
>Environment:
System: NetBSD lapton.anim.dreamworks.com 1.3 NetBSD 1.3 (_LAPTON_) #0: Fri Jan 9 11:10:00 PST 1998 root@lapton.anim.dreamworks.com:/usr/src/sys/arch/i386/compile/_LAPTON_ i386
>Description:
The xanim package's Makefile will download the cvid, iv32, and cyuv
files for sparc and m68k, but the Imakefile will only link against
the i386 version.
>How-To-Repeat:
Try to compile xanim on NetBSD/sparc.
>Fix:
The following works on NetBSD/sparc and NetBSD/i386.
It disables the cvid, iv32, and cyuv code on non i386/sparc/m68k
platforms so should also allow the removal of:
ONLY_FOR_ARCHS= i386 m68k sparc
from the package Makefile.
--- Imakefile.orig Sun Feb 15 16:07:35 1998
+++ Imakefile Sun Feb 15 16:14:45 1998
@@ -95,9 +95,23 @@
XA_CVID_DEF = -DXA_CINEPAK
XA_CYUV_DEF = -DXA_CYUV
XCOMM
+.if (${MACHINE_ARCH} == "i386")
XA_IV32_LIB = xa2.0_cvid_netbsd386.o
XA_CVID_LIB = xa2.0_iv32_netbsd386.o
XA_CYUV_LIB = xa1.0_cyuv_netbsd386.o
+.elif (${MACHINE_ARCH} == "m68k")
+XA_IV32_LIB = xa2.0_cvid_netbsd68k.o
+XA_CVID_LIB = xa2.0_iv32_netbsd68k.o
+XA_CYUV_LIB = xa1.0_cyuv_netbsd68k.o
+.elif (${MACHINE_ARCH} == "sparc")
+XA_IV32_LIB = xa2.0_cvid_sparcCOFF.o
+XA_CVID_LIB = xa2.0_iv32_sparcCOFF.o
+XA_CYUV_LIB = xa1.0_cyuv_sparcAOUT.o
+.else
+XA_IV32_DEF =
+XA_CVID_DEF =
+XA_CYUV_DEF =
+.endif
XCOMM
XCOMM -- NOTE: SGI Machines only: if you see an error like
XCOMM -- "merge_ext returns nil during relocation" or similiar
>Audit-Trail:
>Unformatted: