Subject: Re: old /usr/bin/as forces me not to upgrade avifile-devel
To: Tomasz Luchowski <zuntum@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: current-users
Date: 09/04/2001 10:03:18
On Mon, 3 Sep 2001, Tomasz Luchowski wrote:

> NetBSD 1.5.1/i386. I get this error:
>
> {standard input}: Assembler messages:
> {standard input}:158: Error: no such 386 instruction: `femms'
> {standard input}:256: Error: no such 386 instruction: `femms'
>
> I have GNU assembler version 2.9.1 (i386--netbsd), using BFD
> version 2.9.1. Replacing /usr/bin/as with 2.11 one makes it
> compile. 2.11 binary was provided by Sergey Svishchev
> <svs@ropnet.ru>, because mplayer package has the same problem and
> wants new gas.

You shouldn't have to replace the binary to in /usr/bin/ to use the
new gas, if you have it. Adding -B/new_path/ to ${CFLAGS} is supposed
to work.

> What's our policy here. Stop at avifile-0.6.20010814 which works,
> and no longer update the package? Provide gas 2.11 binary in the
> package and hack avifile to use it instead of /usr/bin/as? Depend
> on new-gas (or whatever) package which would install gas binary to
> ${PREFIX}? Mark as BROKEN until new gas is available on the
> system, and provide users with precompiled binary package?

Add a "gas" package, and set BUILD_DEPENDS on gas and make your
package use it conditionally on the result of "as --version"?

Frederick