Mailinglist Archive: opensuse-buildservice (295 mails)

< Previous Next >
Re: [opensuse-buildservice] update-alternatives: No such file or directory
  • From: Sonja Krause-Harder <skh@xxxxxxx>
  • Date: Thu, 1 Mar 2007 16:52:13 +0100
  • Message-id: <20070301155213.GH22036@xxxxxxxxxxxxxxx>
On Thu, Mar 01, 2007 at 04:49:50PM +0100, Jochen Hebbrecht wrote:
> I'm trying to build a simple Java Project on the Suse 10.2 instance.
>
> I'm getting this error :( ...
>
> /var/tmp/rpm-tmp.47552: line 1: /usr/sbin/update-alternatives: No such
> file or directory
> error: %post(antlr-2.7.6-25.noarch) scriptlet failed, exit status 127
>
> What is going wrong? The file is on my system!

Add update-alternatives to BuildRequires: in your spec file. You need it
in the build system (which is a chroot environment if you use the suse
tools), not on the host system.

hth,
Sonja

--
Sonja Krause-Harder (skh@xxxxxxx) SUSE Research & Development
-----------------------------------------------------------------
SUSE Linux Products GmbH GF: Markus Rex, HRB 16746 (AG Nuernberg)

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References