How to gererate 32-bit RPMs for x86-64 on Leap 42.2

Hello,

I am building fontconfig and freetype2 repos. OpenSUSE versions prior to Leap 42.2, such as 13.2 and Leap 42.1, were offered in both x86_64 and i586, however, Leap 42.2 is not offered as i586 but only as x86_64. In the prior OpenSUSE versions, build.opensuse.org would generate -32bit versions of the packages for the x86_64 repository automatically. When working locally from the command line in prior versions, I would use the following commands to generate the -32bit packages:

osc build -b openSUSE_42.1 i586 freetype2.spec
osc build -b openSUSE_42.1 i586 fontconfig.spec

However, for Leap 42.2, the above commands do not work (since the i586 arch doesn’t exist) and the web based build.opensuse.org service is not generating -32bit versions either.

So, how to I generate the -32bit packages for x86-64 on Leap 42.2?

Thanks,

Gordon

That’s wrong, there was no 32 bit version of Leap 42.1.

In the prior OpenSUSE versions, build.opensuse.org would generate -32bit versions of the packages for the x86_64 repository automatically.

Same in 42.2.

osc build -b openSUSE_42.1 i586 freetype2.spec
However, for Leap 42.2, the above commands do not work

That I cannot answer, I do not use local builds for the lack of resources. But looking at osc help, “-b” means “–baselibs”, so may be some (default local) baselibs configuration is missing for 42.2 in osc?

web based build.opensuse.org service is not generating -32bit versions either.

Really?

**State of Repository standard for openSUSE:Leap:42.2 / freetype2**

https://build.opensuse.org/assets/s-ef1955ae757c8b966c83248350331bd3a30f658ced11f387f8ebf05ab3368629.gif Go to download repository](http://download.opensuse.org/repositories/openSUSE:/Leap:/42.2/standard)
**https://build.opensuse.org/assets/s-ef1955ae757c8b966c83248350331bd3a30f658ced11f387f8ebf05ab3368629.gif Architecture: i586**




  - [_buildenv](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=i586&filename=_buildenv&repository=standard)
  - [freetype2-2.6.3-1.2.src.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=i586&filename=freetype2-2.6.3-1.2.src.rpm&repository=standard)
  - [freetype2-debugsource-2.6.3-1.2.i586.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=i586&filename=freetype2-debugsource-2.6.3-1.2.i586.rpm&repository=standard)
  - [freetype2-devel-2.6.3-1.2.i586.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=i586&filename=freetype2-devel-2.6.3-1.2.i586.rpm&repository=standard)
  - [freetype2-devel-32bit-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=i586&filename=freetype2-devel-32bit-2.6.3-1.2.x86_64.rpm&repository=standard)
  - [libfreetype6-2.6.3-1.2.i586.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=i586&filename=libfreetype6-2.6.3-1.2.i586.rpm&repository=standard)
  - [libfreetype6-32bit-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=i586&filename=libfreetype6-32bit-2.6.3-1.2.x86_64.rpm&repository=standard)
  - [libfreetype6-debuginfo-2.6.3-1.2.i586.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=i586&filename=libfreetype6-debuginfo-2.6.3-1.2.i586.rpm&repository=standard)
  - [libfreetype6-debuginfo-32bit-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=i586&filename=libfreetype6-debuginfo-32bit-2.6.3-1.2.x86_64.rpm&repository=standard)
  - rpmlint.log


https://build.opensuse.org/assets/s-ef1955ae757c8b966c83248350331bd3a30f658ced11f387f8ebf05ab3368629.gif Show](https://build.opensuse.org/package/statistics/openSUSE:Leap:42.2/freetype2?arch=i586&repository=standard) used resources
**https://build.opensuse.org/assets/s-ef1955ae757c8b966c83248350331bd3a30f658ced11f387f8ebf05ab3368629.gif Architecture: x86_64**




  - ::import::i586::freetype2-devel-32bit-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=x86_64&filename=%3A%3Aimport%3A%3Ai586%3A%3Afreetype2-devel-32bit-2.6.3-1.2.x86_64.rpm&repository=standard)
  - ::import::i586::libfreetype6-32bit-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=x86_64&filename=%3A%3Aimport%3A%3Ai586%3A%3Alibfreetype6-32bit-2.6.3-1.2.x86_64.rpm&repository=standard)
  - ::import::i586::libfreetype6-debuginfo-32bit-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=x86_64&filename=%3A%3Aimport%3A%3Ai586%3A%3Alibfreetype6-debuginfo-32bit-2.6.3-1.2.x86_64.rpm&repository=standard)
  - [_buildenv](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=x86_64&filename=_buildenv&repository=standard)
  - [freetype2-2.6.3-1.2.src.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=x86_64&filename=freetype2-2.6.3-1.2.src.rpm&repository=standard)
  - [freetype2-debugsource-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=x86_64&filename=freetype2-debugsource-2.6.3-1.2.x86_64.rpm&repository=standard)
  - [freetype2-devel-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=x86_64&filename=freetype2-devel-2.6.3-1.2.x86_64.rpm&repository=standard)
  - [libfreetype6-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=x86_64&filename=libfreetype6-2.6.3-1.2.x86_64.rpm&repository=standard)
  - [libfreetype6-debuginfo-2.6.3-1.2.x86_64.rpm](https://build.opensuse.org/package/binary/openSUSE:Leap:42.2/freetype2?arch=x86_64&filename=libfreetype6-debuginfo-2.6.3-1.2.x86_64.rpm&repository=standard)
  - rpmlint.log



how to I generate the -32bit packages for x86-64 on Leap 42.2?

There is no change, at least on OBS side - it builds 32 bit versions and imports them as instructed by baslibs.conf as 64 bit packages with suffix -32bit. So may be you explain what problem you are trying to solve, instead of describing your conclusions?

Thanks for your reply arvidjaar,

My repo is here:

https://build.opensuse.org/repositories/home:gldickens3

OBS is generating -32bit packages (fontconfig-32bit and libfreetype6-32bit) for OpenSUSE 13.2, Leap 42.1 and Tumbleweed but not for Leap 42.2 using the same configuration and baselibs.conf. So, what am I doing wrong and what should I change so that -32bit packages are generated for fontconfig and libfreetype6 on Leap 42.2?

Thanks,

Gordon

You need to explicitly enable i586 arch for build. I do not trust OBS GUI, so I usually do it using “osc meta prj -e” and then add <arch>i586</arch> to Leap 42.2 repo like it is present in 42.1.

Thanks arvidjaar, That did the trick! I am now able to generate the 32-bit RPMs for x86-64 on Leap 42.2 from both the OBS GUI at build.opensuse.org and locally from the command line with osc.

Thanks again for your help.

Gordon