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

Ability to add libsigar (and arch dependent packages) to RPM Build #375

Closed
mhamrah opened this issue Oct 12, 2014 · 2 comments
Closed

Ability to add libsigar (and arch dependent packages) to RPM Build #375

mhamrah opened this issue Oct 12, 2014 · 2 comments
Labels
documentation Documentation should be extended or updated feature request rpm

Comments

@mhamrah
Copy link
Contributor

mhamrah commented Oct 12, 2014

I'm trying to build an rpm package with sbt-native-packager and I'd like to include the sigar binaries. I'm specifically building an akka-cluster rpm and I'd like to ensure the libsigar dependencies are included.

I'm getting an error " error: Arch dependent binaries in noarch package" and setting packageArchitecture doesn't seem to help. Any suggestions on how to configure this appropriately?

I'm currently adding the sigar dependencies via unmanagedDependencies.

@muuki88 muuki88 added rpm feature request documentation Documentation should be extended or updated bug labels Oct 13, 2014
@muuki88
Copy link
Contributor

muuki88 commented Oct 13, 2014

So. I did a bit of research

Fast and Dirty

This generates an rpm package with ALL binaries in it

rpmPre := Some("#%define _binaries_in_noarch_packages_terminate_build 0")

or

rpmPre := Some("%global _binaries_in_noarch_packages_terminate_build 0")

Better approach

What you really want to do is build architecture dependent builds. This is why
I changed this ticket into a feature request. Currently you can only build for one arch.

In your build.sbt put

packageArchitecture in Rpm := "x86_64"

put your sigar libs in a place you want to (I use the default packaging layout, so src/linux/sigar..) and put only libsigar-amd64-linux.so in there.

This will produce an rpm with correct binaries. If you want to build for more architectures you have to create your own sbt configurations and only change the packageArchitecture in there. This is cumbersome.

Links

@muuki88 muuki88 removed the bug label Oct 13, 2014
@mhamrah
Copy link
Contributor Author

mhamrah commented Oct 15, 2014

Thanks, will check it out. Feel free to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation should be extended or updated feature request rpm
Projects
None yet
Development

No branches or pull requests

2 participants