Mailinglist Archive: opensuse-buildservice (295 mails)

< Previous Next >
Re: [opensuse-buildservice] update-alternatives: No such file or directory
  • From: "Jochen Hebbrecht" <jochenhebbrecht@xxxxxxxxx>
  • Date: Fri, 2 Mar 2007 09:14:16 +0100
  • Message-id: <db99f77d0703020014l3f3478bkb0439e70b56c7511@xxxxxxxxxxxxxx>
andreas.hanke@xxxxxxxxxxxxxx schreef:
It is actually a PreReq and a Requires(postun), which should work. No idea why it doesn't work.

It's still illogical that the package mixes PreReq and Requires(postun). For consistency reasons, it should either use the legacy PreReq or the new-style Requires(post)+Requires(postun) and not a mixture of both, but this cannot affect functionality.

Andreas Hanke

My spec file is this now:

Name: mydummy
Version: 1.0
Release: 1
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: java-1_4_2-gcj-compat-devel update-alternatives
Group: Dummy
Summary: My Dummy Package
PreReq: /usr/sbin/update-alternatives

But I'm still getting this error:

installing antlr-2.7.6-25
/var/tmp/rpm-tmp.25108: line 1: /usr/sbin/update-alternatives: No such
file or directory
error: %post(antlr-2.7.6-25.noarch) scriptlet failed, exit status 127

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

< Previous Next >