[opensuse-buildservice] FC workers produce i586 rpms, OS 11 produce i386!!
Hi, I am noticing a strange behavior of workers running on different distributions. Workers running on opensuse 11 produce *.i386.rpm packages while workers running on fedora produce *.i586.rpm (the expected result). Local builds on the OBS server produce the expected i586 rpms, but using local builds on one of the opensuse 11 workers which has a minimal installation produces i386 rpms. Any hint on what might be the problem or the cause and how to fix it? Anas --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Been looking into this more and found the build arch in the build root different, it looks ok on the obs server if i run a local build: bash-3.2# rpm --showrc|head ARCHITECTURE AND OS: build arch : i586 compatible build archs: i686 i586 i486 i386 noarch fat build os : Linux compatible build os's : Linux install arch : i686 install os : Linux compatible archs : i686 i586 i486 i386 noarch fat compatible os's : Linux but on a worker with opensuse 11 if I run a local build of same package, I get the following in the build root: bash-3.2# rpm --showrc | head ARCHITECTURE AND OS: build arch : i386 compatible build archs: pentium3 i686 i586 i486 i386 noarch fat build os : Linux compatible build os's : Linux install arch : pentium3 install os : Linux compatible archs : pentium3 i686 i586 i486 i386 noarch fat compatible os's : Linux Any idea why those are different? Anas Anas Nashif wrote:
Hi, I am noticing a strange behavior of workers running on different distributions. Workers running on opensuse 11 produce *.i386.rpm packages while workers running on fedora produce *.i586.rpm (the expected result). Local builds on the OBS server produce the expected i586 rpms, but using local builds on one of the opensuse 11 workers which has a minimal installation produces i386 rpms.
Any hint on what might be the problem or the cause and how to fix it?
Anas --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Dienstag 02 September 2008 14:17:10 Anas Nashif wrote:
Hi, I am noticing a strange behavior of workers running on different distributions. Workers running on opensuse 11 produce *.i386.rpm packages while workers running on fedora produce *.i586.rpm (the expected result). Local builds on the OBS server produce the expected i586 rpms, but using local builds on one of the opensuse 11 workers which has a minimal installation produces i386 rpms.
Any hint on what might be the problem or the cause and how to fix it?
IIRC this definition comes from the macros from rpm package in /usr/lib/rpm , if no overwrite was given on command line. Do you have a changed rpm package or an overwrite in your project config ? Do you see any suspicious rpmbuild command line parameter ? check also /etc/rpm in your build enviroment. sorry, no better ideas yet. adrian -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Adrian, Meanwhile I manage it to narrow it down to how rpm detects the cpu and it seems it detects the cpu in the workers as pentium3 although it is a Xeon E5450 (Harpertown). (the function is_pentium3() in rpmrc.c which uses cpuid always returns 1 on this specific cpu) So it not related to the distribution. I happen to have opensuse installed on all new hardware and some fedora worker on older hardware. I am not sure it is the right solution, but to make worker build the way I want, I changed the bs_worker code to start the build process with --target, i.e. add the line push @args, '--target', $arch; to the list of arguments for starting the build. This always works, never mind what rpm thinks my cpu is. Thanks, Anas Adrian Schröter wrote:
On Dienstag 02 September 2008 14:17:10 Anas Nashif wrote:
Hi, I am noticing a strange behavior of workers running on different distributions. Workers running on opensuse 11 produce *.i386.rpm packages while workers running on fedora produce *.i586.rpm (the expected result). Local builds on the OBS server produce the expected i586 rpms, but using local builds on one of the opensuse 11 workers which has a minimal installation produces i386 rpms.
Any hint on what might be the problem or the cause and how to fix it?
IIRC this definition comes from the macros from rpm package in /usr/lib/rpm , if no overwrite was given on command line.
Do you have a changed rpm package or an overwrite in your project config ? Do you see any suspicious rpmbuild command line parameter ?
check also /etc/rpm in your build enviroment.
sorry, no better ideas yet. adrian
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Adrian Schröter
-
Anas Nashif