Mailinglist Archive: opensuse-buildservice (207 mails)

< Previous Next >
Re: [opensuse-buildservice] How to build i686 only package in BuildService?
El 29/03/11 10:48, Michal Vyskocil escribió:

there's a bug#682 in icedtea bugzilla, that JRE fails to run on i586
machine with guarantee(VM_Version::supports_cmov()) failed: illegal
instruction. After reading the code it seems JIT emits cmov* instructions, so
the produced native code cannot run on i586 processors.

I think the most clean way how to fix this in openSUSE is build our
openjdk (and Sun Java as well?) as i686 only packages as Fedora and
RedHat already does. However it seems like pretty challenging in a
BuildService, because the only one package with i686 version I'm aware
is glibc, but this approach seems not usable for openjdk, where only
i686 and not i586 version is needed.

So how can be only i686 rpm packages produced in a buildservice?


SO, as a workaround, I suggest, adding to the spec file

%ifarch %ix86
BuildArch: i686


%ifarch %ix86
export CFLAGS="%optflags -march=i686 -mtune=atom"

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

< Previous Next >