[opensuse-buildservice] update-alternatives: No such file or directory
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! jochus@Jochus ~/Desktop/osc/home:Jochus/Test $ ls -al /usr/sbin/update-* -rwxr-xr-x 1 root root 23627 2006-11-21 16:00 /usr/sbin/update-alternatives --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
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@suse.de) SUSE Research & Development ----------------------------------------------------------------- SUSE Linux Products GmbH GF: Markus Rex, HRB 16746 (AG Nuernberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi,
Add update-alternatives to BuildRequires: in your spec file.
Should this really be necessary? antlr already has a dependency on /usr/sbin/update-alternatives. If antlr is in BuildRequires and /usr/sbin/update-alternatives in the Requires of antlr, shouldn't it work even without a direct BuildRequires on update-alternatives? Andreas Hanke -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2007-03-01 23:01:58 +0100, andreas.hanke@gmx-topmail.de wrote:
Add update-alternatives to BuildRequires: in your spec file.
Should this really be necessary? antlr already has a dependency on /usr/sbin/update-alternatives.
If antlr is in BuildRequires and /usr/sbin/update-alternatives in the Requires of antlr, shouldn't it work even without a direct BuildRequires on update-alternatives?
it would need to be a PreReq to work darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi,
If antlr is in BuildRequires and /usr/sbin/update-alternatives in the Requires of antlr, shouldn't it work even without a direct BuildRequires on update-alternatives?
it would need to be a PreReq to work
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 -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, Mar 02, 2007 at 03:58:31AM +0100, Marcus Rueckert wrote:
On 2007-03-01 23:01:58 +0100, andreas.hanke@gmx-topmail.de wrote:
Add update-alternatives to BuildRequires: in your spec file.
Should this really be necessary? antlr already has a dependency on /usr/sbin/update-alternatives.
If antlr is in BuildRequires and /usr/sbin/update-alternatives in the Requires of antlr, shouldn't it work even without a direct BuildRequires on update-alternatives?
it would need to be a PreReq to work
Not really, Requires and PreReqs are treated pretty much the same by rpm (and also by libzypp). Cheers, Michael. -- Michael Schroeder mls@suse.de main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, Mar 01, 2007 at 11:01:58PM +0100, andreas.hanke@gmx-topmail.de wrote:
Add update-alternatives to BuildRequires: in your spec file.
Should this really be necessary? antlr already has a dependency on /usr/sbin/update-alternatives.
If antlr is in BuildRequires and /usr/sbin/update-alternatives in the Requires of antlr, shouldn't it work even without a direct BuildRequires on update-alternatives?
Unfortunately not, file name dependencies are much too expensive to compute, so the build service ignores them. Cheers, Michael. -- Michael Schroeder mls@suse.de main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (5)
-
andreas.hanke@gmx-topmail.de
-
Jochen Hebbrecht
-
Marcus Rueckert
-
Michael Schroeder
-
Sonja Krause-Harder