[opensuse-buildservice] BuildRequires calculation issue
Hi, I just ran into an issue which would be easy to fix from the spec file but I wonder why the buildservice doesn't handle it correctly: My package BuildRequires: java-devel and I'm using SUSE:SL-10.1:NonFree/standard. That means that it installs java-1_5_0-sun-1.5.0_06-17 on x86_64 (with i586 it works correctly since it pulls in 1.4.2) but I get the following error in the buildservice: nstalling java-1_5_0-sun-1.5.0_06-17 /var/tmp/rpm-tmp.515: line 5: update-alternatives: command not found /var/tmp/rpm-tmp.515: line 27: update-alternatives: command not found /var/tmp/rpm-tmp.515: line 29: update-alternatives: command not found /var/tmp/rpm-tmp.515: line 37: update-alternatives: command not found error: %post(java-1_5_0-sun-1.5.0_06-17.x86_64) scriptlet failed, exit status 127 The package update-alternatives isn't installed before the java package although the Java package has PreReq: /usr/sbin/update-alternatives So why isn't it handled correctly? Thanks, Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Wolfgang Rosenauer schrieb:
Hi,
I just ran into an issue which would be easy to fix from the spec file but I wonder why the buildservice doesn't handle it correctly:
My package BuildRequires: java-devel and I'm using SUSE:SL-10.1:NonFree/standard. That means that it installs java-1_5_0-sun-1.5.0_06-17 on x86_64 (with i586 it works correctly since it pulls in 1.4.2) but I get the following error in the buildservice:
nstalling java-1_5_0-sun-1.5.0_06-17 /var/tmp/rpm-tmp.515: line 5: update-alternatives: command not found /var/tmp/rpm-tmp.515: line 27: update-alternatives: command not found /var/tmp/rpm-tmp.515: line 29: update-alternatives: command not found /var/tmp/rpm-tmp.515: line 37: update-alternatives: command not found error: %post(java-1_5_0-sun-1.5.0_06-17.x86_64) scriptlet failed, exit status 127
The package update-alternatives isn't installed before the java package although the Java package has PreReq: /usr/sbin/update-alternatives
So why isn't it handled correctly?
Hi, I already wrote a bug about this: https://bugzilla.novell.com/show_bug.cgi?id=354770 But I see no way to handle it from the spec file. Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Internal Tools 144 pixels ought to be enough for anybody, www.blinkenlights.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Thomas Schmidt wrote:
Hi, I already wrote a bug about this: https://bugzilla.novell.com/show_bug.cgi?id=354770
But I see no way to handle it from the spec file.
adding update-alternatives to the package BuildRequires should fix it, shouldn't it? (Hmm, probably only if the package installation happens in the correct order) Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Wolfgang Rosenauer schrieb:
Thomas Schmidt wrote:
Hi, I already wrote a bug about this: https://bugzilla.novell.com/show_bug.cgi?id=354770
But I see no way to handle it from the spec file.
adding update-alternatives to the package BuildRequires should fix it, shouldn't it? (Hmm, probably only if the package installation happens in the correct order)
Wolfgang
I tried this, but unfortunately update-alternatives is not installed early enough. You can aggregate FATE:java-1_5_0-sun to have a working Java for building. -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Internal Tools "Don't Panic", Douglas Adams (1952 - 11.05.2001) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Thomas Schmidt escribió:
But I see no way to handle it from the spec file.
workaround osc meta -e prjconf <yourproject> and just add Required: update-alternatives -- “There is always some madness in love. But there is also always some reason in madness.” - Friedrich Nietzsche Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Cristian Rodríguez wrote:
Thomas Schmidt escribió:
But I see no way to handle it from the spec file.
workaround
osc meta -e prjconf <yourproject>
and just add
Required: update-alternatives
It's not that easy it seems. For example the SLES9 repo in the project doesn't provide update-alternatives :-( Can I set it for certain repos only? Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Wolfgang Rosenauer napsal(a):
Cristian Rodríguez wrote:
and just add
Required: update-alternatives
It's not that easy it seems. For example the SLES9 repo in the project doesn't provide update-alternatives :-(
Can I set it for certain repos only?
The project config is parsed in a similar manner as spec files, so this %if 0%{?suse_version} > 920 Required: update-alternatives %endif should do the trick. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Wolfgang Rosenauer escribió:
Can I set it for certain repos only?
Michal suggestion should do the trick ;) still this prjconf stuff needs to be documented somewhere, I found all this stuff RTFS, which is not a good thing(tm) ;-) -- “There is always some madness in love. But there is also always some reason in madness.” - Friedrich Nietzsche Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Cristian Rodríguez
-
Michal Marek
-
Thomas Schmidt
-
Wolfgang Rosenauer