Hi there, I’m trying to build gcc package for Almalinux using OBS.
When building for the x86_64 target, I need to install both the x86_64 and i686 packages of glibc.
However, when I set “Preinstall glibc” to Project Config, it seems that the i686 version of glibc is not installed.
What can I do?
I successfully installed glibc.i686 (and its dependencies) in the build environment when building gcc x86_64. This can be achieved by creating a custom Source Service RPM and executing it as a service. The RPM should include the desired packages for installation, along with a simple script to install the packages. Although I’m uncertain if it will be helpful to anyone, I plan to share the source code at a later date.
I have released the source code for the Source Service to address this issue. Please modify the code according to your needs and use it. I hope it helps someone. Thank you!