Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for building 32-bit RPMs on 64-bit Linux #784

Closed
dpennell opened this issue Apr 22, 2016 · 2 comments
Closed

add support for building 32-bit RPMs on 64-bit Linux #784

dpennell opened this issue Apr 22, 2016 · 2 comments

Comments

@dpennell
Copy link
Contributor

I need to build an RPM that includes a 3rd party native library and my build server is 64-bit.

If I use noarch, rpmbuild complains with:

[error] error: Arch dependent binaries in noarch package

If I use i386, rpmbuild complains with:

[error] error: No compatible architectures found for build

Running the following works:

setarch i386 sbt
rpm:packageBin

I propose to add a setarch setting in Rpm that will invoke:

setarch rpmbuild ...

If noboty objects, I'll generate a pull request shortly.

Note: running setarch <arch> sbt... is inconvenient as I have a multi-project build with each subproject generating a different rpm and one of the other sub-projects includes native 64-bit libraries.

@muuki88
Copy link
Contributor

muuki88 commented Apr 22, 2016

Thanks @dpennell for your request + proposal. Your suggestion sounds good. If I understand correctly setarch will is an rpm specific setting, so the setting should be named rpmSetarch.

We have a small developer guide in our wiki. Looking forward :)

@muuki88
Copy link
Contributor

muuki88 commented Apr 27, 2016

Closed via #786

@muuki88 muuki88 closed this as completed Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants